Error using imwrite>parse_inputs (line 515) The first argument should not be a string
조회 수: 10 (최근 30일)
이전 댓글 표시
when i use directory name im getting this error.
dr=uigetdir();
A=dir([dr,'\*.jpg']);
for i=1:size(A)
B=strcat(dr,'\',A(i).name);
cd('C:\Users\user17\Documents\MATLAB\C\');
imwrite(B,'newimage.jpg');
댓글 수: 2
KSSV
2019년 1월 21일
imwrite is used to write a image......here your B is a string...you can write string using imwrite.....what you are trying to do?
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!