Effacer les filtres
Effacer les filtres

How can i delate the same values in a vector ?

1 vue (au cours des 30 derniers jours)
Mallouli Marwa
Mallouli Marwa le 20 Jan 2017
Commenté : Mallouli Marwa le 21 Jan 2017
To find the zeros of the following equation, i have done the following program but sometimes it displays a repeated solution. So i want to do a program that delate the same solutions to obtain a vector that content the different solutions.
f = @(x) cos(x) * cosh(x) + 1;
for i= 1:40
k(i)= fzero (f, i)

Réponses (1)

the cyclist
the cyclist le 20 Jan 2017
Do you mean you want
unique_k = unique(k)
  9 commentaires
Stephen23 le 21 Jan 2017
You could download John D'Errico's excellent FEX submssion consolidator.
Mallouli Marwa
Mallouli Marwa le 21 Jan 2017
I download it and then what could i do ?

Connectez-vous pour commenter.


En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by