MATLAB: G=(x).*(t)+(r./(s.^2)).*((y.^2).-x).*t matlab operator >> returns the error: unexpected matlab operator >> please help Best Answer You have a dot operator where you do not need one:g=(x).*(t)+(r./(s.^2)).*((y.^2).-x).*t ^This works:g=(x).*(t)+(r./(s.^2)).*((y.^2)-x).*t Related SolutionsMATLAB: X(t) = 2*u((-t/4)+2), |t|<=10 I guess u is the unit-step function. You can try this if you have symbolic toolboxsyms tx = 2*heaviside(-t/4+2);fplot(x, [-10 10]);Without symbolic toolboxu = @(x) 1*(x>=0);t = -10:0.01:10;x = 2*u(-t/4+2);plot(t, x) MATLAB: X(t)=2+3*Π4(t)*sinc(t) Hi,Kindly have a look at the following code:x = linspace(-5,5);y = 2+3*pi*4*x.*sinc(x);plot(x,y)Links:https://www.mathworks.com/help/signal/gs/the-sinc-function.htmlhttps://www.mathworks.com/help/matlab/ref/times.htmlThanks Related QuestionPlot x(t)=x1(t)x2(t)Replace x with x(t) in a symbolic matrix
Best Answer