question about surf function
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Shi Yuhao
le 27 Avr 2014
Réponse apportée : Azzi Abdelmalek
le 27 Avr 2014
t = linspace(0,2,100) x = linspace(0,10,100) [X,T]=meshgrid(x,t) U = 10*sin(2*pi*(t-x/5))+2*sin(2*pi*(t+x/5)) surf(X,T,U) Why it can not work? It always tips me Z must be a matrix.
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 27 Avr 2014
t = linspace(0,2,100)
x = linspace(0,10,100)
[X,T]=meshgrid(x,t)
U = 10*sin(2*pi*(T-X/5))+2*sin(2*pi*(T+X/5))
surf(X,T,U)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Objects 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!