How to convert all vector elemens into zeros but not the maximum and the minimum of it?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hamzah Faraj
el 20 de Mayo de 2020
Respondida: darova
el 20 de Mayo de 2020
Hey
How to turn v into zeros and just keep the maximum and the minimum alement?
% Generate v
n=[1,5];
v=unifrnd(-1, 5, n);
% Remove Direct Dublications
v = v([true, diff(v)~=0]);
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!