Borrar filtros
Borrar filtros

Creating a surface plot using Simulink?

3 visualizaciones (últimos 30 días)
Volker Klink
Volker Klink el 12 de Mayo de 2015
Respondida: Mike Garrity el 12 de Mayo de 2015
Hi everyone! I have a quite simple thing to do....
I have a Subsystem in Simulink with one output which calculates something from two inputs, so y = f(u,v).
All I wanna do is feed the block with two vectors, e.g. u = [0:.01:2] and v = [60:120]. I want my subsystem to calculate all results for all possible combinations and store it to a matrix in the workspace. I would like to create a surface plot with the result in the end. So there's no differential calculation or anything time-dependent in my subsystem.
I know how to do all this in MatLab but in that case I would have to recreate the whole content of my subsystem as a MatLab script.... Alternatively, does anyone know how to to export a Simulink subsystem to MatLab code? That would do the trick too I guess...
Thansk in advance Volker

Respuestas (2)

Nobel Mondal
Nobel Mondal el 12 de Mayo de 2015
Hi Vokler, if you already have designed the simulink model, you could simply use load_system and sim to get the output.

Mike Garrity
Mike Garrity el 12 de Mayo de 2015
There are a few different approaches to this. I described one in this post . That one's most suited for animating MATLAB graphics with Simulink, but you might find it useful.

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by