Réponse apportée
Why is the calculated Rsquare different between the embedded fit function and the EzyFit function (from File Exchange)?
Do you understand that R^2 is not valid, when computed for a model with no constant term? Instead, I recall there are variations...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
I wanna implement this function, but it says there is an syntax error..
What langiuage are you using when you end a function with the statement endfunction? Not MATLAB. As well, IF you had posted the...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
non-numerical answer for solving complex non-linear equation
I think you do not understand how variables work in MATLAB. Variables are dynamically assigned. When you assign them as you have...

presque 3 ans il y a | 0

Réponse apportée
Can I use my student license for and at work?
I would guess the answer is technically no. But it is arguable either way as long as you remain a student, IF when you are on co...

presque 3 ans il y a | 1

Réponse apportée
A single precision matrix multiplication problem
Why are you confused? NEVER trust the least significant bits of a floating point number. The numbers in a are singles. So the l...

presque 3 ans il y a | 3

| A accepté

Réponse apportée
I am stuck in making the pentadiagonal matrix A
This sort of thing is a BAD idea: A = A+spdiags(s_vec, 0, (nx+1)*(ny+1), (nx+1)*(ny+1)); % Add s to the main diagonal of A XX_...

presque 3 ans il y a | 0

Réponse apportée
Find the derivative of a spline curve obtained using cscvn
No. There is no simple "function" of a spline. It is a mess of coefficients that by themselves are fairly meaningless to those w...

presque 3 ans il y a | 0

Réponse apportée
Fitting powerlaw between two points
Given two points exactly, thus: yx = [0.047 100; 0.0382 0.1933]; y1 = yx(:,1); x1 = yx(:,2); You want the power law cur...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to combine the trapezoidal rule with interpolation in ode23t function
A FREE interpolant is one where the nodes are not fixed in advance. For example, suppose I choose to interpolate sin(x), on th...

presque 3 ans il y a | 0

Réponse apportée
How to get the combination "nCk", if either n or k is a variable.
if x(3) is NOT an integer, then what do you expect? If x(3) is NOT at least as large as d, then what do you expect? In either...

presque 3 ans il y a | 0

Réponse apportée
Fitting 3D data into a function
The curve fitting toolbox does not fit models with more than 2 independent variables. You can use my polyfitn tool, found on th...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to solve exponential variables
The problem is, you have been trying to SOLVE them. More approproately, you want to use a tool that will FIT your model to the...

presque 3 ans il y a | 0

Réponse apportée
Laguerre polynomials of large degree.
If you are using double precision, then OF COURSE high order polynomials of any form in MATLAB should not be trusted!!!! At leas...

presque 3 ans il y a | 1

Réponse apportée
Shifting an array without circshift
Nobody can know what you did wrong. circshift DOES work. I'm not even sure what you would have done that would cause an error. T...

presque 3 ans il y a | 1

Réponse apportée
trying to solve two non-linear simultaneous equations but I had an error figuring out my two unknowns (X(1) &x(2)) , can anyone pls help?
ARGH. Why would you post a picture of your code? And at that, only a partial picture? Even if I try to show why your code fails,...

presque 3 ans il y a | 0

Réponse apportée
How to determine concavity point?
You give no data, so I'll need to make some up for an example. x = linspace(-30,30,500); y = cumsum((atan(x - 10)/2 + 1)); pl...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
What to be chosen c so that all elements of matrix B will be a round number. B=A.c; where A is the matrix of non integers.
You want to find some scalar value c, such that for some given vector A, you want the product A*c = B to be purely a vecto...

presque 3 ans il y a | 2

Réponse apportée
How can i simulate a generic poisson process?
Not sure how you built the vector. Is it a Poisson process? Could be. :) As I recall, if you have exponential inter-rarrival tim...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
mvncdf gives different results before and after the variable is standardised
No answer yet? The distinction as I see it is a subtle one. And had your covariance matrix been a diagonal one, then I expect it...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Delete a plane (2d) within a 3d matrix
Sometimes it is simpler to take what you want, than it is to delete what you don't want. Here is a matrix: A = rand(256,256,256...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How do I find the (right) null space of a matrix?
Easy. A = rand(5,2)*rand(2,3) A has rank 2. Arnull = null(A) A*Arnull It kills A, which is what the right nullspace would d...

presque 3 ans il y a | 0

Réponse apportée
asking for a polynomial expression in an input
Can you type in a polynomial? Why not? You type it anyway. Just use input, which can return the result as a string. Or, use a di...

presque 3 ans il y a | 0

Réponse apportée
How do i keep track of eigenvalue on pzmap for a pariticular system matrix A containing a variable D?
You can use the tool I wrote, eigenshuffle. It sorts the eigenvalues in as consistent an order as possible, by assuming the corr...

presque 3 ans il y a | 0

Réponse apportée
Error using "*" in my equation, assumes I am trying to do matrix multiplication.
Even though you are not using matrices, does not mean that linear algebra could not be intended. MATLAB does not know what you a...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Finding the turning points
If all you will use are the 100 coarsely sampled points you are plotting, then min and max will do what you want. Look at the se...

presque 3 ans il y a | 0

Réponse apportée
surface area of 3D surface
Would our doing your exam for you really help you? Seriously? If you need help that badly, then you should have been studying mo...

presque 3 ans il y a | 0

Réponse apportée
How do I place a point anywhere along x axis (with range 100m) in a plot?
Highly confusing. Do you want to plot a single point? What y value? Maybe you want to do this? k = 53; plot(k,0,'ro') % A sing...

presque 3 ans il y a | 0

Réponse apportée
Cantor function in matlab
To be honest, I'd probably be lazy, and just use the simple algorithm found in wikipedia. https://en.wikipedia.org/wiki/Cantor_...

presque 3 ans il y a | 1

Réponse apportée
Wrong answer for ODE
As is so often the case, a DIFFERENT answer is not always a WRONG answer. It may just look different. But different is not alway...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
function of two uniformly random variables
I think you need to learn how to write a function. You also seriously need to learn about the dotted operators. What you wrote f...

presque 3 ans il y a | 0

| A accepté

Charger plus