Displaying Multiple Data Sets in a uitable using MATLAB GUI

  • Thread starter Thread starter satinysol
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on displaying multiple data sets in a MATLAB GUI using the uitable component. The user aims to show two data sets, peakMag1 and peakloc1, in specific columns (Q and S) of the uitable by clicking a pushbutton. The provided code successfully displays data in the first column but fails to allocate the data to the desired columns. A solution involves modifying the 'Data' property of the uitable to include both data sets in a two-dimensional array.

PREREQUISITES
  • Familiarity with MATLAB GUI development
  • Understanding of the uitable component in MATLAB
  • Basic knowledge of MATLAB data structures
  • Experience with MATLAB callbacks and pushbutton functionality
NEXT STEPS
  • Learn how to manipulate MATLAB uitable properties
  • Research MATLAB cell arrays for displaying multiple data sets
  • Explore MATLAB GUI callback functions for interactive data display
  • Investigate MATLAB documentation on data formatting in uitables
USEFUL FOR

MATLAB developers, GUI designers, and data analysts looking to enhance their skills in displaying multiple data sets within MATLAB applications.

satinysol
Messages
14
Reaction score
0
urgent question for MATLAB uitable

This is a GUI with a uitable, i want to display 2 sets of data in column Q and column S by clicking a pushbutton

below is my code:

peakMag1=transpose(peakMag);
peakloc1=transpose(peakloc);
dat=peakMag1;
set(handles.uitable, 'Visible', 'on');
set(handles.uitable, 'Data',dat, 'ColumnFormat',{'numeric'});

i wan to display peakMag1 in column Q and peakloc1 in column S , please help me

thanks
 

Attachments

  • Picture2.jpg
    Picture2.jpg
    24.8 KB · Views: 441
Physics news on Phys.org


For now the data only can show in the first column -L'
 


please, can anyone help me ?
 

Similar threads

Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
6K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 14 ·
Replies
14
Views
9K