reshaping and the size of an array
Show older comments
Hi!
I have this statement in a program
% mag=reshape(mag,length(mag)/27,[]);
the size of mag is now 120*27
when i make this statement to clear nan values : (ids is an index of a condition!!!)
mag(ids)=nan;
mag=mag(~isnan(magg));
i get a size of m*1. (the length m is smaller than the number 120*27) why does the size of may matrix mag change when i use mag=mag(~isnan(magg))?
how could i get the n*27 (the length n is smaller than the number 120)
thank you
Hi It was my mistake the statement is: magg=mag,mag=mag(~isnan(mag))
i hope you could help me!
Accepted Answer
More Answers (0)
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!