How can i define MinSize, i am getting an error?
1 回表示 (過去 30 日間)
古いコメントを表示
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
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?
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!