short and sweet simple question

1 次查看(过去 30 天)
I have a cell array called S that looks like: S = [1 x 3 double]; [1 x 3 double]; [1 x 3 double]
and a vector with corresponding rows that looks like: x = [0;1;0]
I'm trying to multiply them so that I only get the vectors within my cell S that corresponds to a 1 in the x vector.
Does anyone know a quick way to do this?
  1 个评论
Jan
Jan 2011-11-22
+1: This is my question of the week, because it has the cutest subject.

请先登录,再进行评论。

采纳的回答

Fangjun Jiang
Fangjun Jiang 2011-11-22
NewS=S(x)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by