|
"Gule Saman"
> ??? In an assignment A(I) = B, the number of elements in B and
> I must be the same.
> Error in ==> calculate_polt_sin at 3
> A(1)=mean(intensity);
> Error in ==> plotsin at 6
> [A,y,standard_deviation,maxerror,minerror]=calculate_polt_sin(polang,intensity,h);
> Error in ==> file_reading_plotting_pol_angle at 101
> S=plotsin(polang,intensity,h);
> can anyone help me with this...
well, YES, the error message is pretty clear - is it not?...
- the number of (true!) elements of I
- is not equal to the number of elements of B
how do you check...
% at the command prompt, type
dbstop if error;
% run your code
% it will stop and open the file in the editor at the offending line
% now
whos I B
% if I is of class logical, also do
nnz(I)
us
|