excel file automatically saved in text file form but still has .xlsx file type

5 views (last 30 days)
developing gui where user can create excel file to write analyzed data to. When created the excel file is saved in the notepad as a .xlsx file type. When you open it has a lots of gibberish. When you right click and select open with, and select excel, it opens the file in excel and the data is there and formated corrrectly. What changes do i make on either matlab or even possibly on my computer so that the excel file is created in excel not in notepad?
  3 Comments
Stephen23
Stephen23 on 2 Aug 2023
"When created the excel file is saved in the notepad as a .xlsx file type"
Files are not saved "in the notepad", files are saved to the the storage device/s of your computer.
"When you open it has a lots of gibberish."
This is expected if you open any random binary file in notepad.
"When you right click and select open with, and select excel, it opens the file in excel and the data is there and formated corrrectly. What changes do i make on either matlab or even possibly on my computer so that the excel file is created in excel not in notepad?"
It sounds like you have changed the file associations of your OS so that .XLSX opens with notepad: possibly after clicking "always open with this application" or something similar. In that case, you need to fix the file associations of your OS. This has nothing to do with MATLAB.
Roshan Patel
Roshan Patel on 2 Aug 2023
@dpb and @Stephen23, if either of you have experience with app designer, if you could answer my other question about the app window minimizing after a file is selected through the dialog window. i would really appreciate it. thank you https://www.mathworks.com/matlabcentral/answers/2003882-stop-minimizing-gui-window-after-file-selection-through-dialog-window?s_tid=prof_contriblnk

Sign in to comment.

Accepted Answer

Roshan Patel
Roshan Patel on 2 Aug 2023
Moved: Voss on 2 Aug 2023
i figured it. i just had to change the default app to open .xlsx files with to excel instead of notepad. thank you for the help!

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!