필터 지우기
필터 지우기

Info

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

How do I make 1 matrix from this two matrices?

조회 수: 3 (최근 30일)
jakobjakob
jakobjakob 2018년 6월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
How do I make one matrix out of these two matrices?

답변 (1개)

Stephan
Stephan 2018년 6월 9일
편집: Stephan 2018년 6월 9일
Hi,
you cant make a matrix from this, because in one file there are strings in a language i dont know. Use a table instead:
your_table = table(kijkrichting_kijkmoment(:),tijd_kijkmoment(:));
This will give you a table 1702x2 looking looking like this:
.
Another way would be to make a cell array by doing this:
your_cell_array(:,1) = kijkrichting_kijkmoment(:);
your_cell_array(:,2) = num2cell(tijd_kijkmoment(:));
This gives you the nearly same result - with the difference that it is a cell array and not a table.:
.
If you have R2016b or higher you can also consider to create a string array from your data. The usage is very similar to the methods shown above and is described here:
Best regards
Stephan

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by