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');

КОМЕНТАРІ • 6

  • @mukeshnigam5046
    @mukeshnigam5046 3 роки тому +1

    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.

  • @GautamkumarJhaaerospace
    @GautamkumarJhaaerospace 3 роки тому

    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

  • @rishabhshukla5479
    @rishabhshukla5479 3 роки тому +1

    because of poor video quality, data format is not visible ... how r u inserting data in x data source and y data source

  • @ahadhussain328
    @ahadhussain328 4 роки тому

    Very helpful...
    Assalam u Alaikum
    It is a request that kindly make some tutorials on design and analysis of sensors as well.

  • @joseperez2374
    @joseperez2374 4 роки тому +2

    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