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!