What does x(y) mean ?

6 ビュー (過去 30 日間)
Jivitesh
Jivitesh 2013 年 7 月 10 日
If x and y are 3*3 matrices . then what'll be x(y) ?

回答 (2 件)

Wayne King
Wayne King 2013 年 7 月 10 日
I'm assuming that is just the composition of the two linear operators, in which case that is matrix multiplication. In other words, the definition of matrix multiplication comes from viewing the two matrices (x and y) as linear operators and composing them.
If it is something more than that, then I think we need more context.

Jan
Jan 2013 年 7 月 10 日
Then y contains either linear or logical indices:
x = reshape(1:9, 3, 3);
y = x;
x(y) % same as x
y = ones(3, 3);
x(y) % Repeated first element of x
y = true(3, 3);
y(2,2) = false;
x(y) % All elements without the central value
y = x + 5;
x(y) % ERROR, the linear index must be 0 < index <= numel(x)
  2 件のコメント
Jivitesh
Jivitesh 2013 年 7 月 10 日
if x and y are of same order then, for k=1:3 x(y~=k)=0; end what'll this code mean. found such code in color segmentation by k means example
Jan
Jan 2013 年 7 月 10 日
What does "of same order" mean here?

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

カテゴリ

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