Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

compiling with shared mfiles into some sort of library

2 vues (au cours des 30 derniers jours)
Matthew
Matthew le 6 Nov 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi All,
I'm trying to compile my first Matlab programme with mcc and I'm pretty confused! I'm unsure about the best way to deal with shared mfiles. For example say I have the following three functions in separate mfiles.
function y = foo(x)
y = x * 2;
function prog1
disp(foo(1))
function prog2
disp(foo(2))
I wish to compile both prog1 and prog2, this I can do using 'mcc -m prog1.m' etc. However is it possible to compile the shared function foo.m in some sort of library that prog1 and prog2 can both use.
The goal is to be able to update and recompile the function foo.m without having to recompile prog1 and prog2?
How would this process change if I had a whole folder filled with such shared functions? (foo1, foo2 etc).
Thanks for your help, Matt

Réponses (0)

Cette question est clôturée.

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by