Displaying vector coordinates in cell Array output

조회 수: 13 (최근 30일)
Ali Tevs
Ali Tevs 2016년 10월 31일
편집: Ali Tevs 2016년 11월 1일
Hey gang, got a very quick question I was hoping to get advice on:
I've set up a cell array from an input .dat file to create the below.
However using the 'disp' function, the (x,y,z) coordinates are not shown, only their size and type.
Is there any modifications i can implement to my code below that will allow the same structure of output to show including the actual coordinates?
I thought about experimenting with celldisp, or trying to incorporate curly brackets which output the cell content but I end up confusing myself further.
Appreciate any advice.
Edit: Code removed to prevent from copying of homework assignment now that question has resolved
  댓글 수: 1
KSSV
KSSV 2016년 10월 31일
How 1st,2nd,3rd coordinates 1X3 double? they shall be 1X1 right?

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

채택된 답변

Walter Roberson
Walter Roberson 2016년 10월 31일
If you need disp() to be able to display the cell contents, then you need to make your command window wider. The maximum size of contents of a cell array entry that disp() shows depends upon the width of the command window.
You may wish to consider switching to table() data structure instead of cell array.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by