how can one specify a directory that websave saves files?

4 views (last 30 days)
I want to specify a directory that websave saves files. I checked says to add the directory name to the file name. But I would hope to change the directory outside websave, Please advise.

Accepted Answer

Jan on 12 Mar 2022
Using full path names is the reliable and efficient solution:
Folder = 'C:\Your\Favorite\Folder';
File = 'AsYouWant.html';
URL = '';
websave(fullfile(Folder, File), URL)

More Answers (0)



Community Treasure Hunt

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

Start Hunting!

Translated by