필터 지우기
필터 지우기

append the cell vector with out exceeding the border

조회 수: 2 (최근 30일)
Mohamuud hassan
Mohamuud hassan 2015년 5월 10일
댓글: Walter Roberson 2015년 5월 11일
hello all; i am using cell vector which was the total elements 12 and i modified 7 of that 12 elements,so how i can replace remaining with suitable index or position by using this function. in the example k1 have 12 elements and also k2 have 7 elements(modified elements).
emlist_len=length(k2)+1;
for email_coun=emlist_len: length(k1)
unmodified_emai(email_coun,1)=k1(email_coun);
end
k2=vertcat(k2,unmodified_emai);
also i applied the and i got this result
'ibadal202@gmail.com'
'qzaman@msn.com'
'dfoorno020@msn.com'
'myey@hotmail.com'
'qkemal@myspace.com'
'zvarfi1013@gmail.com'
'vlul010@mynet.com'
[]
[]
[]
[]
[]
[]
[]
'uwardo@msn.com'
'izaman@hotmail.com'
'htimiro@myspace.com'
'mfoorno@hotmail.com'
'uelo@hotmail.com'

채택된 답변

Walter Roberson
Walter Roberson 2015년 5월 10일
k2=vertcat(k2,unmodified_emai(emlist_len:end));
  댓글 수: 2
Mohamuud hassan
Mohamuud hassan 2015년 5월 11일
thank you walter this is the appropriate answer
Walter Roberson
Walter Roberson 2015년 5월 11일
You should be considering just using
k2 = vertcat(k2, k1(size(k2,1)+1:end));

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by