Why doesn't it work ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Why doesn't it work ?
I don't understand
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1264340/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1264345/image.png)
3 Kommentare
dpb
am 15 Jan. 2023
That's better, thanks, but why not edit the original Q? and put the code there? Will it not let you edit your own Q?.
But, you've not taken the advice to heed -- the problem is still that you're not using the "dot" operators...
Antworten (2)
KALYAN ACHARJYA
am 15 Jan. 2023
s = 1.25;
t1 = 0:0.01:pi/2;
t2 = pi/2:0.01:pi;
t = [t1 t2];
x1=4*sin(2*t1).*sin(2*t1).*exp(-(t1/s))+2;
x2=4*sin(2*t2).*sin(2*t2).*exp(-(t2/s))+2;
p =[x1 x2];
plot(t,p)
xlabel('yura'); ylabel('elad')
title('lauren hazout')
0 Kommentare
VBBV
am 2 Mär. 2023
s = 1.25;
t1 = 0:0.01:pi/2;
t2 = pi/2:0.01:pi;
t = [t1 t2];
p=[4*sin(2*t1).^2.*exp(-(t1/s).^2)+2 4*sin(2*t2).^2.*exp(-(t2/s))+2]
%
plot(t,p)
xlabel('yura'); ylabel('elad')
title('lauren hazout')
As the error suggests, use element wise powee .^
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!