필터 지우기
필터 지우기

replace one Listbox cell with another

조회 수: 1 (최근 30일)
Vincent I
Vincent I 2012년 6월 18일
i would like to replace one line or cell with another.
eg I have 10 cells and I would like to replace cell #2 with cell #7 and vice versa
temp= Cell2
Cell2=Cell7
Cell7=temp
I tried everything and the only way i can move a selected cell is to the top on the listbox. Thank you

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 6월 18일
A - your cell array with size (10 x 1)
A([2,7]) = A([7,2]);
  댓글 수: 1
Vincent I
Vincent I 2012년 6월 18일
damn haha that easy.. thank you it worked

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by