How to add variable to Table in MatLab App Designer ?

Technical Source
1 min readDec 5, 2023

--

Hello,

I have a few variables that I would like to add into columns of a Table in MatLab App designer.

Ma variables are: app.A, app.B, app.C

I set the Table (called app.Table) to have 3 columns from the design view, but I can’t figure out how to add my variables to it.

This is what I have to far:

app.Table{1}=(app.A); %gives me error 'Unable to perform assignment because brace indexing is not supported for variables of this type.'
app.Table{2}=(app.B);
app.Table{3}=(app.C);

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Try This:

properties (Access = public)
t;
A;
B;
C;

% Button pushed function: RunButton
function RunButtonPushed(app, event)
%generate table
app.t = [A' B' C']; %create matrix of table data
app.Table.Data = app.t; % Add data to the Table UI Component
end
 % Cell edit callback: Table

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet