for k=kk(1):kk(end)
ricampionocan2(:,i)=cat(2,ricampiono{1,i}(:,2));
ricampionocan3(:,i)=cat(2,ricampiono{1,i}(:,3));
ricampionocan4(:,i)=cat(2,ricampiono{1,i}(:,4));
end
I have this for loop (k) inside another for loop (i). I must break the cell structure and change name at ricampionocan pairing it with k. I would like it to become ricampionocan (k function).
can you help me?

댓글 수: 3

Stephen23
Stephen23 2016년 2월 25일
편집: Stephen23 2016년 2월 25일
"can you help me?"
Yes we can! The best help we can give you is show you how this can be done much more reliably and much faster using indexing and just one variable: i.e. store your data in a cell array or a 3D array:
ricampionocan = zeros(rows,cols,kk(end));
for k = kk(1):kk(end)
ricampionocan(:,i,k)=cat(2,ricampiono{1,i}(:,k));
end
rr88
rr88 2016년 2월 25일
i have a table with names i want include in ricampionocan. but i don't now how
rr88
rr88 2016년 2월 25일

grazie mille!!!

댓글을 달려면 로그인하십시오.

답변 (1개)

Stephen23
Stephen23 2016년 2월 25일
편집: Stephen23 2019년 6월 19일

0 개 추천

댓글 수: 1

rr88
rr88 2016년 2월 25일
편집: rr88 2016년 2월 25일
i have a table with names i want include in ricampionocan. but i don't now how. I have only four values of k.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2016년 2월 25일

편집:

2019년 6월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by