Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Misrak Seifu
Misrak Seifu am 16 Jun. 2014
Kommentiert: dpb am 16 Jun. 2014
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 Kommentare
Geoff Hayes
Geoff Hayes am 16 Jun. 2014
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 am 16 Jun. 2014
Not really i just attached my m file..the error is on line 39

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

dpb
dpb am 16 Jun. 2014
...
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 Kommentare
Misrak Seifu
Misrak Seifu am 16 Jun. 2014
Thank you for the help but it was not the files missing. It was just because i didn't round it.
dpb
dpb am 16 Jun. 2014
Say what!!!!????

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by