Effacer les filtres
Effacer les filtres

How to write a vector in uitable?

4 vues (au cours des 30 derniers jours)
Adrian Quesada
Adrian Quesada le 17 Août 2018
Commenté : Adrian Quesada le 18 Août 2018
I have this columns names on the Matlab UITable
app.UITable.ColumnName = {'Iteracion'; 'Xl'; 'Xu'; 'Xr'; 'f(Xl)'; 'f(Xr)'; 'f(Xl)*f(Xr)'; 'Ea'};
I create a program to write my function answer in Excel
title = [{'i'}, 'xl', 'f(xl)', 'xu', 'f(xu)', 'xr' ,'f(xr)' ,'Ea' ];
xlswrite('DatosBiseccion1.xlsx',title,'Hoja1','A1');
cell = cell+1;
cell1 = [iter, xl, f(xl), xu , f(xu) , xr, f(xr), Ea];
xlswrite('Biseccion.xlsx',cell1,'Hoja1',strcat('A',int2str(cell)));
Is there any option to modify this code to be used on a Matlab app UITable?
  2 commentaires
Image Analyst
Image Analyst le 17 Août 2018
Are you using App Designer or GUIDE, or just creating your GUI manually?
cell is a built in function name, so don't use it as a variable name like you are.
Not sure what you want to do. Do you want to have column headers be the strings you listed but it's not happening either in your GUI or in your Excel workbook? Please clarify. Or do you want to load the cell1 variable into your uitable on your gui like
app.UITable.data = cell1;
Adrian Quesada
Adrian Quesada le 18 Août 2018
I’m using App Designer. The first line are the columns name that I use in the UITable. I use the second code to export an iterative numerical method to excel. I create a vector Called cell1 to store the solutions from the method, and cell+1 to move down the vector on excel lines. What I need to do is match the vector cell1 positions with the UITable same positions and name.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by