필터 지우기
필터 지우기

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 CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by