使用limit函数求​极限提示不允许不同类​型之间赋值,怎么解决​?

3 ビュー (過去 30 日間)
巴卡木梨
巴卡木梨 2024 年 4 月 22 日
回答済み: Dyuman Joshi 2024 年 4 月 22 日

採用された回答

Dyuman Joshi
Dyuman Joshi 2024 年 4 月 22 日
I scrolled across the image - jie is already defined as a struct (possibly in the code before this particular lines), thus you can not over-write it using indexing.
You can either
1) Over-write jie completely, like this -
jie = [limit(f, inf) limit(f, +inf) limit(f,-inf)]
or
2) Clear jie and then assign the limit values -
clear jie
jie(1) = limit(f, inf)
jie(2) = limit(f, +inf)
jie(3) = limit(f, -inf)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBig Data Processing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!