padarray using a for loop
4 views (last 30 days)
Matthew Eicholtz on 22 May 2017
I think the error is because you are trying to assign a padded row vector of length M to the pre-padded row vector of length N (N<M). If you are going to pad every row in the same manner, you can try:
rc2fsktu = padarray(rc2fsktu,[0 1],'symmetric','post');
Otherwise, I suggest storing the padded array in another variable name.