how to plot selected columns of data from uitable in app designer?

hi
I am trying to build an app the task of the app is as follows.
i want to read the data from two attached text files and then display from the data in the uitable. (app is also attached here)
Then user should select two or more columns in the uitable after selection when the user chooses to plot button it should plot the data in the uiaxes of the same app.
Also i want to process the data to change the column name of the ui table etc...
Please help me with the code snippet of the same
Thanks & Regards
Sriramakrishna Turaga

3 Commenti

I understand you wish to plot selected selected columns. If a column is selected, do you want to plot the entire column, or only those rows which are selected? Also, Which column would be along the x axis and which columns along the y axes?
my wish is to plot selected columns, yes i want to plot entire column in that data.
The first column selected would be X and second column selected would be y.
There is no direct way to do this, but there is a workaround. Create a CellSelectionCallback for your UI table, and add the lines below
% Cell selection callback: UITable
function UITableCellSelection(app, event)
app.index = unique(event.Indices(:,2));
end
This will give you the indices of all the columns in your current section.
You can use these indexes to plot the desired columns

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by