how to break the the simulation

조회 수: 2 (최근 30일)
Kanakaiah Jakkula
Kanakaiah Jakkula 2017년 4월 14일
Hi,
I have following cell array of list of names,I want to check if any different name consecitively appearse, then break the loop, and copy the rows corresponding those two consecutive names
Kham 4
Kham 7
Kham 8
Kham 2
Tpal 4
Raki 1
Hayi 5
Unk 7
my desired output is(two rows concatenate row wisw(side by side):
Kham 2 Tpal 4
if no different names appears consecutively, then just extract first two rows for example(I every time my input matrix is different):
Kham 4
Kham 7
Kham 8
Kham 2
in this my output should be: Kham 4 Kham 7
Thanks for the help in advance

답변 (0개)

카테고리

Help CenterFile Exchange에서 Design of Experiments (DOE)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by