How to add number at the end of rand
<p>Hello I have to generate 5 lines of  random numbers and at the end of random numbers I have to add one extra negative number from (-1 to -9) I tried strcat and things like that but I couldn't combine negative and real numbers can You help me please? The code below will create everything what I need but I have to somehow combine them. Result has to be for example  </p>

<pre><code>1 2 3 4 5 -1
5 8 3 5 9 -2
.
.
.
9 2 4 8 6 -9

for b = 1:9    
    x = round(rand(1,5)*9);
    disp(x)
end
for a = -1:-1:-9


    disp (a);
end
</code></pre>