Magnitude plot over time
1 回表示 (過去 30 日間)
古いコメントを表示
Hello
I have a problem with a meshplot. I have a transfer function and I must make a magnitude plot. The problem is : I dont know how to make a mesh plot out of it. I attached a picture of the supposed result.
I know what a bode plot is but dont know how to produce this plot.
Regards Karlos
0 件のコメント
回答 (2 件)
the cyclist
2011 年 7 月 30 日
You don't give us any detail on what you have tried, or what your data look like, so it is not easy to help you. Here is about the simplest possible mesh you can make, slightly adapted from the MATLAB documentation for meshgrid. Does this help?
xvec = -2:0.2:2;
yvec = -2:0.2:2;
[x,y] = meshgrid(xvec,yvec);
z = x .* exp(-x.^2 - y.^2);
figure
mesh(x,y,z)
0 件のコメント
Drvoljub
2011 年 7 月 30 日
1 件のコメント
the cyclist
2011 年 7 月 31 日
I don't understand your description completely.
Have you successfully defined three vectors, (X,Y,Z)?
Have you put those into meshgrid() to get three arrays that can be used in mesh()?
What error are you getting, specifically? It is not very helpful to just say, "It didn't work."
[It would be best if you posted the actual code you used, and the errors you are geting, instead of this semi-mathematical description.]
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!