필터 지우기
필터 지우기

How to save a Workspace cell variable in a folder out of matlab?

조회 수: 1 (최근 30일)
Leila
Leila 2020년 9월 30일
댓글: Ameer Hamza 2020년 10월 1일
I have an image cell in workspace and want to save them in a folder in my desktop. how could I di that?

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 30일
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)

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by