Using matlab, write the code and plot the graph for the following equations. The x axis would be theta from 0 deg to 360 deg while the y axis would be angular or tangential position, velocity and acceleration.
x0=0;
y0=6;
v0=75;
theta=45;
theta=theta*pi/180; %to convert to radian
target_x=400;
target_y=115;
syms t
ans=solve(target_y+0.5*9.81*t.^2-v0*sin(theta)*t-y0,t);
r=double(ans);
disp(r)
T=max(r);
t=linspace(0,T,100);
x=v0*cos(theta)*t+x0;
y=-0.5*9.81*t.^2+v0*sin(theta)*t+y0;
plot(x,y)
grid on
hold on
plot(target_x,target_y,'o');
hold off
Using matlab, write the code and plot the graph for the following equations. The x axis...
In MATLAB plot the following: The function is periodic, with time period 2T=2, after t=2 the same sinusoidal components repeat in the same way as when 0 st < 2. The function its expanded from one time period 27, in terms of the sinusoidal components. All sinusoidal components have frequencies which are integral multiples of the fundamental frequency. 1 1 = = = 0.5Hz to = fo = cot I am cos(womt) + b, sin(wont) m=1 rad wo = 2nfo...
Using MATLAB, duplicate to the two graphs shown in the figure below Requirements 1. Show the MATLAB code used to plot both functions 5cos (nt-ng) (V) 5 e-"X cos (2nft-2nx/A) (V) a. y b- Use the frequency, wavelength and attenuation shown in the figure below when plotting graph (b) 2. 3. 4. Place labels for the x and y axis showing appropriate units Extend the x-axis to 10 cm and use a sampling rate of 0.1 mm Submit the final...
please help me with this MATLAB CODE and
explain to me what each line does and what is used for?
leave your comments as words, not as pictures.
.....................................................................................................................................................................
clear all; close all; % For a script file, you better start with
clear all and close all
% However, for a fucntion, you better NOT to start
% with them
%% End of cell mode example
%% Plot function
t = 0:0.1:5;
x1 = sin(2*5*t); x2 = cos(3*7*t);...
One of the most important classes of time dependent signals are periodic signals. Periodic signals satisfy tho following signal equations, x(t) X(t) x(t+nt) for n 2,3. The periodic signals to be observed in this laboratory assignment are shown below. In all the examples A represents the amplitude of the signal and may be given as the measurement from 0 to the peak value A, Apk or can be given as the measurement between A and -A which defines a peak-to-peak...
answer 4, 5, 6, 7 using matlab
Homework 10 1. Write the correct first-line syntax for a user defined function that is named Feynman and has input variables q and e, and outputs L and M. (Comment out of this line). 2. Using zeros, ones, and eye commands write the one line syntax to create the following matrix: 00000 01100 01010 01001 3. Write the syntax for the user defined function that calculates the surface area and volume of a...