フィルターのクリア

how to connect two functons in matlab

1 回表示 (過去 30 日間)
muhammad ismat
muhammad ismat 2016 年 4 月 16 日
コメント済み: Jan 2016 年 4 月 17 日
I am want to connect two functions: In first function(firstf.m),i want to make a 'for' loop to variables p,r then I calculat [s] for each value then i use this value in second function accuracy that should repeat 100 time The first function is
[s] = firstf(data,k,opts)
p = 30;
if isfield(opts,'p')
p = opts.p;
end
for r = 20:22;
if isfield(opts,'r')
r = opts.r;
.
.
.
.
[s] = k_means(U,k)
first how to make for loop for variables p,r in first function and take every [s] (output of first function ) to calculate accuracy (second function) that should repeat 100 times
  9 件のコメント
muhammad ismat
muhammad ismat 2016 年 4 月 17 日
the above code not required but the second function calls the first to calculate accuracy that its calculation depend on the value of s
Jan
Jan 2016 年 4 月 17 日
@muhammad: I still do not understand, what you want to achieve.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by