I am having trouble getting Matlab to retrieve files it needs from my OneDrive cloud storage account, even though it can see the files in the current directory or on the search path. If I try and run such a file from Matlab I get the following error message (where '...' is the path to the file I'm requesting):
Error using load
Unable to read MAT-file .... Not a binary MAT-file. Try load -ASCII to read as text.
If I get OneDrive to store the actual file on my machine Matlab can open it, but not if it is stored on the cloud. I know Matlab can do this as it works on my other PC, but not sure how to get it to work on my laptop. File explorer and all my other applications can get the file straightaway from OneDrive cloud, so I don't think this is a OneDrive issue, but rather something to do with how Matlab interacts with OneDrive. I'm running Matlab 2021a.
Any help would be greatly appreciated.