Why doesn't the graph show?
Afficher commentaires plus anciens
%%ENGS103P
% Coursework 1
% 21 October, 2015
% Question 2(b)
A=0.009; % m
k=9800; % N/m
m=1; % kg
t=0,0.001,1;
x=A*cos(sqrt(k/m)*t); % m
plot(x,t)
grid on
xlabel('t')
ylabel('x')
title('Graph of x against t')
Réponse acceptée
Plus de réponses (1)
dpb
le 21 Oct 2015
0 votes
Check what your t actually is (instead of what you intend it to be)...
Catégories
En savoir plus sur Graph and Network Algorithms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!