suppose i have a matrix with the following numbers
736274736273736246736245736211736210736183736182
i want to turn the above into the following
736274736273736272736246736245736244736211736210736209736183736182736181
how can i do this? with the formula below i can only substract by one but i want to substract by one and two
result = reshape([date_num.'; date_num.'-1], [], 1);
Best Answer