How can I create this table?

1 visualización (últimos 30 días)
Muhendisleksi
Muhendisleksi el 25 de Abr. de 2017
Comentada: Muhendisleksi el 25 de Abr. de 2017
How can I create this table?
  2 comentarios
Jan
Jan el 25 de Abr. de 2017
Please mention the important details. What should be flexible, how do the inputs look like. Is the diagram wanted?
Muhendisleksi
Muhendisleksi el 25 de Abr. de 2017
P1;
x = 1060.477
y = 9121.569
This data should be in the following format.

Iniciar sesión para comentar.

Respuestas (1)

Peter Perkins
Peter Perkins el 25 de Abr. de 2017
Use table:
>> x = randn(5,5);
>> t = array2table(x,'VariableNames',{'x' 'y' 'h' 'H' 'N'},'RowNames',{'P1' 'P2' 'P3' 'P4' 'P5'})
t =
5×5 table
x y h H N
_______ ________ _________ ________ _______
P1 0.53767 -1.3077 -1.3499 -0.20497 0.6715
P2 1.8339 -0.43359 3.0349 -0.12414 -1.2075
P3 -2.2588 0.34262 0.7254 1.4897 0.71724
P4 0.86217 3.5784 -0.063055 1.409 1.6302
P5 0.31877 2.7694 0.71474 1.4172 0.48889
>> t.Properties.DimensionNames{1} = 'NN';
>> t.Properties.VariableUnits = {'' '' 'm' 'm' 'm'};
>> t.Properties.VariableDescriptions = {'' '' '' '' 'h-H'};
>> t('P1',{'x' 'y'})
ans =
1×2 table
x y
_______ _______
P1 0.53767 -1.3077
  1 comentario
Muhendisleksi
Muhendisleksi el 25 de Abr. de 2017
I want to create this chart. :/

Iniciar sesión para comentar.

Categorías

Más información sobre Import, Export, and Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by