I have defined a function (right hand panel) that uses parameters B,C, and p. Is there a way I can call this function in a different .m file (left hand panel) without having to redefine B,C, and p in plotting_bifurcation.m?
PLEASE CHECK .JPG FILE ATTACHED

๋‹ต๋ณ€ (1๊ฐœ)

Adam Danz
Adam Danz 2021๋…„ 2์›” 18์ผ
ํŽธ์ง‘: Adam Danz 2021๋…„ 2์›” 19์ผ

0 ๊ฐœ ์ถ”์ฒœ

Assign B,C,p as outputs to bifurcation_host_pops().
Do not use global variables.
And in the future, please copy-paste code as text instead of images so we can more easily access it and use it in our answers ๐Ÿ˜Ž.

์นดํ…Œ๊ณ ๋ฆฌ

๋„์›€๋ง ์„ผํ„ฐ ๋ฐ File Exchange์—์„œ Startup and Shutdown์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ

๋ฆด๋ฆฌ์Šค

R2020b

ํƒœ๊ทธ

์งˆ๋ฌธ:

2021๋…„ 2์›” 18์ผ

ํŽธ์ง‘:

2021๋…„ 2์›” 19์ผ

Community Treasure Hunt

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

Start Hunting!

Translated by