Is there the possibility to discretize data comparing them with a function?
이전 댓글 표시
Hello everyone, I am creating a matrix with 2 rows and several columns. I would like to compare the pairs of values of this matrix with another matrix that contains other pairs of numbers. The pairs of the second matrix derive them from a function.
The code is: Fr_2=0:0.01:5; r_theoric=zeros(1,length(Fr_2)); for i=1:length(Fr_2) r_theoric(i)=sqrt(27*((Fr_2(i)^2)/((2+Fr_2(i)^2)^3))); end R=[r_theoric;Fr_2]
The resulting curve has 3 "zones" (left, below the curve, right of the curve)
Basically, I would like the first couple to be discretized and I would like Matlab to tell me if these are on the left, below or to the right of the curve. Then.. How can I compare the pairs of the first matrix with the R matrix?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Timetables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!