Community Profile

# Unai San Miguel

### Nordex-ACCIONA

26 total contributions since 2016

View details...

Contributions in
View by

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...

2 mois ago | 0

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 ...

3 mois ago | 0

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...

8 mois ago | 0

With the Nurbs2IGES toolbox found in MATLAB File Exchange https://www.mathworks.com/matlabcentral/fileexchange/12087-nurbs2iges ...

9 mois ago | 0

| accepted

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 ...

environ un an ago | 0

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...

plus d'un an ago | 0

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...

plus d'un an ago | 0

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...

plus d'un an ago | 0

| accepted

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); ...

presque 2 ans ago | 0

'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,...

presque 2 ans ago | 0

| accepted

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)|? ...

environ 2 ans ago | 0

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...

environ 2 ans ago | 0

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...

environ 2 ans ago | 0

| accepted

Solved

Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

environ 2 ans ago

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...

environ 2 ans ago | 0

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...

presque 3 ans ago | 0

| accepted

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...

presque 3 ans ago | 0

| accepted

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...

presque 3 ans ago | 0

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

presque 3 ans ago | 0

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,...

presque 3 ans ago | 0

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...

presque 3 ans ago | 0

Question

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

presque 3 ans ago | 3 answers | 1

### 3

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] ... ...

plus de 3 ans ago | 0

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...

plus de 3 ans ago | 0

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...

plus de 3 ans 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 ...

presque 4 ans ago | 0 answers | 0