-2

私はこの単純なコードを実行しようとしています:

test = int(h, h = 0..1); disp(test);

ただし、Matlab は次のように教えてくれます。

??? Error: File: Q1.m Line: 34 Column:
17
The expression to the left of the
equals sign is not a valid target for
an assignment.

(17列目は「h=」に対応)

(プログラムの残りの部分は、主に行列の定義とそれらのメッシュ化です。必要な場合は教えてください。)

4

2 に答える 2

3

これを使って :

>> syms h
>> test = int(h, h,0,1)

test =

1/2
于 2013-10-02T08:17:46.543 に答える
0

matlab の int() のドキュメントを読んでください。あなたが私があなただと思うことをしようとしているなら、あなたはしたいです

int(h, 0, 1) 

詳細: www.mathworks.com/help/symbolic/int.html

于 2013-10-02T08:18:50.733 に答える