How can i write x ∈ A
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
B = [30 60 30 60 60 30];
[No,Th] = hist(B,unique(B));
A = Th;
i want to right in other program
x ∈ A
5 comentarios
John D'Errico
el 19 de Dic. de 2015
Yes. We know what set membership means in mathematics. But what you are not telling us is what you want to do. Explain yourself clearly.
Respuestas (1)
Walter Roberson
el 19 de Dic. de 2015
Editada: Walter Roberson
el 19 de Dic. de 2015
for x = reshape(A,1,[])
... do something ...
end
1 comentario
Walter Roberson
el 19 de Dic. de 2015
unique(x) gives the elements of X. In the context you give in your comment, the values are going to be the same as 1 : length(unique(B))
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!