Using MATLAB CODE

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Using MATLAB CODE

Post by answerhappygod »

Using MATLAB CODE
Using Matlab Code 1
Using Matlab Code 1 (199.17 KiB) Viewed 14 times
(10 POINTS) (a) Write an M-file called syn sin.m that will synthesize a waveform in the form of: [5Marks] x(1) Σ cos(2m fut + x) Your function should contain the following: function [xx.]-syn_sin(fthk,fs, dur, tatar) %SYN SIN Function to synthesize a sum of cosine waves % usage: % [xx.ft]-syn_sin(fk,thk, fs, dur, tstart) % tk-vector of frequencies % (these could be negative or positive) % fs the number of samples per second for the time axis % dur-total time duration of the signal % start-starting time (default is zero, if you make this input optional) % xx-vector of sinusoidal values % tt-vector of times, for the time axis !!Note That Your Function Will Contain One Loop!! (b) Use your function to find the sum of three signals with the following inputs: [SMarks] FK-[100 200 300]; thk-[pi pi/2 2*pil; fs-11024; nd
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply