Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Matlab Coder refuses to build package contents

1 visualizzazione (ultimi 30 giorni)
Guy Lavi
Guy Lavi il 13 Mar 2016
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I'm currently taking my first steps with ML coder. It seems to successfully locate m files - unless they're inside packages. That is to say, Root\TestFunction.m builds nicely, but Root\+TestPackage\TestFunction.m fails with a nonsensical message:
The same error is shown if I type '+TestPackage\TestFunc.m' instead of 'TestPackage.TestFunc'.
I can't find any mention of this or any workaround. I'm using R2016A. Can anyone shed light on this?
Thanks

Risposte (1)

Walter Roberson
Walter Roberson il 13 Mar 2016
My understanding is that you cannot build parts of packages; you have to build something that calls the package.
  2 Commenti
Guy Lavi
Guy Lavi il 14 Mar 2016
Thanks. Is this documented anywhere or just based on your experience?
Walter Roberson
Walter Roberson il 14 Mar 2016
It might be documented somewhere. There have been several postings with regards to MATLAB Coder and classes, in which someone from Mathworks has replied that you cannot compile classes but need to call the class to get it compiled; I would think it likely that the same holds for packages.

Community Treasure Hunt

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

Start Hunting!

Translated by