Is there anything faster than the below specified Matlab structure?

1 回表示 (過去 30 日間)
ektor
ektor 2022 年 8 月 31 日
編集済み: Matt J 2022 年 8 月 31 日
Dear all,
This is what I have as a matlab structure:
I first specify the following general function
function [KK1, KK2]= fun_1(x,y1, y2)
........
end
Then I specify
target.posterior = @fun_1;
target.inargs{1} = y1;
target.inargs{2} = y2;
And finally I include fun_1 in the following function
[KK3,KK4] = mel(x, target, ....);
.....
end
Is there any equivalent Matlab structure that could beat in speed the above structure in terms of how to imput the function fun_1 into the mel function?
Thanks a lot in advance!!
I use MatlabR2022a

採用された回答

Matt J
Matt J 2022 年 8 月 31 日
編集済み: Matt J 2022 年 8 月 31 日
This would be slightly better,
target.posterior = @fun_1;
target.inargs = {y1,y2};
but you are down in the weeds. None of the operations in your post could ever be slow enough to be worth optimizing.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulation, Tuning, and Visualization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by