How to create finer mesh with material distributions?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SAMUEL AYINDE
am 4 Jan. 2017
Bearbeitet: Mohammad Abouali
am 5 Jan. 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159470/image.jpeg)
I have a matrix of number which represent the material distribution in finite elements. How can I create a finer mesh with these matrix in MATLAB? I need a code which I can use to create a remesh/finer mesh. For example, let us say I have a 30*30 matrix which denote the material distribution in finite elements. I need a code that I can use to generate a remesh/finer mesh in MATLAB. Thank you.
2 Kommentare
Akzeptierte Antwort
Mohammad Abouali
am 5 Jan. 2017
Bearbeitet: Mohammad Abouali
am 5 Jan. 2017
% Initializing a sample image
myImage = [0 1 1 1; ...
1 0 1 1; ...
1 0 0 1; ...
1 1 1 1];
imshow(myImage,'InitialMagnification',10000)
% using imresize to resize the image and refine it.
myRefinedImage = imresize(myImage,2,'nearest');
imshow(myRefinedImage,'InitialMagnification',10000)
Check the method options. if the value in image are label to a certain material so you need to use nearest. However, depending on your application you might need to use other methods.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!