how to call a mfile in another mfile
1 回表示 (過去 30 日間)
古いコメントを表示
i am dividing an image into blocks. Now for each block i want to calculate certain features and save the feature for each block as row in matrix. To calculate these features i already have a file which takes input as image using [namefile,pathname]=uigetfile({'img.jpg'}); and returns 1x11 feature vector. But this file reads an image as input. how can i use it for my problem to calculate features for individual blocks and save the feature vectors returned for each block as rows in a matrix.
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 10 月 19 日
Java Robot Class to get it to automatically navigate the uigetfile() menus as if you had clicked the appropriate keys yourself.
But really it would be so much easier to rewrite your second file slightly so that it received the file name as an input parameter, possibly adding a small extra function to invoke uigetfile() and call that revised routine if you still need to support the prompting for some reason.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!