Multiple formulas in one function?

18 ビュー (過去 30 日間)
gblmtc 2018 年 3 月 31 日
コメント済み: gblmtc 2018 年 4 月 1 日
Hi there!
I have attached 2 pics. There are 7 formulas, the second formula uses the output from the first formula, the third formula uses the output from the second one and so on.
My question is: could I put all these formula in just one function?
I’ve tried creating a function for each formula and after that to include all of them in one big function but it’s not working :(. I don’t know how to call the big function.
Maybe is there somebody and could give me hint for this.
Thank you!


Image Analyst
Image Analyst 2018 年 3 月 31 日
Sure, just compute and return the numerical results
function [n,mu,M,lambda, etc] = Compute7Formulas(inputs)
n = ......whatever
M = ...... whatever....
lambda = whatever
% etc.
  7 件のコメント
gblmtc 2018 年 4 月 1 日
Thank you!
I will try that!


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by