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

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

circa un mese 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 ...

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

circa 2 mesi 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...

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

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

Bezier surface to CAD program

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

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

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

circa un anno 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...

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

oltre un anno 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...

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

oltre un anno ago | 0

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

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

oltre un anno 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); ...

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

circa 2 anni 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,...

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

circa 2 anni 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)|? ...

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

circa 2 anni 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...

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

circa 2 anni 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...

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

circa 2 anni 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...

circa 2 anni ago

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

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

circa 2 anni 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...

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

oltre 2 anni 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...

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

oltre 2 anni 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...

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

circa 3 anni 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...

fnval for tensor splines

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

circa 3 anni 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,...

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

circa 3 anni 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...

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

circa 3 anni ago | 0

Question

jupyter notebook vs live scripts

What are the differences between Live Scripts and Jupyter notebooks?

circa 3 anni ago | 3 answers | 1

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

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

oltre 3 anni 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...

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

oltre 3 anni 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...

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

oltre 3 anni 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 ...

circa 4 anni ago | 0 answers | 0