Borrar filtros
Borrar filtros

display values from matfile

2 visualizaciones (últimos 30 días)
Elysi Cochin
Elysi Cochin el 10 de Dic. de 2012
I have a mat file with 4 variables, each variable contains 1 row and 3 column values.... i wanted to display these values of all variables in a table format that is one table with 4 rows and 3 columns with headings.... please cud someone help me....

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 10 de Dic. de 2012
v1=rand(1,3);
v2=rand(1,3);
v3=rand(1,3);
v4=rand(1,3);
f = figure('Position',[100 100 400 150]);
dat = [v1; v2;v3;v4];
t = uitable('Units','normalized','Position', [0.1 0.1 0.9 0.9], 'Data', dat, 'RowName',{'v1','v2','v3','v4'})

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by