フィルターのクリア

question about surf function

3 ビュー (過去 30 日間)
Shi Yuhao
Shi Yuhao 2014 年 4 月 27 日
回答済み: Azzi Abdelmalek 2014 年 4 月 27 日
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.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by