How can i define MinSize, i am getting an error?

조회 수: 1 (최근 30일)
Misrak Seifu
Misrak Seifu 2014년 6월 16일
댓글: dpb 2014년 6월 16일
When i try to pass a MinSize i am getting an error like i=this one below..How can i fix it?
Undefined function 'MinSize' for input arguments of type 'struct'.
Thank you
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2014년 6월 16일
Based on the error message, it seems that you are trying to use something called MinSize as a function and are passing a struct to it. The following code generates the same error
x.a = 42;
MinSize(x);
Given that there is no MinSize function, then this error message makes sense. Is this similar to what you are attempting?
Misrak Seifu
Misrak Seifu 2014년 6월 16일
Not really i just attached my m file..the error is on line 39

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

채택된 답변

dpb
dpb 2014년 6월 16일
...
I= dir([image_path,'*.jpg']);
[h w]=MinSize(I);
...
Of course you got the error-- I is the directory structure returned by dir, you've not loaded an image.
  댓글 수: 11
Misrak Seifu
Misrak Seifu 2014년 6월 16일
Thank you for the help but it was not the files missing. It was just because i didn't round it.
dpb
dpb 2014년 6월 16일
Say what!!!!????

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by