필터 지우기
필터 지우기

i need code in matlab

조회 수: 1 (최근 30일)
ahmad saleh
ahmad saleh 2015년 10월 9일
답변: Image Analyst 2015년 10월 9일
find the correlation coefficient between i1=pout.tif and i2=pout.tif
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 10월 9일
pout is not a standard MATLAB class, so pout.tif is not something we would expect to have defined.
ahmad saleh
ahmad saleh 2015년 10월 9일
i dont know this homework

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 9일
Your two inputs appear to be the same (unless pout.tif is a method of a class that implements randomness.) The correlation coefficient will be 1.
  댓글 수: 1
ahmad saleh
ahmad saleh 2015년 10월 9일
Thank you , but I want the code in matlab to confirm the answer

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Walter Roberson
Walter Roberson 2015년 10월 9일
i1 = rand(100,100);
i2 = i1;
corrcoef(i1, i2)
  댓글 수: 1
ahmad saleh
ahmad saleh 2015년 10월 9일
thank you

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2015년 10월 9일
Try this:
grayImage1 = double(imread('pout.tif'));
grayImage2 = grayImage1;
cc = corrcoef(grayImage1, grayImage2)
message = sprintf('The correlation coefficients are \n%f %f\n%f %f', cc)
helpdlg(message);

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by