have. mat file on my computerhowto upload to matalb

조회 수: 3 (최근 30일)
diana
diana 2024년 12월 15일
댓글: Walter Roberson 2024년 12월 19일
have many .mat files on my computer. how do i uplad the to matlab online

답변 (1개)

Deepak Gupta
Deepak Gupta 2024년 12월 15일
Hi Diana,
You can zip your files and load it onto matlab online. This worked for me, hope it helps.
Thanks,
Deepak
  댓글 수: 7
diana
diana 2024년 12월 18일
thanks
code makes sense
I added it into command pane
it appeared to excute ending with the prompt double arrows
there is now an excel_directory in the workspace
saveing the workspace only has .mat option. so I saved workspace as op.mat
how do I get the excel_directory and its content down to my MAC?
the dwonlad option on op.mat wil destroy current stuf - and amyway it ios .mat
sorry to be so stupid
Walter Roberson
Walter Roberson 2024년 12월 19일
The excel_directory that is in the workspace is only a variable naming the destination directory for the excel files. The excel_directory in the workspace is not the content of the excel files -- only the path to where the files are to be stored.
You can
zip('ZIPFILENAMEGOESHERE.zip', fullfile(excel_directory, "*.xlsx"))
to create ZIPFILENAMEGOESHERE.zip and then download ZIPFILENAMEGOESHERE.zip onto your Mac (right-click it in the file browser to get a download menu item.)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by