i need help pleassssss to solve this ....... can any one generate the code for this problem ????

1 view (last 30 days)
It is required to implement a general signal generator that has the following specifications:
(1) When the program starts the program asks the user for the following parameters:
a. Sampling frequency of signal.
b. Start and end of time scale
c. Number of the break points and their positions (i.e. the points that the signal definition rule changes).
Example: The signal is defined from -2→0 as a DC signal and from 0→2 as ramp the user will enter that the number of break points =1 and the position at t=0
(2) According to the number of break points the program asks the user at each region to enter the specifications of the signal at this region which are:
a. DC signal: Amplitude.
b. Ramp signal: slope – intercept.
c. Exponential signal: Amplitude – exponent.
d. Sinusoidal signal: Amplitude – frequency – phase.
(3) Then the program will form the previous signal using the indirect method
Requirements:
1. Plot the output of the signal generator.
2. Test your code by the generating the following message.
  4 Comments
beshoy mofed
beshoy mofed on 28 Sep 2017

i kown what you mean but i have alot of home work in matlAB IN MY PDF FILE AND THIS IT 1% OF MY HOME WORK SO I TIRED FROM DOING ALOT OF HOMEWORK THAT MADE ME ASK FOR THIS HELP ..... EVEN THAT I AGREE WITH @Stephen Cobeldick and @NILESH PANDEY .... AND THANK TO YOU

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 27 Sep 2017
Edited: Walter Roberson on 27 Sep 2017
See inputdlg() and strcmpi() and str2double()

More Answers (1)

ziad tarek
ziad tarek on 14 Dec 2020
please I want some ideas about how i can start solving this problem
Idk anything about matlab

Categories

Find more on Startup and Shutdown 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!