extracting the the first n columns of X and Y
3 views (last 30 days)
Show older comments
I nedd to extract only the first n columns of a data I loaded into my function and have to enforce n<=9 and also use a loop to plot the rth column of X against the rth column of Y in the rth subplot, I am allowed to choose how many subplots I want, I really need help with this, right now ive figured out,
function coa08xxx_lines(n)
s = load('xydata.mat','X','Y');
theTable = s.theTable;
[rows, columns] = size(theTable);
columnsToExtract = [];
for c = 1 : n : (columns-n)
columnsToExtract = [];
end
2 Comments
Walter Roberson
on 17 Nov 2013
Where is your code for choosing the number of subplots that you want?
Answers (0)
See Also
Categories
Find more on Subplots 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!