matlab - Input signal for Simulink -


I want to use the following signal (red) in simulac as input.

Enter image details here

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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -