matlab - Input signal for Simulink -
I want to use the following signal (red) in simulac as input.
I have this picture . Any advice in the simplest way to implement this signal?
Your question has two parts: replacing the data with Matlab's work and feeding data to Simulink .
For the first part I think that simple thing put 30 points on this figure and write values in their projected (x, y) vectors x and y. Do not work hard because its first part is periodic.
Then use plot (x, y) to plot this vector in matlaback and update your estimated values until you are satisfied that your conspiracy is similar to the figure.
For the second part you can create a structure, where the time is similar to your X-axis and Y:
input.time = X;
input.signals.values = y;
Where x and y should have the same length
How can you import a symlink from the work site on this page, you can find good examples on this page:
Comments
Post a Comment