how can i write this inline function

1 回表示 (過去 30 日間)
Hassan
Hassan 2012 年 8 月 4 日
Hi Everyone,
i have matrix a=[m,n] of parameters that will be added to variable x(1), x(2),...,x(m) to find minimum value. the function did not yield the correct answer for the problem, since the first 2 columns in a will be added to x(1) and the second 2 columns in a will be added to x(2) and so on
f=inline('min([x+a],[],2)','x','a');
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 8 月 4 日
see bsxfun()

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by