Community Profile

photo

BGN


Last seen: 4 månader ago
2 total contributions since 2020

Contributions in
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...

5 månader 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...

6 månader ago | 1 answer | 0

1

answer