0

この MATLAB コードを確認しています。いくつかの例があります。test_bnpc_asia.mを実行していますが、エラーが発生します。修正方法は? (私は MATLAB R2010B を持っています)

実行中:

>> test_bnpc_asia.m
================== phase I : 
Execution time : 0.12480

================== phase II : 
Execution time : 0.01560

================== phase III : 
Thinning - separateA
Thinning - separateB
Thinning - orient_edges
Infering directions 0 boucles
Execution time : 0.10920

score_Phase_3 =

 -6.0994e+003

Report genered in :

ans =

C:\Program Files\MATLAB\R2010b\BNT_SLP\examples

Warning: Direct access of structure fields returned by a function call (e.g.,
 call to test_bnpc_asia) is not allowed. See MATLAB 7.10 Release Notes, "Subscripting Into Function Return Values" for details. 
??? Attempt to reference field of non-structure array.
4

1 に答える 1

2

あなたはただタイプするべきです

test_bnpc_asia

それ以外の

test_bnpc_asia.m

ファイル拡張子は自動的に追加されます。これを追加すると、MATLABは、関数test_bnpc_asiaが構造体を返し、その構造体に含まれるフィールド「m」にアクセスしたいと考えます。

于 2011-03-21T10:28:09.567 に答える