How to Update matrix values

86 views (last 30 days)
Arun Badigannavar
Arun Badigannavar on 2 Jan 2013
I have a matrix[2 2:2 2]I want to update these four values one by one ie[3 3:3 3],[4 4:4 4],[5 5:5 5] like thgis I want to update ,,,how can i achieve this with script?

Accepted Answer

Sriram
Sriram on 2 Jan 2013
b = {};
a=[1 2;3 4]
for i=1:1:100;
a=a+1;
b = [b a];
end

More Answers (1)

Walter Roberson
Walter Roberson on 2 Jan 2013
A = A + 1;
  4 Comments
Arun Badigannavar
Arun Badigannavar on 2 Jan 2013
ya i know this ,,but i want to save the value of a(i) from i =1 to i=100

Sign in to comment.

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!