필터 지우기
필터 지우기

how to plot image signal ?

조회 수: 10 (최근 30일)
Tim Usen
Tim Usen 2019년 1월 22일
답변: Brian Hart 2019년 1월 22일
The code below was given
RGB = imread('flowers.jpg');
RGB1 = imadd(RGB,50);
RGB2 = imsubtract(RGB,100);
RGB3 = imadd(RGB,150);
and all I needed was to create four subplots,and plot variables RGB, RGB1, RGB2, and RGB3 which I did below,
but it didn't work.
subplot(2,2,1);plot(RGB);title('RGB')
subplot(2,2,2);plot(RGB1);title('RGB1')
subplot(2,2,3);plot(RGB2);title('RGB2')
subplot(2,2,4);plot('RGB3');title('RGB3')
As I understood I need to plot three dimension image but I don't how.
Can anyone help me with this code?

답변 (1개)

Brian Hart
Brian Hart 2019년 1월 22일
Hi Tim,
Try replacing "plot" with "imshow". Also need to remove the quotes from the second command in the last line...
subplot(2,2,1);plot(RGB);title('RGB')
subplot(2,2,2);imshow(RGB1);title('RGB1')
subplot(2,2,3);imshow(RGB2);title('RGB2')
subplot(2,2,4);imshow(RGB3);title('RGB3')
untitled.bmp

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by