Plot with symbolic value on x axis
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi!
I've created this live script:
I'd like to plot a graph where on the x axis there are the "symbolic" values of t variable noun: 0, T/8, T/4 and so on , until T and on the y-asxis there are 0, rad2/2, and so on.
Is this possible?
Thanks in advance
댓글 수: 0
답변 (1개)
darova
2020년 2월 17일
Use numeric values to plot
Use symbolic values to make labels
h = plot(x,y)
syms T
x1 = x*T;
set(h,'Xticklabel',x1)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!