Error using imwrite>parse_inputs (line 515) The first argument should not be a string
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
KSSV
am 21 Jan. 2019
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?
Antworten (1)
Siehe auch
Kategorien
Mehr zu File Operations 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!