Indexing can't yield multiple results.
Show older comments
I am trying to save multiple values from a database as variables at once by indexing. I don't know why this isn't working but might have the wrong method, if this doesn't work how do I do this:
[x, y, z, vx, vy, vz] = EarthPosData(Start,:);
the database gives me the correct result since:
>> EarthPosData(Start,:)
ans =
1.0e+08 *
1.4810 -0.2964 -0.0002 0.0000 0.0000 -0.0000
So it seems that I just can't use this method? so then how do I get xyz... without having 6 lines of code?
thanks
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!