functionの書き方について
Ältere Kommentare anzeigen
matlab初心者です。 色々見ながら、以下のコードで実行できると思うのですが何が問題わからず困っております。 アドバイス頂けると幸いです。
以下function file
function down (img)
close all;
clear all;
I = imread(img);
figure, imshow(I);
img_64 = imresize(I, 0.25);
figure, imshow(img_64);
end
以下実行コマンド
img = 'name.jpg'
down ('img')
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 関数 finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!