Displaying Multiple Data Sets in a uitable using MATLAB GUI

  • Thread starter Thread starter satinysol
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
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: 449
Physics news on Phys.org


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


please, can anyone help me ?