Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

joining two strings + using pointers to the variable within strings 1

Status
Not open for further replies.

ajkalos

Electrical
Nov 21, 2006
1
0
0
BA
Hi all,

I'm having 2 small problems and I'd appreciate your help.

First problem:
How to join two string variables:
time='100 ';
units='ms/div';
"time + units" = 100 ms/div ?

Second problem:
time=100;
wtime=int2str(time);
label('wtime ms/div'),
where wtime is a pointer to a string variable wtime.

Thanks ahead!
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top