I want to adjust the axis to be able to see dynamic, when I use xlsread

1 view (last 30 days)
As you can see from the subject line, I want to adjust the axis:
This picture above is the original picture. It has dynamic characteristic. So I want see it at a glance.
The bottom code is I tried... but, just scale information is changed.
%example code
Time4 = xlsread('power_elec.xlsx','a580:a1446');
Error using xlsread
Unable to open file 'power_elec.xlsx'.
File '/users/mss.system.Qb5MDl/power_elec.xlsx' not found.
power_Cool = xlsread('power_elec.xlsx','b580:b1446');
subplot(2,1,1), plot(Time2, power_elec)
ylabel('electrical power (kW)')
xlabel('Time (s)')
axis([9.5 40 68 80]) %I tried
set(gca,'YTick',[68:0.5:78]) %I tried
If anyone knows how to adjust it, please let me know.

Answers (1)

Image Analyst
Image Analyst on 13 Nov 2022
Not exactly sure what you want but you might try semilogy or ylim or something like that.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!