Azzera filtri
Azzera filtri

Info

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

compiling with shared mfiles into some sort of library

2 visualizzazioni (ultimi 30 giorni)
Matthew
Matthew il 6 Nov 2012
Chiuso: MATLAB Answer Bot il 20 Ago 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

Risposte (0)

Questa domanda è chiusa.

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by