Why doesn't the graph show?
Show older comments
%%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')
Accepted Answer
More Answers (1)
dpb
on 21 Oct 2015
0 votes
Check what your t actually is (instead of what you intend it to be)...
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!