joining two strings + using pointers to the variable within strings
joining two strings + using pointers to the variable within strings
(OP)
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!
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!





RE: joining two strings + using pointers to the variable within strings
time_and_units = [time units];
Second: (same as the first, just add one space character)
label([time ' ' 'ms/div'])