필터 지우기
필터 지우기

To store many double arrays in a double array

조회 수: 5 (최근 30일)
Khaing Zin Htwe
Khaing Zin Htwe 2016년 4월 20일
댓글: Khaing Zin Htwe 2016년 4월 22일
Dear all, Could you please help me how to store many double arrays in a single array? I have many double arrays with dimensions 1x512 .I want to store these array in a single array.How can I do it,please? Thanks all.

채택된 답변

Jan
Jan 2016년 4월 21일
a = rand(1, 512);
b = rand(1, 512);
c = rand(1, 512);
M = [a; b; c]
Having "many" variables sounds like a bad idea. Note that the matrix is more practical.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 20일
편집: Azzi Abdelmalek 2016년 4월 20일
  댓글 수: 5
Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 21일
You said it worked!
Khaing Zin Htwe
Khaing Zin Htwe 2016년 4월 22일
I meant storing many arrays with same dimension to a single array was okay. But not for different dimensions. It says that " dimensions are not consistent".THanks sir.

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

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by