photo

Caleb Wilson


Aktiv seit 2017

Followers: 0   Following: 0

Statistik

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


I'm trying to plot the function: x(t) = 20*cos(2*pi*500*t). When I try to do this, nothing is plotted and i'm not sure why. The x and y limits are also incorrect. What can i do to fix this?
if true t = 0:0.005; xlim([-0.002 0.002]) ylim([-20 20]) y = 20*cos(2*pi*500*t) plot (t,y) end

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I am trying to do this problem, but I'm having some issues with steps 2 3 and 4. I thought I did it right, but the values stored in the "velocites" vector all share the same value and they shouldn't. Any help would be appreciated
InitialVelocity = 2 * rand(1) - 1; F = 1; tau = 1; N = T/dt; T = 10; dt = 0.01; n = 0; velocities = zeros(1,N); ...

fast 7 Jahre vor | 2 Antworten | 0

2

Antworten