필터 지우기
필터 지우기

I have a 2 dimensional array. I want to view it.

조회 수: 3 (최근 30일)
Ishani Mukherjee
Ishani Mukherjee 2021년 9월 21일
댓글: Ishani Mukherjee 2021년 9월 21일
I am new to MATLAB and I facing the following trouble-
I have a 2 dimensional array (termed as trajectories). It has 7808 rows and 2 columns. I want to view it!
The command : trajectories(:,:,1) or trajctories(:,:,2) is not helping as I get about 5000 rows and not the full array.
Also can I save these as 2 excel files?
Please help!
Thanks in advance, Ishani

채택된 답변

Walter Roberson
Walter Roberson 2021년 9월 21일
How do you want to view it? As text?
trajectories(:,1) should display the first column. However it is possible that your MATLAB is configured to only save the last 5000 lines of output.
Preferences -> Command Window -> Display (block on right side) -> Number of lines in command window scroll buffer

추가 답변 (1개)

KSSV
KSSV 2021년 9월 21일
x = trajectories(:,1) ;
y = trajectories(:,2) ;
plot(x,y)
  댓글 수: 2
Ishani Mukherjee
Ishani Mukherjee 2021년 9월 21일
Thank you!
is there a way I can save the trajectories in two excel files?
KSSV
KSSV 2021년 9월 21일
Let T be your n*2 array.
writetable(T,'test.xlsx');

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

카테고리

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