Filter löschen
Filter löschen

question about surf function

3 Ansichten (letzte 30 Tage)
Shi Yuhao
Shi Yuhao am 27 Apr. 2014
Beantwortet: Azzi Abdelmalek am 27 Apr. 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.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 27 Apr. 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)

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Objects finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by