how can i pass the values to an array?
    5 views (last 30 days)
  
       Show older comments
    
    Muhammad Umer
 on 22 Sep 2015
  
    
    
    
    
    Commented: Star Strider
      
      
 on 22 Sep 2015
               for i=1:10
    j=i*5:
    end 
output will be:
5,
10,
......
50.
how can i pass these output values(5.....50) in an array?
0 Comments
Accepted Answer
  Star Strider
      
      
 on 22 Sep 2015
        
      Edited: Star Strider
      
      
 on 22 Sep 2015
  
      Change the ‘j’ assignment to:
j(i) = i*5;
2 Comments
More Answers (1)
See Also
Categories
				Find more on Operators and Elementary Operations in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

