what i have is a A, where size (A)=(i,12) where i changes as the input changes i want to extract from A a Certain column up to a certain row how i can do this ? Thx in Advance
Best Answer
Example:
A = rand(200,12) % 200 rows and 12 columns
n = 50; % upto 50 rows
m = 5; % the column you want to extract, in this case the 5th
B = A(1:n,m);
You should find all these basics in the getting started guide, I urge you to go through them as it will save you a lot of time:
m = 200 * ones(200); % First initialize to all 200
m(300, :) = 400; % Set row 300, all columns, to 400.
m(3:9, 4:9) = 800; % Set this block to be all 800
Best Answer