i need help pleassssss to solve this ....... can any one generate the code for this problem ????
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2017-9-27
编辑:Walter Roberson
2017-9-27
See inputdlg() and strcmpi() and str2double()
0 个评论
更多回答(1 个)
ziad tarek
2020-12-14
please I want some ideas about how i can start solving this problem
Idk anything about matlab
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!