提问


Defining complex input types to make a complex mex function
Hello friends, Recently I became familliar with mex function. I am quite new to this and have lots of hopes to speed up my slow...

2 years 前 | 1 个回答 | 0

1

个回答

提问


Finding the index of elements of a vector in a mesh quite fast
Hello friends, I would like to find the index of vector of numbers A being closest in a mesh. I know how to do this but I hope ...

2 years 前 | 1 个回答 | 0

1

个回答

提问


Difference between spline(x,y,xq) and interp1(x,y,xq,'spline')
Hello friends, I have a simple question. I am wondering what is the difference between the commands spline(x,y,xq) and interp...

2 years 前 | 2 个回答 | 0

2

个回答

提问


Indefinite integral for a step function with variable number of steps
Hello friends, I have a function handle which is defined by interp1. Is there a way to find its indefinite integral? For inst...

2 years 前 | 1 个回答 | 0

1

个回答

提问


Step function with variable number of steps
Hello friends, I have a simple question but would like to find an efficient way to implement it for my very heavy codes. Assume...

2 years 前 | 1 个回答 | 0

1

个回答

已回答
Quadratic spline having shape preserving property
Hello John, I did not know that a shape preserving quardatic spline cannot be smooth at breaks. Yes, I agree with you that I ...

2 years 前 | 0

提问


Quadratic spline having shape preserving property
Hello friends, In my work I need to use quadratic splines and I can use the command spapi(3,x_data,y_data). Unfortunately, I ...

2 years 前 | 2 个回答 | 0

2

个回答

提问


Multivariate Horner scheme implementation in MATLAB
Hello friends! I have very long symbolic expressions (mainly polynomials or rational types) and I need to evaluate them man...

2 years 前 | 0 个回答 | 0

0

个回答

提问


PP form for the reverse function (not inverse function)
Hello friends! Consider a pp form for a set of (x,y) data points. Imagine now that we wish to find the pp form for the (x,1/y) ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Find constants in a symbolic vector
Hello friends! I have a simple question but found it difficult to come up with a perfect answer. I explain by a simple example....

3 years 前 | 1 个回答 | 0

1

个回答

提问


Suitable input for a function handle
Hellow friends, I need to do something which I explain through a simple example. Consider the following F=@(x,y,z)[x.*z.^2.*y;...

3 years 前 | 1 个回答 | 0

1

个回答

提问


I cannot remove 0 elements of a symbolic array
Hello friends! Consider the following commands syms x sigma(x) par=sym('par%d', [1 2],'positive'); sigma(x)=par(1)+par(2)*...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Replace powers with a sequence
Hello friends! Consider a binomial symbolic expression like (x-1)^3 and a symbolic vector e of size 3 (e=sym('e',[1 3]) ). Of ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Subs does not do the job
Hello friends! I do not understand why in my code (see bellow) the command 'subs' does not through ant error and at the same ti...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Perhaps a bug in matlab?
Hello friends! I think I have encountered a bad issue about matlab, perhaps it is a bug. Consider the following commands >> sy...

3 years 前 | 1 个回答 | 0

1

个回答

提问


PP form for griddedInterpolant
Hello friends! This morning I was going to use interp1 but noticed that matlab is going to remove it soon. Instead, they recom...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Vectorizing a function handle with some constant inputs
Hello friends! I have an annoying problem and need your kind help! Suppose that I have a symbolic vector like f = [x+y;0;x.*y;...

3 years 前 | 1 个回答 | 1

1

个回答

提问


How to turn a function handle with 3 inputs (1 variable and 2 parameters) and then assign the inputs parameters and get a function handle with one input? ?
Hello friends! Consider the following y=1;z=1; f=@(x,y,z)x+y+z; Now, I would like to create another function handle which is...

3 years 前 | 3 个回答 | 0

3

个回答

提问


A very strange problem
Hi friends! After spending an hour on a seemingly simple problem I was not able to figour out what is wrong and this is why ...

3 years 前 | 3 个回答 | 0

3

个回答

提问


A simple algebraic which I failed to do
Hello friends! Unfortunately, I have to tell you that I am unable to do a simple math I learned at intermediate school in mat...

3 years 前 | 1 个回答 | 0

1

个回答

提问


How to tell vpa command to consider digits after decimal point' only?
Hello friends, I have a simple question, I think! I have a symbolic expression S with numeric coefficients. I need to round the...

3 years 前 | 1 个回答 | 0

1

个回答

提问


A simple algebraic calculation does not work properly!
Hi friends! I have been strugling to tell matab to do a simple calculation for me but I failed, unfortunately. I explain my pro...

3 years 前 | 2 个回答 | 0

2

个回答

提问


Manipulating a text file without using symbolic engine
Hello friends! I have extremely long algebraic expressions saved as text files. I need to asign 0 to some variables in the text...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Collect does not do the job
Dear friends, I have a simple question but after spending an hour I could not figur out how to fix it. So, apologies if this ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


How to do symbolic interpolation in matlab?
Hellow friends! I need to do symbolic interpolation in matlab but after spending a day I had no success. You might say why I...

3 years 前 | 1 个回答 | 0

1

个回答

提问


Does anybody know how to calculate self-calling differential operators fast?
Hello friends, I have a code with a for-loop where inside the for-loop there is a differential operator which uses a function, ...

3 years 前 | 0 个回答 | 0

0

个回答

提问


How to tell matlab to, instead of throwing an error message, give me a Boolean (e.g., 0 means I get error) when I try to use Horner command
Hello friends, In my code I need to know beforehand whether matlab can calculate Horner representation for my polynomial. Somet...

3 years 前 | 2 个回答 | 0

2

个回答

提问


How to tell an multi-output anonymous function to vectorize its output components which are constant
Hello friends, I have an apparently simple but very annoying problem. Consider the function handle f=@(x,y) [x+y;2;x*y;x^2-1...

3 years 前 | 1 个回答 | 0

1

个回答