Simbiology error :- Rule is not a valid Matlab expression
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
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
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))
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.
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
Thanks, Florian, that sounds useful to know.
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.
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.
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 Community
카테고리
도움말 센터 및 File Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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)
