COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### 3d curve fit

• Email
• Follow

```Hi all,

I have to fit a 3D curve wich has as X and Y values two pressure coefficients (they have been calculated from a probe calibration). For every value of X and Y corresponds a Value Z wich is an angle.

Now what I need is a curve fit wich gives me a formula so that giving the two coefficient X and Y as input i will get the corresponding angle.

Can anyone help me?
Thanks
```
 0
Reply Tay 5/27/2010 3:00:23 PM

See related articles to this posting

```"Tay " <taytus@hotmail.com> wrote in message
news:htm1e7\$mo9\$1@fred.mathworks.com...
> Hi all,
>
> I have to fit a 3D curve wich has as X and Y values two pressure
> coefficients (they have been calculated from a probe calibration). For
> every value of X and Y corresponds a Value Z wich is an angle.
>
> Now what I need is a curve fit wich gives me a formula so that giving the
> two coefficient X and Y as input i will get the corresponding angle.
>
> Can anyone help me?

http://www.mathworks.com/support/solutions/en/data/1-16JQD/index.html?solution=1-16JQD&BB=1

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

```
 0
Reply Steven 5/27/2010 4:45:52 PM

```Tay wrote:

> I have to fit a 3D curve wich has as X and Y values two pressure
> coefficients (they have been calculated from a probe calibration). For
> every value of X and Y corresponds a Value Z wich is an angle.
>
> Now what I need is a curve fit wich gives me a formula so that giving
> the two coefficient X and Y as input i will get the corresponding angle.

There is not (and cannot be) a unique or meaningful answer unless you
already know the form the formula should take. Think of your known X, Y,
and Z as fixed physical points and think of there being elastic sheets
connecting all of the points to their neighbours: you can pinch or
stretch any of the elastic sheets an infinite number of ways, and each
different way represents a different possible formula that completely
explains the data. If you do not have some knowledge ahead of time that
constrains the possibilities, you have no way of saying that any of the
infinite number of formula are more correct than any of the others, and
the probability that you will hit upon the correct formula would be 0.
```
 0
Reply Walter 5/27/2010 5:59:39 PM

```Try the online 3D "Function Finder" at zunzun.com, the link is

http://zunzun.com/FunctionFinder/3/

Set the smoothness control to use only equations with two or three
coefficients as first, as a simpler function will generally
interpolate and extrapolate more smoothly than a complex one.  Repeat
the procedure with increasing number of coefficients until you find a
suitable function.  Note that turning on the "Polyfunctional" family
of equations will give large numbers of basically random functions,
you should probably turn these off at first so you have known named
equations only.

James Phillips
http://zunzun.com
zunzun@zunzun.com

On May 27, 10:00=A0am, "Tay " <tay...@hotmail.com> wrote:
>
> Now what I need is a curve fit wich gives me a formula so that giving the=
two coefficient X and Y as input i will get the corresponding angle.
```
 0
Reply zunzun 6/16/2010 8:36:49 PM

3 Replies
397 Views

Similar Articles

12/12/2013 3:49:33 AM
page loaded in 145066 ms. (0)

 Reply:

Similar Artilces:

Curve fitting a 3D data set
I'm pretty new in the Matlab-world. How do I make curve fitting on a 3D data set (x, y, z)? Do I need a special toolbox for it? Thanx for your help :) Sanne Sanne Christensen wrote: > I'm pretty new in the Matlab-world. How do I make curve fitting on a > 3D data set (x, y, z)? Do I need a special toolbox for it? > > Thanx for your help :) > Sanne The other day I came across: http://www.mathworks.nl/matlabcentral/fileexchange/loadFile.do?objectId=6232&objectType=FILE It seems to do something related. Also see: http://www.mathworks.com/access/helpdesk/help/too...

curve fitting, how to set relationship between fitting parameters
Hello, basically, I'm trying to fit data to the curve a*exp(b)+(1-a)*exp(c) How can I set the condition b<c for matlab to include into the fitting process? Thanks in advance, Tina ...

Curve fitting
Dear all, I'm thinking about using a GA to find the best-fitting curve(polynomial approx.), passing a point, in a (seismic) image. Does onyone knows whether something like this has been doen before. Thanks, Maurice Hi, I am not sure about polynomial curve fitting, but if piecewise polys are good enough, take a look here: http://www.cs.huji.ac.il/~ronygold/optimal_knot.html The paper deals with adjusting parameterization and knot vector for bspline curve fitting and interpolation. There are some more works about this issue, you can find references in the article. There is a newer ar...

3D curve plot
In 3Dcurve plot when the size of points is big enough and the position of the curve is such that some of the points are superimposed how to make difference which point is in front and which back. Are there same way to make a visible contour on the point or shadow/light to apreciate the position? Hi, I found no way of setting the shadding option on 3D plot. Zvezdana S. Hi Zvezdana, Dobro utro I was playing with lighting and that can approach considerably, but I think the best way to show which point is in front/back by making a contour available with different color. That will help understan...

fitting curve calibration
Hi, I have some a set of coordinates, I managed to draw them & to find their best fitting curve using matlab, the problem is that this curve is nor 1:1 curve, it is subject to magnification, compression, elongation according to how I resize the window. Moreover, when I try to print, it prints what is on the screen, not the real dimensions. How can I fix this problem?? as I need the print out to be in mm in 1:1 scale so I can measure it. "MMM " <mac.kral26@gmail.com> wrote in message <fn43l1\$i7o\$1@fred.mathworks.com>... > Hi, > I have some a set of coordinates...

Curve Fitting #31
Hello all, I want to find my model parameters using lsqcurvefit but I do not know how to give my parameters-bearing function to lsqcurvefit because the equation do not have explicit analytical solutions for S and X as a function of time. So, I need to use an ODE to find S or X to fit to my sets of dependent (S) and independent (time) data pairs. My model is a Monod-type kinetics which for substrate (S) utilization rate is: dS/dt = - Kmax * X * S/ (Ks + S); and for microorganisms(X) growth rate is: dX/dt = - Kmax * Y * X * S/ (Ks + S) where S is substrate concentration (mg/L); X is microorg...

3D curve spline
I have n points along a 3-D curved line. How to re-order m equal interval points by splines? TIA. Hi, I don't know what "re-order m equal interval points" may be, but. Here are some data: data = Table[{Cos[t], Sin[t], t}, {t, 0, 4 Pi, Pi/16.}]; Here is the interpolation: ip = Interpolation /@ Transpose[data]; and here is a plot of the interpolation ParametricPlot3D[Evaluate[#[t] & /@ ip], {t, 1, 65}] And you ca re-tabulate it with Table[#[t] & /@ ip,{t,1,65,0.00000001}] Regards Jens Narasimham wrote: > I have n points along a 3-D ...

which is the correct curve fit?
Hi there, I am trying to find the coefficients a,b,c,d for an equation of the form:- y = a*(x-b)^(c) + d; I am currently trying to use the 'lsqcurvefit' function for this but when i run it i get an error message from within this function where it calls the sub-function 'lsqncommon' saying that there is an error using ^ and that the matrix must be square. Am i using the correct curve fit here? Any suggestions would be most helpful. Regards, Simon "Simon Hall" <s.l.hall@qub.ac.uk> wrote in news:eef54d8.-1 @webx.raydaftYaTP: > Hi there, > > I am t...

how to fit a curve on an image?
i want to fit a parabola shape curve on a low resolution image in order to find the medial axis of the image , how can i do that ? "niloufar " <ndarvish@kth.se> wrote in message <jrf863\$2n\$1@newscl01ah.mathworks.com>... > i want to fit a parabola shape curve on a low resolution image in order to find the medial axis of the image , how can i do that ? You need to first extract the boundary pixels of the image object. The co-ordinates of the boundary pixels will then be used to your curve fitting program. Yumnam Kirani Singh Tronglaobi Awang Leikai "De...

Curve fitting for a matrix
Hello everyone, I have reaction times (RT) data for several subjects, across five different sessions of an experiment, organised in a matrix where each of the five cells of a row represents one subject's performance in each of the five sessions. I tried inputting the matrix as "Y Data" in the Curve Fitting Tool, but apparently it only accepts vectors. Rather than defining a separate vector and running a separate fit analysis for each of my subjects, isn't there a way to make CFT just take each row of the matrix as the "Y Data" vector? Interestingly, I see that Ma...

curve fitting #52
I would like to different curvefit methods to fit a speech signal which consists of about 20000 samples. I have already used the inbuilt fit methods in matlab to fit the speech signal. when I used custom equations and defined the equation y=a1*cos(b1*x+c1)+a2*cos(b2*x+c2)+a3*cos(b3*x+c3)+a4*cos(b4*x+c4) the fit was very poor and it is not at all matching with the speech signal. but the inbuilt function f(x) = a1*sin(b1*x+c1) + a2*sin(b2*x+c2) + a3*sin(b3*x+c3) + a4*sin(b4*x+c4) gave a much better fit when compared to above. how to obtain a good quality of fit from the equation which I hav...

raytracing 3d bezier curves
First off, does anyone know if there are any groups specifically dedicated to programming raytracers? This is the closest I could find. Anyhow, I was wondering if anyone knows if it's possible to directly compute the intersection of a ray with a bezier curve? Also, if anyone knows of an elegant way to compute the intersection of a ray and a triangle, I'd love to hear it. Right now, I've just seen people compute the intersection with the triangle's plane and see if the point is inside the triangle. That works, but I'd like to see something more clever. Thanks. <bo...

about NN and anfis curve fit
hi ::: I found code that takes 2 argument for curve fitting code is %Function approximation %Refer to Problem 4.1 clear all;close all; %Training data:examplar input pattern and htarget output vector x=-1:0.1:1; y=[-0.96,-0.577,-0.073, 0.377, 0.641, 0.66, 0.461, 0.134,... -0.201, -0.434, -0.5, -0.393, -0.165, 0.099, 0.307, 0.396,... 0.345, 0.182, -0.031, -0.219, -0.32]; % ??????????????? %Define a NN and initialise weights net=newff(minmax(x), [10 1], {'tansig', 'purelin'},'traingd'); %Output of NN with initial weights ycapl=sim(net,x); figure(1) plot(x,ycapl,'-&...

fitting blood pressure curve
Hello all, I wonder if anyone has any experience or tips to fit blood pressure curve . The raw signal from the data acquisition board can be noisy and I would like to have a smoother representation of the curve. Just wonder if there has been similar work done already so that I don't have to start it from scratch. Thanks all for the tips/hints. "Pinpress" <nothing@nothing.edu> wrote in message <is2ui6\$6q4\$1@newscl01ah.mathworks.com>... > Hello all, > > I wonder if anyone has any experience or tips to fit blood pressure curve . The raw signal from the data ...

3D fitting of data points
Hello all, I am trying to fit a set of 3D data points to a polynomial function (a(1)x^2 + a(2)y^2+a(3)z^2 + a(4)xy + a(5)xz + a(6)yz + a(7)x + a(8)y + a(9)z - 1 = 0). Is there a way to do three-dimensional fitting with NonLinearFit? And, if so, how? Thanks, Ellen entolonen@utep.edu "Tolonen, Ellen N" <entolonen@utep.edu> schrieb im Newsbeitrag news:c99dmp\$k62\$1@smc.vnet.net... > > Hello all, > > I am trying to fit a set of 3D data points to a polynomial function > (a(1)x^2 + a(2)y^2+a(3)z^2 + a(4)xy + a(5)xz + a(6)yz + a(7)x + a(8)...

Three-dimensional curve fitting
I want to fit a dataset with a non-linear, three dimensional equation of one variable and at least two fitting parameters. Therefore the equation works like: R => R^2 respectively R => C R: real number C: complex number Does anyone know, if there is a possibilty to solve this task with a matlab function, or a special trick? Thanks a lot ...

Curve fitting #4 406361
Hello all, i am pretty new to matlab, i am trying to apply a polynomial fit to an array of x and y data. the data looks like half of a guassian profile. However i do not want to use a gausian fit. to use a polynomial, i can get a very good r^2 value. Is it possible to specify on this polynomial fit, that when x=0, dy/dx=0. this will remove a spike increase at the end of my data points. Thanks Neet. "Neet Lad" <nits_76@hotmail.com> wrote in message <i77bo7\$bed\$1@fred.mathworks.com>... > Hello all, > > i am pretty new to matlab, i am trying t...

3D gaussian fit #2
I have images with somewhat blurry bright circular spots on a dark background (these are fluorescence microscopic images). For each spot, I want to fit a gaussian - just a single max value and variance value, with the x,y coordinate of the center. bill betz wrote: > > > I have images with somewhat blurry bright circular spots on a dark > background (these are fluorescence microscopic images). For each > spot, I want to fit a gaussian - just a single max value and > variance > value, with the x,y coordinate of the center. Hi Bill, You could write a brute force grid se...

Poor Curve Fitting issues
I tried to fit a curve in LV 8.2. I don't know why the result (attachment)&nbsp;was so bad and remained the same in the different weights of "general polynomial fit.vi". &nbsp; Although I can't find the manual about mathematical functions, I expected the curve was well fit in start/end region with some weight. In order to do, I made the weight (0.5 nearby middle and 1&nbsp;start/end region) , but the gap in start/end X region of the attachment was rather big. &nbsp; In Origin, commercial fitting program, the result was sufficient to use in other application. &...

curve fitting #2 #2
I want to fit my data to some gaussian. I don't know any coefficients. Can anyone tell me how can I compare my data set to some arbitrary gaussian.? In anticipation of reply. priiyank Assuming that your data has a Gaussian distribution then the Gaussian (normal) curve is defined by the mean and the standard deviation, both of which can be found using the Standard Deviation and Variance function under the Probability and Statistics portion of the Mathematics menu. Based on your question I suspect that your data is not Gaussian in nature and you are wanting to make it into a Gaussian form...