Borrar filtros
Borrar filtros

How to create the 3D mesh plot in Simulink

2 visualizaciones (últimos 30 días)
Jack Daniels
Jack Daniels el 10 de Nov. de 2022
Respondida: Amith el 11 de Ag. de 2024 a las 5:20
I am having simple m-code ..
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
figure(1)
mesh(Z)
and it displays
I want to do it in Simulink - Is it possible to do 3D mesh in SImulink - how?

Respuestas (1)

Amith
Amith el 11 de Ag. de 2024 a las 5:20
Hi Jack,
Creating a 3D mesh directly in Simulink isn’t possible, as Simulink is primarily used for modeling, simulating, and analyzing dynamic systems. However, you can integrate MATLAB with Simulink to achieve this. Here’s a general approach:
  1. Create the 3D Mesh in MATLAB: Use MATLAB functions like the one used above to create a 3D Mesh.
  2. Integrate with Simulink: Use the MATLAB Function block in Simulink to call your MATLAB code that generates the 3D mesh.
Learn more about MATLAB Function block by clicking on the link below: https://www.mathworks.com/help/releases/R2022b/simulink/ug/what-is-a-matlab-function-block.html
Hope this helps!

Categorías

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

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by