Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6793705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:07:56+00:00 2026-05-26T18:07:56+00:00

I have designed a GUI which has an uitable and a push button which,

  • 0

I have designed a GUI which has an uitable and a push button which, when is pressed, allows to export the uitable’s data to an Excel spreadsheet. My problem is that I want to add the uitable’s headers to the matrix Select which has the numeric values. This matrix is used by the pushbutton callback, as seen below:

htable = uitable(...);
...
SelecY = get(htable,'Data');

Callback of the pushbutton

    function hExpExcelCallback(src,evt)
        FileName = uiputfile('*.xls','Save as');
        xlswrite(FileName,SelecY),
    end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:07:57+00:00Added an answer on May 26, 2026 at 6:07 pm

    Example:

    headers = cellstr(num2str((1:5)','header %d'))';
    data = rand(10,5);
    
    A = [headers ; num2cell(data)];
    xlswrite('file.xls',A)
    

    the content:

    >> A
    A = 
        'header 1'    'header 2'    'header 3'    'header 4'    'header 5' 
        [ 0.34998]    [ 0.28584]    [ 0.12991]    [ 0.60198]    [  0.82582]
        [  0.1966]    [  0.7572]    [ 0.56882]    [ 0.26297]    [  0.53834]
        [ 0.25108]    [ 0.75373]    [ 0.46939]    [ 0.65408]    [  0.99613]
        [ 0.61604]    [ 0.38045]    [0.011902]    [ 0.68921]    [ 0.078176]
        [ 0.47329]    [ 0.56782]    [ 0.33712]    [ 0.74815]    [  0.44268]
        [ 0.35166]    [0.075854]    [ 0.16218]    [ 0.45054]    [  0.10665]
        [ 0.83083]    [ 0.05395]    [ 0.79428]    [0.083821]    [   0.9619]
        [ 0.58526]    [  0.5308]    [ 0.31122]    [ 0.22898]    [0.0046342]
        [ 0.54972]    [ 0.77917]    [ 0.52853]    [ 0.91334]    [  0.77491]
        [ 0.91719]    [ 0.93401]    [ 0.16565]    [ 0.15238]    [   0.8173]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have designed this gui in netBeans which has a canvas , a couple
I have designed the following GUI in which there are an axes. I want
I have designed a custom section handler before but I'm faced with a problem
I have a c# windows form application that has a similar GUI functionality as
I have a PackageMaker .pmdoc designed in the PackageMaker GUI. The top level package
i have a question: I designed my GUI without the InterfaceBuilder, now i want
I have a poker game where I designed a nice pretty GUI that displays
I have application which consumes XML and based on this creates a GUI. Basically
I have a GUI designed in Swing with all of the Components laid out.
I have designed database tables (normalised, on an MS SQL server) and created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.