there is a command which takes only one arguement as a dimension of a square spiral matrix.But I need a way to generate such a matrix which takes the numbers of rows and columns as inputs and it might not be a square
MATLAB: How to generate a spiral matrix which starts from first element
spiral
Best Answer