Displaying Multiple Data Sets in a uitable using MATLAB GUI

  • Thread starter Thread starter satinysol
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The user is seeking assistance with displaying two data sets, peakMag1 and peakloc1, in specific columns (Q and S) of a MATLAB GUI uitable upon a button click. The current code only displays data in the first column, which is not the desired outcome. The user has provided a snippet of their code, indicating that they have set the visibility of the uitable but are struggling with correctly assigning data to the specified columns. They are looking for guidance on how to achieve this functionality. Clarification on how to format and assign data to multiple columns in the uitable is needed.
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: 420
Physics news on Phys.org


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


please, can anyone help me ?
 
Back
Top