Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

SOLVE PLOT TEXT PROBLEM

Asked by m c on 27 Apr 2013
This question is closed and may reopen in the future if edited.

I've got a GUI with 3 axes and 6 values of max and min peaks. I write the text command and i need to put a string or something like that because it show's all values in one axes(like in the picture):

http://postimg.org/image/lu32fh31t/

This is one of the three codes(for displacement,i've got another 2 same for speed and acceleration):

t=0:0.1:6;

n=10/64;

omega=(2*pi*n);

S=0.275;

d=S*(1-cos(omega*t))/2;

plot(handles.axes1,omega*t,d);

hold on

MaxValue=max(d);

IndexMaxValue=find(d==MaxValue);

plot(handles.axes1, omega.*t(IndexMaxValue), MaxValue, 'r*');

text(omega.*t(IndexMaxValue), MaxValue, num2str(MaxValue));

hold on

MinValue=min(d);

IndexMinValue=find(d==MinValue);

plot(handles.axes1, omega.*t(IndexMinValue), MinValue, 'r*');

text(omega.*t(IndexMinValue), MinValue, num2str(MinValue));

hold on

HELP ME PLEAASEEE!!!

m c

Products

No products are associated with this question.

0 Answers

Contact us