How can i delate the same values in a vector ?

1 visualizzazione (ultimi 30 giorni)
Mallouli Marwa
Mallouli Marwa il 20 Gen 2017
Commentato: Mallouli Marwa il 21 Gen 2017
Hi
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)
end

Risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Downloads in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by