How can i delate the same values in a vector ?

1 回表示 (過去 30 日間)
Mallouli Marwa
Mallouli Marwa 2017 年 1 月 20 日
コメント済み: Mallouli Marwa 2017 年 1 月 21 日
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

回答 (1 件)

the cyclist
the cyclist 2017 年 1 月 20 日
Do you mean you want
unique_k = unique(k)
?
  9 件のコメント
Stephen23
Stephen23 2017 年 1 月 21 日
You could download John D'Errico's excellent FEX submssion consolidator.
Mallouli Marwa
Mallouli Marwa 2017 年 1 月 21 日
I download it and then what could i do ?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Translated by