How can i align a column in a table?

조회 수: 4 (최근 30일)
Ioannis Tsikriteas
Ioannis Tsikriteas 2018년 2월 20일
답변: Peter Perkins 2018년 2월 20일
Hi,
I have a table with 4 columns and i want to align the second and third column on the Centre!
What is the command on the Command window to do it?
Thanks in advance!!!
  댓글 수: 2
moustaouli ayoub
moustaouli ayoub 2018년 2월 20일
Can you clarify what problem you're having?
Ioannis Tsikriteas
Ioannis Tsikriteas 2018년 2월 20일
I have a table with 4 columns from which i want the data on the middle ones to be alligned in the central of the column

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

답변 (1개)

Peter Perkins
Peter Perkins 2018년 2월 20일
Ioannis, it sounds like you are looking for output that's suitable for, say, putting in a report. The table command window display isn't really indented for that. You can create your own formatted output function using things like sprintf as building blocks, though.

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by