How do I extract values from array into table

I have a code with four arrays, as follows

deltaC=0:0.1:1;
Xone=ones(1, 11);
Xtwo=zeros(1, 11);
Stwo=ones(1, 11);

I'm trying to put the values into a table, but when I use the code

 T=table(deltaC,Stwo,Xone,Xtwo)

It gives me a 1x4 table with the array names and simply that they are a 1x11 double. What I'm looking for is a 11x4 table that takes the values from the array and lists them in the table. How do I call that?

 채택된 답변

Matt J
Matt J 2018년 10월 1일

0 개 추천

T=table(deltaC.',Stwo.',Xone.',Xtwo.')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

제품

릴리스

R2018a

태그

질문:

2018년 10월 1일

답변:

2018년 10월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by