How do I use the subplot command in Matlab to display all 4 images D1 through D4 and label the plots with the powers used to obtain them?
26 ビュー (過去 30 日間)
古いコメントを表示
a=imread('C:\Users\Nathan Donatell\Pictures\SanDiego.jpg');
g = rgb2gray(a);
b = im2double(g);
c= mat2gray(a);
D1=c .^(1/4);
D2=c .^(1/2);
D3=c .^(2/2);
D4=c .^(3/2);
0 件のコメント
回答 (1 件)
Walter Roberson
2018 年 11 月 10 日
subplot(2,2,1); imshow(D1); title('1/4');
subplot(2,2,2); imshow(D2); title('1/2');
subplot(2,2,3); imshow(D3); title('2/2');
subplot(2,2,4); imshow(D4); title('3/2');
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!