Raoulll
Raoulll

Reputation: 1

How to visualize a picture in dymola?

I want to visualize the picture in dymola. The current method I use is to output an image matrix into a MAT file and use MATLAB to visualize the picture. Where the element value of the image matrix is the pixel value, and the element position is the image position of the pixel (the size is 320*256), is there a way to directly visualize the picture in dymola? Here's the code for me to output the image matrix:

Streams.writeRealMatrix(fileName="C:/Users/Raoul/Desktop/SIM/data/image_output.mat", matrixName="image_data", matrix=image, append=false, format="4");

Upvotes: 0

Views: 46

Answers (1)

Dag B
Dag B

Reputation: 759

Look at the Plot3D library, for example Plot3D.Examples.Surfaces.SurfaceDemo.

Upvotes: 0

Related Questions