my code:
while size(row) > 1
[ CROP_THIS ] = remove_edges_from_matrix_function( CROP_THIS,1 );
end
i want the loop to run this function while the condition size(row) > 1 for some reason the matrix stay the same (the function do nothing), as if i never wrote those lines what am i doing wrong?
the function: https://www.dropbox.com/s/fj1e7mxos5tpfo7/remove_edges_from_matrix_function.m

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2014년 2월 4일
편집: Andrei Bobrov 2014년 2월 4일

0 개 추천

out = CROP_THIS;
while min(size(CROP_THIS)) > 1
CROP_THIS = remove_edges_from_matrix_function( CROP_THIS,1 );
out = [out,{CROP_THIS}];
end

추가 답변 (0개)

카테고리

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

제품

태그

질문:

2014년 2월 4일

편집:

2014년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by