How to avoid decreasing in length of file
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I have been doing some manipulation in the for loop. I have constantly found that the calculation only works for some of the length of variables I assigned i.e. if jj = length(tcal) where tcal is 26, in the out put of results I usually find jj=1 or 2. what will be the possible reason and how can I avoid it . I can give you the whole script if needed.
Thanks for your help. It giving me hard time...
4 Comments
Matt J
on 24 Oct 2012
If tcal is 26 (a scalar) then it makes a lot of sense to get jj=1,
>> jj=length(26)
jj =
1
Ede gerlderlands
on 24 Oct 2012
Edited: Ede gerlderlands
on 24 Oct 2012
Matt J
on 24 Oct 2012
It doesn't run. There appears to be a fragmentary line
h3=h(end+ 2.*tan(0.06).*R
Also, it makes no sense if indeed tcal=26. As I told you length(tcal) is then equal 1 and jj will not loop.
Ede gerlderlands
on 24 Oct 2012
Edited: Ede gerlderlands
on 24 Oct 2012
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!