How to plot step response and impulse response in 3d graph?

11 visualizaciones (últimos 30 días)
TAM GIN HSIEN
TAM GIN HSIEN el 9 de En. de 2021
Respondida: SaiDileep Kola el 15 de En. de 2021
Given the coding to plot the 2d graph of step response and impulse response.
PLEASE TEACH ME HOW TO DISPLAY 3D GRAPH OUTCOME?
clc;
clear all;
s =tf('s');
m=0.1;
b2=0.4;
k1=6;
k2=4;
G =(k2+b2*s)/((m*s^2+k1+k2)*(k2+b2*s)-k2^2)
F=k2*G/(k2+b2*s)
figure (1)
step(10*G,10*F)
legend('x(t)','y(t)')
title ('Step Response for step of 10N')
figure (2)
impulse(10*G,10*F)
legend('x(t)','y(t)')
title ('Impulse Response for impulse of 10N')

Respuestas (1)

SaiDileep Kola
SaiDileep Kola el 15 de En. de 2021
Looks like 2D to 3D conversion in this case is just stack them as explained here, since they are continuous time transfer functions you can refer the code submitted user on community platform you may find it helpful.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by