How can I export the picture to matrix

1 view (last 30 days)
远志 崔
远志 崔 on 13 May 2021
Answered: Arjun on 3 Mar 2025
Now I have a 3D result picture from comsol. I want to transform this picture to Three-dimensional matrix in order to analysis electric field distribution.What should I do or what code should I enter in matlab.I'm waiting for someone who can solve this problem.Thanks for your attention.

Answers (1)

Arjun
Arjun on 3 Mar 2025
I see that you want to export a picture to matrix in MATLAB.
In order to do so you can follow the below mentioned steps:
% example usage of imread
x = imread("demo.jpg");
I hope this helps!

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!