Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
unexpected behavior with symbolic substitution, 0 in vector
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
a simple example should show my problem. if i enter in Matlab R2012a:
syms l1y a
ka = [0;a];
subs(ka,l1y,0)
i would expect to get the unaltered vector
[0;a]
instead i get
[l1y;a]
is this a bug or i do i oversee something?
Thx for help.
댓글 수: 0
답변 (2개)
Salaheddin Hosseinzadeh
2014년 8월 20일
Hi Tonkma,
I think you got what you wrote :)
You defined ka as a column not row (vector), since you used ";" instead of ",". So change ka to
ka = [0,a]
Hopefully this will solve your prob.
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!