Re: strange problem



yunzhi cheng:
<SNIP function-is-var evergreen...

x = ones(1,8);
n = length(x)
then MATLAB shows
n= 0.1515 0.1515 0.1515 0.1515 0.1515 0.1515 0.1515 0.1515...

most likely, you created a variable <length>...
hence, this should help

clear length;
x=ones(1,8);
n=length(x)
% if NOT, show CSSM the output of this
which length -all

us
.



Relevant Pages

  • Re: about double precision
    ... Where can I find that MATLAB use 64bits as default. ... I am afraid. ... yunzhi cheng wrote: ... by default ML uses the 64bit double precision data type... ...
    (comp.soft-sys.matlab)
  • Re: error from big matrix
    ... What is the matter with MATLAB ... yunzhi cheng wrote: ... the operating system) is allocating memory. ...
    (comp.soft-sys.matlab)
  • Re: error from big matrix
    ... What is the matter with MATLAB ... yunzhi cheng wrote: ... Is 10000 the threhold for matix? ...
    (comp.soft-sys.matlab)