Hi, I'm new with MATLAB and I have a bit of problem regarding matrix transformation.
I have two matrix A & B
and
You can see that the first row of those matrix are years, then the second row are weeks in that year and the last one is the value. I want to transform matrix B based on matrix A, so that I have
It can be seen that the transformed matrix B has similar column number as matrix A. The first two row is the same as matrix A, but the last row is different. It has the same value as the old matrix B and just add 0 in the missing one. I hope this explanation is good enough to describe the problem.
Best Answer