cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Concatenate in Mathcad

JesseFresch
1-Newbie

Concatenate in Mathcad

I have been trying to figure out if Mathcad is capable of contatenating a text string with a number having units into a sigle line. I want to use this for a results page. Example: d = 45 ft Results = concatenate("The maximum span is ",d) Results = The maximum span is 45 ft The above is simply how I have done it in Excel. Can anyone tell me if this is possible in Mathcad. (I'm using Mathcad 14 if you're wondering)
2 REPLIES 2
RichardJ
19-Tanzanite
(To:JesseFresch)

When you assign 45*ft to d it is stored internally in SI units (in this case m). There is therefore no way to automatically get ft in the answer. Apart from that restriction, this will give you the string you want: concat("The maximum span is ",num2str(d/ft),"ft") Richard

Thank you, that is what I was looking for and it worked fine when I tried it.
Top Tags