What type of data is this isCategoricalPrd = [false, false, false, false, false];? the members of this matrix are not character nor string.

1 次查看(过去 30 天)
Here is the matrix
isCategoricalPrd = [false, false, false, false, false];
I want to know the type of matrix members and how to make this matrix systematically like in neumerical matrices "zeros" or "ones" are used so that I can make them with any size.

采纳的回答

Walter Roberson
Walter Roberson 2020-3-17
false and true are datatype named logical
true(1,5)
false(1,5)
ones(1,5,'logical')
zeros(1,5,'logical')
logical(ones(1,5))
logical(zeros(1,5))
  4 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Repeated Measures and MANOVA 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by