Row vector and corresponding column vector for each row
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to create a single row vector with each element of the row array being a column vector and I want to access a certain element of any row number and the column which would be user-defined.
답변 (1개)
Jos (10584)
2017년 12월 5일
Something like this?
% two cell arrays (being column vectors) of strings
c1 = {'hello', 'friend'}
c2 = {'my' ; 'name' ; 'is' ; 'joe'}
% create cell row vector holding these cell array of strings
r = {c1 c2}
댓글 수: 3
Jos (10584)
2017년 12월 5일
편집: Jos (10584)
2017년 12월 5일
Sorry, you've lost me. I suggest you read the Getting Started section of the manual and learn about cell arrays and structs. These might be what you are looking for.
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!