undefined variable, passive variable vector
古いコメントを表示
HELLO do you know how should i make vector with passiv variable.and be aware of that the size of this vector will be defined in the middel of program. thanks
1 件のコメント
David Young
2011 年 3 月 1 日
Please would you delete the four duplicates of this question. Thanks.
採用された回答
その他の回答 (2 件)
David Young
2011 年 3 月 1 日
In MATLAB, you probably don't need to make the vector before you know its size. You don't have to declare variables, so the best solution is probably to simply not use the vector until the point where the size is known.
If there's some reason you need to reference the variable before that point, you could set it to the empty matrix:
v = [];
to indicate that it's a vector with, as yet, no contents.
3 件のコメント
kaveh
2011 年 3 月 1 日
David Young
2011 年 3 月 2 日
Can I just check - are you asking about the Symbolic Math Toolbox, as Kaustubha govind suggests? If you are, then sorry, I misunderstood. I don't know about that toolbox, and I hope someone else can help.
kaveh
2011 年 3 月 3 日
カテゴリ
ヘルプ センター および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!