how does zoomplot work?

5 ビュー (過去 30 日間)
arian hoseini
arian hoseini 2023 年 1 月 21 日
回答済み: Sulaymon Eshkabilov 2023 年 1 月 21 日
i need zoomplot but i dont know how to work with it?
allows me to zoom in on specific region in a line plot.
clc
clear all
E=0.001:0.01:10
for i=1:1000
G(i)=8.43*exp(-0.914*E(i));
end
plot(E,G);
[~, z] = zoomPlot((1:10).', G, [8 9], [0.2 0.5 0.4 0.4]);

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 1 月 21 日
1st of all zoomPlot() is a 3rd party function and is not part of MATLAB 2022b package or its toolboxes. Therefore, to see what can be done with it and how to use, it is worth viewing the content of this function. That can be achieved by:
edit zoomPlot % from command window
%% OR
open('zoomPlot.m') % from an M-file or MLX-file editor
edit 'zoomPlot.m' % from an M-file or MLX-file editor
If you want to use zoom option programmatically, there is a MATLAB fucntion to get it - zoom. See this DOC.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by