I start a lot, so it's possible to do what I want in a simple way. I have a 121x62 matrix, but I need to expand it to 121x1488 so that each column repeats 24 times. For example, convert this:
2.2668 2.2667 2.2667 2.2666 2.2666 2.2666 2.2582 2.2582 2.2582 2.2582 2.2581 2.2581 2.283 2.283 2.283 2.2829 2.2829 2.2829 2.2881 2.2881 2.2881 2.2881 2.2881 2.288 2.268 2.268 2.2679 2.2679 2.2678 2.2678 2.2742 2.2742 2.2741 2.2741 2.2741 2.274
in it:
2.2668 2.2668 2.2668 and so on to 24th 2.2667 2.2667 and again to 24x 2.2582 2.2582 2.2582 ...
with each column.
I tried to create a vector with these values, and then convert using vec2mat and ok. I have a 121x1488 matrix, but it repeats with the lines:
2.2668 2.2668 2.2668 2.2668 2.2668 2.2668 ... 2.2582 2.2582 2.2582 2.2582 ...
How to do it column by column?
papkin
source share