I would like to add two vectors with different lengths in Matlab or Octave. E.g.
aa = [1 2 3 4];
bb = [100 100];
Which should result in a vector cc containing
cc = [101 102 3 4]
Can anyone figure out how to do this?
Update: This is the code I ended up with for the signals that I then later convert to grey scale images.
load train;
t = y;
load chirp;
c = y;
tc = c + [t; zeros(length(c) - length(t),1)];
plot(1:length(tc),tc)
Thank you very much to you all =)
This doesn’t make any sense mathematically, but if you insist, you can do this: