フィルターのクリア

In CERR: How to loop a function for several planC's

2 ビュー (過去 30 日間)
Hella Sand
Hella Sand 2023 年 12 月 23 日
回答済み: Sulaymon Eshkabilov 2023 年 12 月 23 日
I'm working with structuresets in CERR. I would like to repeat a function eg. 'getStructureDistance.m' for several structuresets (defined as planC's but renamed in the array-workspace in MatLab) in one go, but can't find out how to made a repeat-function to work. I suppose some kind of loop-sequence is the solution, but I don't know how. Could anybody help me?

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 12 月 23 日
If understood correctly, it can be attained something like this (presuming the fcn file getStructureDistance.m has some input vars):
N = ... % times to be executed
for ii= 1:N
[A{ii}, B{ii}, C{ii}]= getStructureDistance(Var1, Var2, Var3, Varn);
end
planC.A = A;
planC.B = B;
planC.C = C;

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by