Simbiology error :- Rule is not a valid Matlab expression
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
When I am writting a rate rule I am getting this above error message. My rule is
LuxI = (1/Tx) ∗ (((tl_luxI ∗ [mRNA_luxI]) ∗ Tx) − ((dLuxI ∗ [LuxI]) ∗ Tx))
I have seen some of the error messages answers of Matlab but nothing worked in my case.Kindly help me with this.
採用された回答
Walter Roberson
2021 年 6 月 24 日
Your ∗ characters are all char(8727), unicode U+2217 https://www.compart.com/en/unicode/U+2217 "Asterisk Operator" .
They instead need to be char(42), unicode U+002A https://www.compart.com/en/unicode/U+002A "Asterisk"
8 件のコメント
Shivam Thakker
2021 年 6 月 24 日
Thank you sir for your reply.
I have tried changing it and I am still getting the same error. This is the updated equation.
LuxI = (1/Tx) * (((tl_luxI * [mRNA_luxI]) * Tx) − ((dLuxI * [LuxI]) * Tx))
LuxI = (1/Tx) * (((tl_luxI * [mRNA_luxI]) * Tx) − ((dLuxI * [LuxI]) * Tx))
The − is char(8722) U+2212 https://www.compart.com/en/unicode/U+2212 "Minus sign", but needs to be char(45) U+002D "Hyphen-Minus"
So
LuxI = (1/Tx) * (((tl_luxI * [mRNA_luxI]) * Tx) - ((dLuxI * [LuxI]) * Tx))
Shivam Thakker
2021 年 6 月 24 日
Thank you so much sir. It completely works.
But I have another issue that when I set the unit of one of species as 1/minute, it is not allowing and getting a message that this is not a valid unit. So I went to Libraries -> Custom Libraries -> Units. There I tried adding this unit but didn't worked. Can you help me with this like how can I set the unit to 1/minute.
Florian Augustin
2021 年 6 月 24 日
Hi,
the units of species must be specified in amount, amount/length, amount/area, or amount/volume. This is because species in SimBiology represent quantities or concentrations. If necessary (and possible) in your use case, I suggest to use "parameters" instead of "species". This allows you to specify units more freely.
-Florian
Walter Roberson
2021 年 6 月 24 日
Thanks, Florian, that sounds useful to know.
Shivam Thakker
2021 年 6 月 24 日
Thank you @Florian Augustin. It worked completely and now I am able to assign the units that I want. Thank you@Walter Roberson and @Florian Augustin for replying and helping me.
Shivam Thakker
2021 年 6 月 25 日
Actually, sir, I want some help regarding the same. Sir, I am referring to a paper in which they have build a model in Simbiology but they have not given the concentrations and units for all the parameters. So for now I have set the units by myself. So I am getting an error that the "Quantities of different dimensions cannot be added or subtracted". I know that this error is due to the random units(dimensions) that I have set. But can you help me or guide me on how can I remove this kind of error. I have tried unit conversion to true but is not working. Probably I have misunderstood the meaning of unit conversion.
Walter Roberson
2021 年 6 月 25 日
Unit conversion is for converting between compatible units, such as mm and m, or Newton-metres and Joules.
It does not assign "whatever units that make the calculations work out".
その他の回答 (0 件)
コミュニティ
その他の回答 SimBiology コミュニティ
カテゴリ
ヘルプ センター および File Exchange で Extend Modeling Environment についてさらに検索
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
