functionの書き方について
Show older comments
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')
Accepted Answer
More Answers (0)
Categories
Find more on 関数 in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!