Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: vector declaration
Replies: 3   Last Post: May 2, 2013 3:29 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
sherzod

Posts: 2
Registered: 10/17/12
vector declaration
Posted: May 2, 2013 2:06 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everyone, I have the following question: Suppose I have a for loop similar to :
for m = 1:3
%and than many other staff. What I want is to declare a vector such that when m = 1, my vector (say x) is x1, and when for loop makes m = 2 , another vector x2 is created and so on. In VBA Excel it looks like:
for m = 1 To 3
x&m='some value' .....

How to do this in Matlab? thanks in advance



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.