how to display a matrix in a GUI
Show older comments
hello everyone; please would anyone tell me how to display a matrix in a GUI ; i already tried many methods but it didn't work for me . it's actually a matrix containing MFCCs and i want to display those coefficients in my interface that i already created .
2 Comments
Jan
on 8 Apr 2017
Please explain any details. Show us the code and tell us the problems. Then specify, how you want the data to be displayed: as text or diagram? As surface plot or uitable?
nesrine ben aissa
on 8 Apr 2017
Edited: Walter Roberson
on 8 Apr 2017
Answers (1)
Walter Roberson
on 8 Apr 2017
mfcc = mfcc_13_calc(wave);
f = figure('Name','interface');
t = uitable('Parent', f, 'Data', mfcc);
4 Comments
nesrine ben aissa
on 8 Apr 2017
Walter Roberson
on 8 Apr 2017
Where I wrote
t = uitable('Parent', f, 'Data', mfcc);
instead of f, pass in the figure handle of the figure you want the table to be displayed in. Make sure you set a Position for the uitable.
nesrine ben aissa
on 8 Apr 2017
Walter Roberson
on 9 Apr 2017
Your f=figure() line is asking for a new figure to be created. I do not know why you are using that call.
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!