필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

compiling with shared mfiles into some sort of library

조회 수: 2 (최근 30일)
Matthew
Matthew 2012년 11월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by