Is there the possibility to discretize data comparing them with a function?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Spline Postprocessing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!