MATLAB Central Interface for MATLAB

Toolbox to access MATLAB Central APIs from MATLAB
25 Descargas
Actualizado 28 sep 2023

Open in MATLAB Online

View MATLAB-Central-Interface-for-MATLAB on File Exchange

MATLAB Central Interface for MATLAB

The toolbox provides easy to use MATLAB® functions that simplify the process of making requests to the MATLAB Central (MathWorks® Community) APIs. Whether you are using the APIs for data-analysis/reporting or for building custom MATLAB apps, the toolbox provides for a smooth integration.

Installation

  1. Install the toolbox by using the Add-on explorer in MATLAB or by downloading the MATLAB_Central_Interface_For_MATLAB.mltbx file attached to the latest release on GitHub, then doubleclicking on it.

Quick Usage

  1. Create a MATLAB script or live-script called 'Quickstart'.

  2. Add the following lines of code to your script

searchResults = SearchApi.search(scope="matlab-answers");
items = searchResults.items
  1. Save and Run the script.

  2. If the code executed successfully, you should see the 'items' being displayed which calls the Seach endpoint from the MATLAB Central Public APIs.

This is just a quick overview -- install and look at gettingStarted.mlx and the examples directory for more information on using the Toolbox.

SDK Reference

Class Method HTTP request Description
SearchApi search GET /v1/search Search MATLAB Central areas for content matching specified query

Search

The Search collection offers a single method called search which offers a powerful way to programmatically search MATLAB Central.

If you are looking to get data from different MATLAB Central areas like MATLAB Answers, File Exchange, Cody, Community Highlights, Community Contests and Blogs with a single call, this would be the function to use. The function also supports many optional parameters that allow you to further filter the data returned, including limiting the scope to specific MATLAB Central areas.

Errors

When the API returns a non 2XX response code, an ApiError is thrown. The ApiError object is an extension of the MException object and contains all the fields from MException and additional retrievable fields with information on how to handle the error. See API Documentation for more details on possible error codes.

Contribution

We are excited to hear any feedback you have for us and welcome contributions in the form of issues.

License

The license is available in the License file within this repository

Copyright © 2023 The MathWorks, Inc.

Citar como

Anusha Sridharan (2024). MATLAB Central Interface for MATLAB (https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.3), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2023a
Compatible con cualquier versión desde R2014b
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.3.0

See release notes for this release on GitHub: https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.3

1.0.2.0

See release notes for this release on GitHub: https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.2

1.0.1

1.0.0.0

See release notes for this release on GitHub: https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.