i need help pleassssss to solve this ....... can any one generate the code for this problem ????
1 view (last 30 days)
Show older comments
beshoy mofed
on 27 Sep 2017
Commented: ziad tarek
on 14 Dec 2020
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
Accepted Answer
Walter Roberson
on 27 Sep 2017
Edited: Walter Roberson
on 27 Sep 2017
See inputdlg() and strcmpi() and str2double()
0 Comments
More Answers (1)
ziad tarek
on 14 Dec 2020
please I want some ideas about how i can start solving this problem
Idk anything about matlab
2 Comments
See Also
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!