Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.9K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Use expression and string together in text command?

Hello. I have a very small problem but cannot solve it.

I would like to put a label referring to a running index in a plot (e.g., Plot) such as “z=10.0123”. If you see the attached file, I do not know how to combine the string “z=” with the expression “PaddedForm[N[z], {6, 4}]” together in command text. So far I just got the expression in.

So my problem is how to combine string and expression/number so that is can be used within the command text.

Any help would be greatly appreciated.

Thanks, Markus

Attachments:
POSTED BY: Markus Schmidt
3 Replies

Hi guys. Perfect, thank you both very much for that. Markus

POSTED BY: Markus Schmidt
Posted 10 years ago

Try this:

  Text["z =" <> ToString[PaddedForm[N[z], {6, 4}]]
POSTED BY: Louis Godwin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard