functionの書き方について
古いコメントを表示
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')
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で 関数 についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!