sub2ind problem

2 vues (au cours des 30 derniers jours)
Mohammad Golam Kibria
Mohammad Golam Kibria le 13 Juin 2011
Hi, I have the following code.
index1=sub2ind(size(I),r1,c1);
info{i}(:,1)=I(index1);
It shows me the following error:
??? Subscripted assignment dimension mismatch.
can anybody help?

Réponse acceptée

Jan
Jan le 13 Juin 2011
Please inspect the values of r1, index1 and i. Most likely "size(I(index1))" does not match the needed column vector size.
We do not have magic tools to solve this problem. Everything we can do to solve the problem, can be done by yourself also. But you have additional knowledge about the values of all variables.

Plus de réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by