Cell array output from function file

3 vues (au cours des 30 derniers jours)
Anirban Roy
Anirban Roy le 15 Avr 2020
Modifié(e) : Mehmed Saad le 15 Avr 2020
Is there I can output a cell array from a function file into the MATLAB workspace? I am attaching the code for reference. The SOL array is cell type which is output from the function file but it does not appear in my workspace.

Réponses (1)

Mehmed Saad
Mehmed Saad le 15 Avr 2020
Modifié(e) : Mehmed Saad le 15 Avr 2020
That is because you are running the Function directly which will give you only 1 output
Instead of runing directly, call your function from another code or by command prompt as follow
[IU, SOL] = MMM1D;
Now see you workspace

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by