How do I sink matlab to my computer to be able to download matlab files?

1 回表示 (過去 30 日間)
Amanda Meichtry
Amanda Meichtry 2020 年 8 月 31 日
コメント済み: Image Analyst 2020 年 9 月 1 日
When I save files it doesnt give me any options as to where to save them. Others can choose to put the file on their desktop of in their downloads on their computer and pull that file up somewhere else. I am not able to do this. What should I do?

採用された回答

Image Analyst
Image Analyst 2020 年 8 月 31 日
It's your browser. I use Firefox and it lets me pick where to save it. I've seen some people using Chrome where it doesn't give them any choice and just automatically puts everything in the "Downloads" folder. But I think I've seen others with Chrome who have a Save button down on the bottom of the window. If they click Save it puts in in the downloads folder but if they click the little arrow on that button to bring up more options, it will let them select "Save as..." where it will let you decide where to put it.

その他の回答 (1 件)

John D'Errico
John D'Errico 2020 年 8 月 31 日
Whenever I try to sink my computer, it gets wet because I have just dunked it in water. And gettiing my computer wet tends to mean I need to get a new computer. That is good, but it gets expensive. Oh. You want to sync it in some way? :)
Of course you have options about where to save a file. It might help to know what OS you are working under. But you can always choose a directory to put it in.
Then you need to learn what the search path is in MATLAB, what it means, and how to use it. So you should spend some time reading about tools like
pwd
cd
addpath
rmpath
savepath
pathtool
pathtool is perhaps the most valuable for you. But don't forget to save the path.
And NEVER put your files in the various MATLAB directories. If you do, you will be back here asking why the code you just wrote does not seem to work correctly.
  1 件のコメント
Image Analyst
Image Analyst 2020 年 9 月 1 日
Not sure what the last sentence means. I have different folders for my different projects, and different folders for the data/images and it all works fine. You just need to make sure you use fullfile() to create the full path (drive + folder + base file name) whenever you try to read or write a file, or make sure the folder is on the search path if you try to use some function, like some utility function you've written and stored in your Utilities or Library folder or wherever you put those kind of functions.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by