The syntax of ind2sub is
[s1,s2,s3,...,sd]=ind2sub(size,i)
where s1,… are d vectors of size Nx1 when i has size Nx1 and size has d dimensions.
Is there a way to write something like s=ind2sub(size,i) where s has size Nxd?
indexingMATLAB
[s1,s2,s3,...,sd]=ind2sub(size,i)
Best Answer