x(1,:,:)
ans(:,:,1) =
10 10 10
ans(:,:,2) =
5 5 5
ans(:,:,3) =
2 2 2
ans(:,:,4) =
5 5 5
ans(:,:,5) =
5 5 5
ans(:,:,6) =
4 4 4
ans(:,:,7) =
5 5 5
ans(:,:,8) =
4 4 4
ans(:,:,9) =
5 5 5
ans(:,:,10) =
6 6 6
ans(:,:,11) =
4 4 4
ans(:,:,12) =
5 5 5
ans(:,:,13) =
4 4 4
ans(:,:,14) =
5 5 5
ans(:,:,15) =
4 4 4
ans(:,:,16) =
4 4 4
ans(:,:,17) =
5 5 5
ans(:,:,18) =
7 7 7
ans(:,:,19) =
8 8 8
ans(:,:,20) =
9 9 9
I have to input these values in matlab in array format for easier calculations. because i find these values practically.

댓글 수: 2

Jan
Jan 2015년 11월 2일
These value are existing in an array format already. So please post a small example of what you want to achieve.
Triveni
Triveni 2015년 11월 4일
I needed "reshape" command as answered by Federico Becattini.

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

 채택된 답변

Federico Becattini
Federico Becattini 2015년 11월 3일

0 개 추천

If you only want to store these values in an array you can do:
array = reshape(x(1,:,:),1,[])
If you want to display the values in a better way the squeeze function could help:
squeeze(x(1,:,:))
This function removes all dimensions with no elements, so in this case you get a 3x20 matrix.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

질문:

2015년 11월 2일

댓글:

2015년 11월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by