I did not find a solution in google, but I did it !!! What do you think ? Are there any others solutions for the spaces between columns in arrays ?

조회 수: 2 (최근 30일)
n=size(A); % size(A)=70 60
B=[];
C=reshape(blanks(n(1)*10),n(1),10);
d=[5 35 24 19 7];
for i=d
B=horzcat(B,num2str(A(:,i)),num2str(C));
end
disp(B)
  댓글 수: 6
César Hernández
César Hernández 2018년 3월 5일
Hi Walter! My goal is to be able to select some of the columns from an array and display them with a specific format. For example, I would like to add a title to each column that I choose and separate those columns enough so that their titles fit; having the decimal points aligned would also be good. So, please let me know whether Matlab itself already has a function that I could use to do this more easily. Thank you for your help!

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

채택된 답변

César Hernández
César Hernández 2018년 3월 5일
Well, I'm not a supporter of tables, only when I do exams. But please tell me how to format a table with several titles and columns, such as: Column 26 Column 43 Column 7. And below the row of titles, the values or the columns' numbers n * 1. It is because, for me, it's a bit difficult to understand, in the 'table help'. Thanks for your help. REGARDS

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by