MATLAB Answers

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

One matrix for different amount of values

조회 수: 1(최근 30일)
Max Behr
Max Behr 9 May 2019
댓글: Alex Mcaulley 9 May 2019
Hello,
I would like to have a matrix for the variable time(sec).
Basicallly something like this for ten different testing situations
time =(10,X)
Unfortunately the time for the testings is not fix and therefor I have different testings times:
time =
1 2 3 4 5 6 7
1 2 3 4 5
1 2 3 4 5 6
1 2 3
...
Is it still possible to do it within a matrix?
Or should I sperate them?
Thanks.

  댓글 수: 2

Alex Mcaulley
Alex Mcaulley 9 May 2019
In a matrix every row has the same number of columns. In your case a good option is to use a cell array

답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by