Plot with symbolic value on x axis
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi!
I've created this live script:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272085/image.png)
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 commentaires
Réponses (1)
darova
le 17 Fév 2020
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 commentaires
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!