Skip to main content
1-Visitor
July 8, 2020
Solved

I am unable to name a variable with a subscript

  • July 8, 2020
  • 2 replies
  • 4065 views

I am trying to solve a system of equations but I have 3 knowns. When I try to define the knowns, if I use a subscript, I get the error message:

"these units are not compatible"

or:

"the variable is undefined. Check that the label is set correctly."

 

I've defined variables and knowns with subscripts before and I don't know what I am doing wrong. Thanks for the help.

 

PS: This is a continuing post from an earlier problem and I keep on running into new and exciting problems 🙂

 

Best answer by VipulT

Hello @trip12345

 

The subscript that you have used is index operator.

For more information please click here 

 

And for name definition we need to use literal subscript.You use literal subscripts for naming purposes only. The literal subscript works in math regions only and not in text regions.

You can find more information in help center kindly click here

 

So by using literal subscript you would not face the issue.

2 replies

24-Ruby IV
July 8, 2020

LIFT.png

trip123451-VisitorAuthor
1-Visitor
July 8, 2020

Thanks for the hotkey.

VipulT16-PearlAnswer
16-Pearl
July 8, 2020

Hello @trip12345

 

The subscript that you have used is index operator.

For more information please click here 

 

And for name definition we need to use literal subscript.You use literal subscripts for naming purposes only. The literal subscript works in math regions only and not in text regions.

You can find more information in help center kindly click here

 

So by using literal subscript you would not face the issue.

trip123451-VisitorAuthor
1-Visitor
July 8, 2020

@VipulT Thank you very much for the simple answer. I knew I was doing something very easy and I thought there were shortcut keys to do subscript but I didn't realize I was identifying a index operator. Kudos.