Plotting waves in 2d
3 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Robert
2016-4-25
Your call to surf only references a and is not affected by your second wave in b. Maybe you meant to use something like
surf(X,Y,a+b);
You appear to be calling contour correctly, but if you don't like the result, you could consider specifying the levels yourself using the fourth input. See
doc contour
for details.
3 个评论
Robert
2016-4-26
If this answered your question, please consider accepting the answer using the blue "Accept this Answer" button above. Thanks!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!