Magnifying a Segment of Plot in MATLAB Figure
Вставка
- Опубліковано 6 чер 2020
- This video shows how a segment of a plot can be magnified in a MATLAB figure.
Complete Code for generating Figure...
===============================
% first generate a plot
% the time vector
t = 0:0.02:100;
% and the signal , we will be plotting a decaying sinewave
y = (3*sin(2*pi*0.2.*t)).*(exp(-0.2.*t));
% the '.' operator above represents element wise operation ....
% Now, let's plot....
plot(t,y,'r');grid on,
xlabel('Time');
ylabel('Decaying Sinosoid Signal');
title('Magnifying a Segment of Plot');
Hi, Thanks for sharing. But it is difficult to see the x data source and y data source: Could you please share the values that you found from t==20, and t==50 and the x data source and y data source statements.
Hy your MATLAB video shown is really good and unique but the quality in which you have recorded the video is very bad, command are not visible . I therefore request you to record in HD definition so that every bits and bytes are clearly visible
because of poor video quality, data format is not visible ... how r u inserting data in x data source and y data source
Very helpful...
Assalam u Alaikum
It is a request that kindly make some tutorials on design and analysis of sensors as well.
clear all; close all; clc;
t = 0:0.02:100;
y = (3*sin(2*pi*0.2.*t)).*(exp(-0.2.*t));
plot(t,y,'r');grid on;
xlabel('Time');
ylabel('Decaying Sinosoid Signal');
title('Magnifying a Segment of Plot');
axes('position',[0.25 0.25 0.5 0.5]);
box on;
your_index=20
Thanks