How to plot symbolic row matrix in MATLAB?

조회 수: 2 (최근 30일)
Shubham Maurya
Shubham Maurya 2016년 3월 1일
댓글: Explorer 2016년 3월 5일
I have a row vector whose elements are all some arbitrary functions of x. How to plot this row vector on y-axis and index of element on x-axis?
% code
strain <1x10 sym>
I want to plot this strain.

채택된 답변

Explorer
Explorer 2016년 3월 1일
편집: Explorer 2016년 3월 1일
I am not sure what exactly you want to do. But is it similar to your solution?
strain=([16 52 93 74 57 66 55 88 99 44]) % sym of 1x10 order
plot(strain)
  댓글 수: 2
Shubham Maurya
Shubham Maurya 2016년 3월 1일
strain=([x x-1 x+2 x^2 x*2 x+3 x+9 x-2 x x-10])
for i=1:10
subs(strain(i),i)
plot(strain,'o')
end
I got what I wanted to do. Thanks
Explorer
Explorer 2016년 3월 5일
Okay, thanks for accepting my answer formally.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by