What is the simplest way to export Excel data to Matlab?










7















What is the simplest way to programmatically export Excel data to Matlab?










share|improve this question


























    7















    What is the simplest way to programmatically export Excel data to Matlab?










    share|improve this question
























      7












      7








      7








      What is the simplest way to programmatically export Excel data to Matlab?










      share|improve this question














      What is the simplest way to programmatically export Excel data to Matlab?







      excel matlab export






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 13 '08 at 18:38









      DegvikDegvik

      1,40551820




      1,40551820






















          5 Answers
          5






          active

          oldest

          votes


















          7














          If you are running Matlab on Windows with Excel installed, try XLSREAD.






          share|improve this answer























          • The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.

            – b3.
            Oct 13 '08 at 19:44







          • 1





            Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html

            – Dennis Jaheruddin
            Aug 14 '13 at 9:46


















          4














          If there's not much text annotation in the Excel file, save it as a csv, then use the MATLAB function csvread.






          share|improve this answer






























            3














            In more recent Matlab releases there are also csvread() and writetable() that work with csv which can easily be opened in Excel.






            share|improve this answer






























              1














              For a bit of $$$, you can get the MATLAB add-on Excel Link, which provides a nice clean interface for transferring data back and forth between the two programs.






              share|improve this answer






























                1














                As has been said, XLSREAD is the right function for the job. On a non-Windows system it will also work without Excel installed. However, it supposedly lacks some of Excels advanced features.






                share|improve this answer






















                  Your Answer






                  StackExchange.ifUsing("editor", function ()
                  StackExchange.using("externalEditor", function ()
                  StackExchange.using("snippets", function ()
                  StackExchange.snippets.init();
                  );
                  );
                  , "code-snippets");

                  StackExchange.ready(function()
                  var channelOptions =
                  tags: "".split(" "),
                  id: "1"
                  ;
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function()
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled)
                  StackExchange.using("snippets", function()
                  createEditor();
                  );

                  else
                  createEditor();

                  );

                  function createEditor()
                  StackExchange.prepareEditor(
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader:
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  ,
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  );



                  );













                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function ()
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f198568%2fwhat-is-the-simplest-way-to-export-excel-data-to-matlab%23new-answer', 'question_page');

                  );

                  Post as a guest















                  Required, but never shown

























                  5 Answers
                  5






                  active

                  oldest

                  votes








                  5 Answers
                  5






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  7














                  If you are running Matlab on Windows with Excel installed, try XLSREAD.






                  share|improve this answer























                  • The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.

                    – b3.
                    Oct 13 '08 at 19:44







                  • 1





                    Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html

                    – Dennis Jaheruddin
                    Aug 14 '13 at 9:46















                  7














                  If you are running Matlab on Windows with Excel installed, try XLSREAD.






                  share|improve this answer























                  • The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.

                    – b3.
                    Oct 13 '08 at 19:44







                  • 1





                    Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html

                    – Dennis Jaheruddin
                    Aug 14 '13 at 9:46













                  7












                  7








                  7







                  If you are running Matlab on Windows with Excel installed, try XLSREAD.






                  share|improve this answer













                  If you are running Matlab on Windows with Excel installed, try XLSREAD.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 13 '08 at 19:07









                  Jouni K. SeppänenJouni K. Seppänen

                  28.1k46292




                  28.1k46292












                  • The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.

                    – b3.
                    Oct 13 '08 at 19:44







                  • 1





                    Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html

                    – Dennis Jaheruddin
                    Aug 14 '13 at 9:46

















                  • The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.

                    – b3.
                    Oct 13 '08 at 19:44







                  • 1





                    Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html

                    – Dennis Jaheruddin
                    Aug 14 '13 at 9:46
















                  The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.

                  – b3.
                  Oct 13 '08 at 19:44






                  The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.

                  – b3.
                  Oct 13 '08 at 19:44





                  1




                  1





                  Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html

                  – Dennis Jaheruddin
                  Aug 14 '13 at 9:46





                  Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html

                  – Dennis Jaheruddin
                  Aug 14 '13 at 9:46













                  4














                  If there's not much text annotation in the Excel file, save it as a csv, then use the MATLAB function csvread.






                  share|improve this answer



























                    4














                    If there's not much text annotation in the Excel file, save it as a csv, then use the MATLAB function csvread.






                    share|improve this answer

























                      4












                      4








                      4







                      If there's not much text annotation in the Excel file, save it as a csv, then use the MATLAB function csvread.






                      share|improve this answer













                      If there's not much text annotation in the Excel file, save it as a csv, then use the MATLAB function csvread.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Oct 13 '08 at 18:39









                      Scottie TScottie T

                      7,05293956




                      7,05293956





















                          3














                          In more recent Matlab releases there are also csvread() and writetable() that work with csv which can easily be opened in Excel.






                          share|improve this answer



























                            3














                            In more recent Matlab releases there are also csvread() and writetable() that work with csv which can easily be opened in Excel.






                            share|improve this answer

























                              3












                              3








                              3







                              In more recent Matlab releases there are also csvread() and writetable() that work with csv which can easily be opened in Excel.






                              share|improve this answer













                              In more recent Matlab releases there are also csvread() and writetable() that work with csv which can easily be opened in Excel.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Mar 9 '16 at 21:51







                              user6041892




























                                  1














                                  For a bit of $$$, you can get the MATLAB add-on Excel Link, which provides a nice clean interface for transferring data back and forth between the two programs.






                                  share|improve this answer



























                                    1














                                    For a bit of $$$, you can get the MATLAB add-on Excel Link, which provides a nice clean interface for transferring data back and forth between the two programs.






                                    share|improve this answer

























                                      1












                                      1








                                      1







                                      For a bit of $$$, you can get the MATLAB add-on Excel Link, which provides a nice clean interface for transferring data back and forth between the two programs.






                                      share|improve this answer













                                      For a bit of $$$, you can get the MATLAB add-on Excel Link, which provides a nice clean interface for transferring data back and forth between the two programs.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Oct 13 '08 at 18:41









                                      Scottie TScottie T

                                      7,05293956




                                      7,05293956





















                                          1














                                          As has been said, XLSREAD is the right function for the job. On a non-Windows system it will also work without Excel installed. However, it supposedly lacks some of Excels advanced features.






                                          share|improve this answer



























                                            1














                                            As has been said, XLSREAD is the right function for the job. On a non-Windows system it will also work without Excel installed. However, it supposedly lacks some of Excels advanced features.






                                            share|improve this answer

























                                              1












                                              1








                                              1







                                              As has been said, XLSREAD is the right function for the job. On a non-Windows system it will also work without Excel installed. However, it supposedly lacks some of Excels advanced features.






                                              share|improve this answer













                                              As has been said, XLSREAD is the right function for the job. On a non-Windows system it will also work without Excel installed. However, it supposedly lacks some of Excels advanced features.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Oct 18 '08 at 0:44









                                              bastibebastibe

                                              6,7682172115




                                              6,7682172115



























                                                  draft saved

                                                  draft discarded
















































                                                  Thanks for contributing an answer to Stack Overflow!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid


                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.

                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function ()
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f198568%2fwhat-is-the-simplest-way-to-export-excel-data-to-matlab%23new-answer', 'question_page');

                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  這個網誌中的熱門文章

                                                  What does pagestruct do in Eviews?

                                                  Dutch intervention in Lombok and Karangasem

                                                  Channel Islands