0 Replies - 316 Views - Last Post: 19 October 2011 - 03:55 AM Rate Topic: -----

#1 iCode  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 52
  • Joined: 15-January 09

[MATLAB] Storing in matrix

Posted 19 October 2011 - 03:55 AM

Hello. I have a quick question. To store in a matrix we define i in a loop and store it, such as:

for i = 1:5
    A(i) = x + y;
end



This stores the solution in the same row in the variable A. But, how can I store it in a column? Thanks in advance.
Is This A Good Question/Topic? 0
  • +

Page 1 of 1