Community Profile

photo

BGN


Last seen: ungefär ett år ago Active since 2020

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


how to make for loop for sine waves and composite sine wave?
X= [0.3, 0.5, 0.7, 2.5] ; Y= [2, 4, 6, 8] ; % Z= sum(Y*sin(X*t) --- would like each component overplotted % S...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


I'm trying to use fprinft in title because when i use the sprintf function it has way too many decimals. I keep getting error messages and i dont know how to fix them
subplot (2,2,1) plot(X,Y) z2= fprintf('Trajectory of projectile(v0= %2.0f\n and angle %2.0f\n)', v0, theta); title(z2) xla...

ungefär 4 år ago | 1 answer | 0

1

answer