How to find the maximum value of the 3-D plot in matlab?

46 次查看(过去 30 天)
How to find the maximum value of the 3-D plot in matlab? At present ,I am clicking with the help of Cursor after the generation of the 3-D plot . But is there any specific command for that? I have tried max(abs(figure)), but that generates an array and not a particular single value, I am in need to find the maximum single amplitude value of the plot. Kindly help

采纳的回答

Star Strider
Star Strider 2016-2-15
If your plot is for instance:
figure(1)
surf(X, Y, Z)
where all are matrices, convert ‘Z’ to a vector and then take the max:
Zmax = max(Z(:));
If you want to know where the maximum occurs, this will give you the indices:
[Zmax,Idx] = max(Z(:));
[ZmaxRow,ZmaxCol] = ind2sub(size(Z), Idx);
  12 个评论
Abhay
Abhay 2016-2-23
Respected Sir, I have a Mat-lab generated figure which I saved in jpg , its dpi value is 96, I have to change its dpi value to 300. Can you please help me? Regards, Abhay
Star Strider
Star Strider 2016-2-23
See the documentation for print and saveas for details on how to do that.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by