how can I make waves from the equation and data value

I want to figure waves from the equation and data value Aw ^ 2cos (wt) if I already have angular frequency data and time periods? And wanna plot maximum period vs. time period

16 Comments

Did you try plot? Please attach your attempts
No, actually I've never try MATLAB before, can you help me? In the picture
the plot that I was hoping for was like in the picture, below with the data that was already there, but I didn't know how to code it
clc
clear all;
close all;
A=
w = [6.11, 5.71, 5.07, 4.20, 3.15, 1.95, 0.66 , 0.66, 1.95, 3.16, 4.23, 5.12, 5.78, 6.19];
t = [1.03, 1.10, 1.24, 1.49, 1.99, 3.22, 9.51 , 9.50, 3.21, 1.99, 1.48, 1.23, 1.09, 1.02];
x0= A*cos(w*t);
figure (1)
subplot(2,2,1);
plot(t,x0);
axis([0 15 0 15])
xlabel('Time Period')
ylabel('Maximal Amplitude')
title('Seven Floor With Damping')
subplot(2,2,2);
plot(t,w);
axis([0 15 0 15])
xlabel('Time Period')
ylabel('Maximal Amplitude')
title('Seven Floor Without Damping')
but, the program is wrong, somebody can hepl me ? @darova
You can't get these graphs directly from
Maybe you should use fft?
But where is it? Something is missing
what if I only have the function Y = Acos(wt). With the initial value of A is 0
What is damping? Where is this variable
I have an equation, Mx''-Cx'-Kx=MAw^2coswt
Where M, C, K is matrix C is damping, without damping when C=0. the data above has been tabulated from the equation
What about ode45? You have differential equation
Wow, it's dificcult, but thank you, I try to learn it

Sign in to comment.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Asked:

on 22 Feb 2020

Commented:

on 23 Feb 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!