Having Matlab import data from SharePoint

85 views (last 30 days)
Elyse
Elyse on 8 Aug 2024
Answered: Garmit Pant on 8 Aug 2024
I have a line in my code where data is imported, and I wantto add a directory that can import the data from SharePoint so that anyone who is in the sharepoint can use the same code without having to change the directory. I can't seem to figur eout how to do this without adding a shortcut, becaus enot everyone would have the same shortcut. If anyone could help with how I can set up the import so that anyone can use the code that would be great! Thanks!

Answers (1)

Garmit Pant
Garmit Pant on 8 Aug 2024
Hi Elyse
You can use Web Services with MATLAB to access SharePoint files using either the SOAP API or the RESTful API.
MATLAB can communicate with services that use WSDL Documents. The ‘matlab.wsdl.createWSDLClient’ function creates a MATLAB class that allows you to use the server APIs. The function converts the server APIs to a MATLAB class and creates a class folder in the current folder. The class folder contains methods for using the server APIs. Create an object of the class whenever you want to use the operations of the service. Use the methods of the object to run applications on and exchange data with the server.
The following resources will help you get started with using SOAP API with MATLAB to access SharePoint files:
The other method is to use RESTful API. You can use MATLAB functions like “webread” and “websave” to interface with RESTful.
The following resources will help you get started with using RESTful API with MATLAB to access SharePoint files:
I hope you find the above explanation and suggestions useful!

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!