-
2 Comments
evan muas
on 10 Jul 2020
used y=y+str2double(x(i)) instead of y=y+str2double(x(i)) and it worked just fine
Sanchita Malla
on 29 Aug 2020
function y = one(x)
y1=[];
for a=x(1:end)
y1 = [y1,str2num(a)];
end
y=sum(y1);
end
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!