Community Profile

photo

Unai San Miguel


Nordex-ACCIONA

Last seen: 12 months ago Active since 2016

Statistics

All
  • Revival Level 3
  • Knowledgeable Level 2
  • Solver
  • First Answer

View badges

Content Feed

View by

Answered
Optimal knot distribution when specifying interpolating value and derivatives
The length of the knot vector knots should be equal to the length of your [x, x] vector plus the order of the spline, 5 in your ...

3 years ago | 0

Answered
Code to plot von mises and tresca yield conditions
This plot can be generated with some analytic work, by getting the ellipse in parametric equations, generating points along tha...

4 years ago | 0

Answered
Scattered interpolation with weight factors
You could add some random points near the point you rely more on. Close enough to effect the interpolation and separated enough ...

4 years ago | 0

Answered
curve fitting toolbox: how to fit a multivariate b spline to data (regression)
I think it is the same as for the d=1 case: you have to define a convenient knot sequence, and in turn a spline vector space, an...

5 years ago | 0

Answered
Bezier surface to CAD program
With the Nurbs2IGES toolbox found in MATLAB File Exchange https://www.mathworks.com/matlabcentral/fileexchange/12087-nurbs2iges ...

5 years ago | 0

| accepted

Answered
N-Dimensional smoothing spline weighting
You can use a cell of two set of weights, one in each direction of the input csaps({1:M, 1:N}, I, [], {wi, wj}); with wi an ...

5 years ago | 0

Answered
How can I represent and visualize my four dimensional system in a meaningful way?
3 dimensions are really hard to plot, it is almost always better to switch to 2D, and better contours than filled contours. If y...

5 years ago | 0

Answered
how can i work with the coefs of cscvn?
There is no need to use the coefficients of the function, because the Curve Fitting Toolbox provides with functions to derive an...

6 years ago | 1

Answered
Error finding and graphing max values of data (Error using horzcat Dimensions of matrices being concatenated are not consistent. )
Your |TEK00055.csv| data has three data points with maximum y-values: >> xmax xmax = 6.8720 6.8730 6.9890...

6 years ago | 0

| accepted

Answered
multidimensional numerical integration without large matrices
I don't like |meshgrid| even for 2 variables, so I would use |ndgrid| instead [X1, X2, X3, X4] = ndgrid(x1, x2, x3, x4); ...

6 years ago | 0

Answered
'stacking' 2D graphs on top of each other.
There are |plot3|, |contour3| versions of |plot|, |contour| for which you would have to add a third coordinate for each 2D plot,...

6 years ago | 0

| accepted

Answered
How to plot sin(theta)*cos(phi) in spherical coordinates
|sin(theta) * cos(phi)| is the result of the matrix multiplication of the two terms. Maybe you wanted |sin(theta) .* cos(phi)|? ...

6 years ago | 0

Answered
difficulty in printing for 'cell' inputs.
If you are OK with the contents and format of |c| maybe you can substitute the |fprintf| line by: cellfun(@(x) fprintf(fid2...

6 years ago | 0

Answered
How do i find the intersection points between a surface and a patch?
It is hard to find the intersection of a surface and a plane (in general), as it is explained <http://web.mit.edu/hyperbook/Patr...

6 years ago | 0

| accepted

Answered
Calling multiple function files to plot in one figure
Although I don't know exactly what kind of plots you want to do, or what are the variables involved, sometimes it helps to use t...

6 years ago | 0

Answered
Constructing an Offset-Curve
The subject is not trivial, a nice description can be found in <http://web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/node210.ht...

7 years ago | 0

| accepted

Answered
How to display the contour line values from a contour plot generated using the curve fitting tools?
If, in the auto-generated code from the gui you specify |h| (the handler to the plots) as an aditional output variable you can a...

7 years ago | 0

| accepted

Answered
Revolution 2D spline to 3D surface
It depends on what you mean by _analytical expression_. For example, it is not possible to express a circle and thus a revolutio...

7 years ago | 0

Answered
fnval for tensor splines
|fnval(pp, [x(:)'; y(:)'])|? From the <https://es.mathworks.com/help/curvefit/fnval.html fnval> doc page (...) For an m...

7 years ago | 0

Answered
Fit polynomial to data with prescribed second derivative
The <http://es.mathworks.com/help/curvefit/csape.html help page for csape> says that you would have to use |csape(x, [-0.001, y,...

7 years ago | 0

Answered
Closed spline fit of airfoil coordinates
You are working with curves, not functions. Your |airfoil| is a (planar) curve, or in the Splines toolbox wording a 2-valued...

7 years ago | 0

Question


jupyter notebook vs live scripts
What are the differences between Live Scripts and Jupyter notebooks?

7 years ago | 3 answers | 3

3

answers

Answered
Storing the output of spap2 into an array then looping and graphing that output
The output of |spap2| is a struct, something like: >>sp sp = form: 'B-' knots: [1x25 double] ... ...

7 years ago | 0

Answered
statistics (PCA) on piecewise B spline for Shape Model problem using spline toolbox
|fncmb| takes first both spline functions to the same vector space (same breaks and order in this case). If the breaks are not t...

7 years ago | 0

Answered
B-Spline least squares (spap2)
Hi, |spap2| returns the B-form of the spline, and if you don't supply a knot vector it will use C2 continuity (k-2 = 4-2 in y...

7 years ago | 0

Question


What is the best way to remove a knot from a (univariate) spline?
In my problem, I have a planar curve, i.e., a 2-valued univariate spline function |s|. I insert |k-1| times a value in the knot ...

8 years ago | 0 answers | 0

0

answers