We have moved to @ Placement Papers Hub !! Visit our new website here for more..

PLOTS WITH RECTANGLE AND LOGARITHMIC AXES


PLOTS WITH RECTANGLE


>>Rectangle('Position',[x,y,w,h])


Draws the rectangle from the point x,y and having a width of 
w and a height of h. Specify values in axes data units.


>> rectangle('Position',[0.2,0.5,5,7])





















PLOTS WITH LOGARITHMIC AXES


Many science and engineering applications require plots in which one or both axes have a logarithmic(log) scale.log scales provide means for representing data over a wide range of values

semilogy(x,y) - Ploats y versus x with a log (base 10) scale for y axis and linear scale for the x axis

semilogx(x,y) - Ploats y versus x with a log (base 10) scale for x axis and linear scale for the y axis

loglog(x,y)  - Ploats y versus x with a log (base 10) scale for the both axis

Q):-plot of the function y=2.^(-0.2x+10)

>> x=linspace(0.1,60,1000);

>> y=2.^(0.2*x+10);

>> plot(x,y)                                       














>> x=linspace(0.1,60,1000); 
>> y=2.^(0.2*x+10);
>> semilogx(x,y)














>> x=linspace(0.1,60,1000);
>> y=2.^(0.2*x+10);
>> semilogy(x,y)















>> x=linspace(0.1,60,1000);
>> y=2.^(0.2*x+10);
>> loglog(x,y)