Error using imwrite>parse_inputs (line 515) The first argument should not be a string
显示 更早的评论
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?
IP student ;(
2019-1-21
回答(1 个)
Geoff Hayes
2019-1-21
0 个投票
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!