How to Plot a Continues Tiime Signal

3 visualizaciones (últimos 30 días)
Muhammad Fauzan
Muhammad Fauzan el 12 de En. de 2021
Respondida: Muhammad Fauzan el 25 de Jul. de 2021
i am unable to plot the following signal can anyone help me?
a) x(t)u(1-t); b) x(t)[u(t)-u(t-1)];
Please Help me!
I just want the matlab code

Respuesta aceptada

Muhammad Fauzan
Muhammad Fauzan el 25 de Jul. de 2021
% Domain
a=0;
b=1;
c=0;
d=1;
%Pembagian Grid
xgrid=4;
ygrid=3;
U=(zeros(ygrid+1,xgrid+1));
x=linspace(a,b,xgrid+1);
for i=1:xgrid+1
U(1,i)=sym(sin(pi*x(i)));
end
w=sym('w',[1(xgrid-1)*(ygrid-1)]);
k=1;
for j=2:ygrid
for i=2:xgrid
U(j,i)=w(k);
k=k+1;
end
end
error Unbalanced or unexpected parenthesis or bracket in "w=sym('w',[1(xgrid-1)*(ygrid-1)]);"
Please Help!!

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by