- It appears when a string ends with a number, it is automatcally getting subscripted in a live script. Place a space after the number to avoid the subscripting.
- Removing the "<" fixes the red diamond with a question mark. I realize you need it. I just haven't figured out how to do that.
displayFormula in LiveScript giving me a red triangle with a question mark - and NO explanation!
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kommentiert: Dimitri am 5 Nov. 2021
Can someone tell me why this code:
syms y t;
eqstr=["'Region 2'"; eq ; "'for t+3>=-2 and t+(7-D)<=2'"];
gives me the following output:
Specifically, why the heck am I getting that red triangle with NO explanation in the Live Editor, and also "Region 2" has the 2 as a subscript?
When I run the code in the interpreter, things work fine and I get the following:
...but no error telling me something was awry that would justify the red question mark in the Live Editor.
Does anyone have any idea?
Cris LaPierre am 5 Nov. 2021
Bearbeitet: Cris LaPierre am 5 Nov. 2021
I can't say why it is doing what it is doing. However, some playing around determined the following.
syms y t
eqstr=["'Region 2 '"; eq ; "'for t+3>=-2 and t+(7-D) =2 '"];
Both of these look like issues that should be reported to MathWorks support. You can do that here.
Weitere Antworten (0)
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!