Two variables concatenation to one in Simulink
2 views (last 30 days)
Hello, I am trying to concatenate this 2 values A and B and send the resolution to C
Like if i have A=1111 and B=9999 i would like to have C=11119999,
is there a block that can do this, of a function i can use ?
Thanks in advance.
Walter Roberson on 8 Aug 2022
How do you want distinguish these cases:
A = 1234 B = 567
A = 123 B = 4567
What do you want to do if the values are negative? If A is positive and B is negative do you want (for example 1111-9999 as the result?
Might I suggest you use https://www.mathworks.com/help/simulink/slref/composestring.html