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!