Why doesn't the graph show?
Ältere Kommentare anzeigen
%%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')
Akzeptierte Antwort
Weitere Antworten (1)
dpb
am 21 Okt. 2015
0 Stimmen
Check what your t actually is (instead of what you intend it to be)...
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!