How to achieve the output graph which is shown in the picture using simulation?

Respuestas (1)

Joseph Cheng
Joseph Cheng el 19 de Mayo de 2015
Editada: Joseph Cheng el 19 de Mayo de 2015
you can set the properties of the plot like i did below:
x = -10:10:10;
sub_trq = [5 2.5 0]
main_trq = [0 2.5 5]
hfig = figure;
plot(x,sub_trq,'-.',x,main_trq)
ax = gca;
set(ax,'Xtick',[-10 0 10],'YTick',[0 2.5 5],'yticklabel',{'0V';'2.5V';'5V'});
legend('sub\_trq','main\_trq')
grid

2 comentarios

Thank you cheng. But i need a simualtion model to get this output. would you help me??
I will help but I won't do it for you. What have you done and where are you getting stuck?

Iniciar sesión para comentar.

Categorías

Más información sobre Vehicle Dynamics Blockset en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Mayo de 2015

Comentada:

el 19 de Mayo de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by