How to save a Workspace cell variable in a folder out of matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Leila
am 30 Sep. 2020
Kommentiert: Ameer Hamza
am 1 Okt. 2020
I have an image cell in workspace and want to save them in a folder in my desktop. how could I di that?
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 30 Sep. 2020
Use imwrite(): https://www.mathworks.com/help/matlab/ref/imwrite.html. You can specify complete path to desktop. For example
img = % image matrix
path_to_desktop = 'C:\...'; % write the path to desktop
name_image_file = 'image.jpg'; % name of image file
filepath = fullfile(path_to_desktop, name_image_file);
imwrite(img, filepath)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!