Has the MATLAB 'mget' function changed from versions R2020a to R2024a?

I ask this question becasue i have a script that runs perfectly well in the 2020 version using mget. Once i upgraded to 2024 the mget function started to run into issues and now i get an error every time i use it. Can i get some guidance on how to fix this?

2 Commenti

If there were changes, they weren't big enough to be included in the version history (see here).If you are seeing unexpected or changed hehavior, I recommend contacting support.
I displayed the error i am recieving in @Ganesh answer below. If this still calls for me to contact support let me know, thank you.

Accedi per commentare.

Risposte (1)

The following are the documentation links of "mget()" function from 2020b and 2024a:
No implementation changes have been made, and the major difference I found was that "mget()" now accepts SFTP objects too. From the look of it, there is no regression/limitations since r2020b.
Getting the exact error here might help. Also, ensure that all required permissions are granted for "mget()" to work the way it should.
If "mget()" behaves differently on r2020 and r2024a at the same time, I suggest you to reach out to MathWorks Technical Support:

3 Commenti

The error i get is the following:
"
Error using matlab.io.ftp.internal.matlab.mget
File "TESTFILE.TXT" not found on server.
Error in matlab.io.FTP/mget>recursiveDownload (line 114)
matlab.io.ftp.internal.matlab.mget(obj.Connection, options);
Error in matlab.io.FTP/mget (line 72)
location = cellstr(recursiveDownload(obj, dirStruct, fullRemoteDirPath, ...
Error in Function_Name (line 24)
mget(ftpobj,'TESTFILE.TXT');
"
This is strange because this text file does exist on the server and you can view it in ftpobj. It also does pull this text file successfully on the 2020 version.
Kindly contact support in this case

Accedi per commentare.

Prodotti

Release

R2024a

Tag

Richiesto:

il 13 Giu 2024

Commentato:

il 17 Giu 2024

Community Treasure Hunt

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

Start Hunting!

Translated by