Question

MATLAB seems to use multiple cores and threads but not processors

Hi I have a computer with 2 processor, 10 cores each, 2 threads per core. When I run say a big matrix multiplication the win...

4 years ago | 0 answers | 0

Question

difference corr and autocorr

Hi why does ac1=corr(x(1:end-1),x(2:end)) not yield the same as ac2=autocorr(x); ac2(2) ? Many thanks!

4 years ago | 0 answers | 0

Question

derivative of cubic spline for use in nonlinear optimization

Hi i wanna solve a functional system of nonlinear equations by collocation. To speed up the solution process i want to provi...

6 years ago | 0 answers | 0

Answered

bug in matlabFunction when passing unspecified symbolic function?

I still think it's a bug but as a workaround, one can define auxiliary variables syms Dfx Dfy Dfz and substitute them ...

bug in matlabFunction when passing unspecified symbolic function?

I still think it's a bug but as a workaround, one can define auxiliary variables syms Dfx Dfy Dfz and substitute them ...

6 years ago | 0

Question

bug in matlabFunction when passing unspecified symbolic function?

Hi the function _matlabFunction_ seems to do a mistake with undefined functions. It seems to work all right if there is on...

6 years ago | 1 answer | 0

Answered

General function in symbolic toolbox

Hi Thanks for the answer, it seems I havent expressed my question clearly. In what you propose you define the function explic...

General function in symbolic toolbox

Hi Thanks for the answer, it seems I havent expressed my question clearly. In what you propose you define the function explic...

6 years ago | 0

Question

General function in symbolic toolbox

Is it possible in the matlab symbolic toolbox to define general functions, i.e. to define functions only as a general mapping fr...

6 years ago | 3 answers | 1

Question

constrained maximization, share variables of tagret function and constraint

I want maximize a function f(x) s.t. nonlinear cosntraints c(x). Both the function f(x) and c(x) contain a computation step g(x)...

7 years ago | 1 answer | 0

Question

getting slope information from griddedInterpolant

Hey when evaluating a griddedInterpolant, the computer should at some pont determine the slope of the interpolant at the query ...

7 years ago | 1 answer | 0

Question

nested loops in parfor, indexing

Hey im trying to solove an equation system over a 4 dimensional grid of parameter values. Since the difference between neigbo...

7 years ago | 1 answer | 0

Question

costly anonymous function declaration for solving a equation system with parameters

Hi i have to solve a equation system (which is a matlab functiion)for many parameters values, so i run a loop over the paramete...

7 years ago | 1 answer | 0

Answered

Large broadcast variable in parfor loop

I got it running.... but it seems this submission does only work for cells and matrixes. When I try to share a griddedInterpolan...

Large broadcast variable in parfor loop

I got it running.... but it seems this submission does only work for cells and matrixes. When I try to share a griddedInterpolan...

7 years ago | 0

Question

Large broadcast variable in parfor loop

Hi Im having a for loop that i want to parallelize. In the loop th essential part is an interpolation. The problem is that t...

7 years ago | 2 answers | 0

Question

Can querying "TriScatteredInterp" be as fast as "griddedInterpolant"?

Hi, im wondering why querying the TriScatteredInterpolant is so much slower and so much more size dependent than griddedInterpol...

7 years ago | 1 answer | 0

Answered

cubic spline interpolation of a function that yields NaNs when evaluated at some of the grid points.

Update: I have above described the behavior of griddedinterpolant wrongly. I found that cubic interpolation is possible with...

cubic spline interpolation of a function that yields NaNs when evaluated at some of the grid points.

Update: I have above described the behavior of griddedinterpolant wrongly. I found that cubic interpolation is possible with...

7 years ago | 0

Answered

cubic spline interpolation of a function that yields NaNs when evaluated at some of the grid points.

Thanks for ur tips! I thought about doing that (putting an arbitrary number in place of the NaNs), but was recluctant to do s...

cubic spline interpolation of a function that yields NaNs when evaluated at some of the grid points.

Thanks for ur tips! I thought about doing that (putting an arbitrary number in place of the NaNs), but was recluctant to do s...

7 years ago | 0

Question

cubic spline interpolation of a function that yields NaNs when evaluated at some of the grid points.

Hi i want to cubic spline interpolate an unknown function defined over a 3 dimensional domain, whose values i know at the gridp...

7 years ago | 3 answers | 0

Answered

griddedInterpolant (via e.g. interp1) bug with NaNs?

Hey, I have the same problem: I define a griddedinterpolant IP over a grid G and the values V. whenever I evaluate IP at a gri...

griddedInterpolant (via e.g. interp1) bug with NaNs?

Hey, I have the same problem: I define a griddedinterpolant IP over a grid G and the values V. whenever I evaluate IP at a gri...

7 years ago | 0