Réponse apportée
How to find (interpolated) zeros in a data array
There is no assurance that interp2 and contourc are using identically the same scheme for interpolation. Even in the case of "li...

environ 3 ans il y a | 0

Réponse apportée
Getting equation for a interpolated spline using csaps
I'll post this as a separate answer, since I did not use a spline at all to build the model, and so it does not get lost in the ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
The MATLAB function to solve implicit equation
Assuming your question is how to solve the equation [m^2 /( 3(a+a0)^2)] * (2 * k1 + 3 * k2) = a0 * (2/v1 + 5/v2) I removed...

environ 3 ans il y a | 0

Réponse apportée
Getting equation for a interpolated spline using csaps
Can you get the spline equation? No. There is no simple equation you can write down. Or, if you could write it down, it would in...

environ 3 ans il y a | 0

Réponse apportée
how to filter the noise of a signal
This is probably a good task for a median filter. load matlab.mat whos plot(F) Fhat = medfilt1(F,100); plot(Fhat) Larger v...

environ 3 ans il y a | 0

Réponse apportée
Finding all the positive Roots of non linear equation and plotting the modes
Of course, this would have been for homework, so there is not really much point to posting this answer. Oh well. I will anyway, ...

environ 3 ans il y a | 0

Réponse apportée
contour for scatter data
Let me give an example of how to use a tricontouring tool for scattered data. x = rand(100,1); y = rand(100,1); zfun = @(x,...

environ 3 ans il y a | 0

Réponse apportée
Unable to use 'fit' function from Curve Fitting Toolbox
Is fit giving you fits? First, check that MATLAB thinks the curvefitting toolbox is installed, and that you have a license for ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Generating a distribution of points relative to closed surface (alphshape)
Ok. I''ll offer a couple of solutions. Recognize that nothing will be perfect, since these are ad hoc solutions, and an alpha sh...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
help me fix the Error
which distance_to_earthcos -all This function is not a MATLAB function. It is not found in any toolbox either. For that matter,...

environ 3 ans il y a | 0

Réponse apportée
Problem with derivative function
What you don't seem to appreciate is that in the eyes of the symbolic toolbox, something like 2^(-1/2) Is a numerical result. So...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Planes and vectors in 3d
Are these vectors with a tail at (0,0,0)? If so, then they must cross the plane, as long as the z-component is not zero. Or are ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to fit multiple gaussian in a curve ?
Easy enough. You NEED good starting values though. Crappy starting values --> crappy results. load dsp.mat plot(f,pxx) grid o...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
replace the values by nearest mean of the matrix
Using my inpaint_nans.... y = randi(10,[7,7]) - 2 y = 0 5 0 8 1 0 2 6 5 7 -1 ...

environ 3 ans il y a | 0

Réponse apportée
Going back to unvisited node through visited node by minimum weight of edge
Why are you not using the existing graph tools to solve graph problems? It is never a good idea to write your own code to solve ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
my objective function should return less than 10^-6.
First, suppose your car had a problem. Would you take a picture of your car and send it to your local auto mechanic? Would they ...

environ 3 ans il y a | 0

Réponse apportée
plot a matrix in 3D
DID YOU TRY IT? Why not? So, given some arbitrary complex matrix, how do you compute the magnitude? ABS does that. How you you ...

environ 3 ans il y a | 0

Réponse apportée
Trapezoidal numerical integration of f(y) = ( 1 / x(y) ) dy
You are confusing yourself here. Probably because you have created this variable x that has gotten you confused. But let me give...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
lsqnonlin providing very poor model fits
You have not posted the data, so it is impossible to test your code. Regardless, there are several common reasons why a solver ...

environ 3 ans il y a | 0

Réponse apportée
What is the purpose of zero function?
Consider these two codes: tic x = []; for i = 1:100000 x = [x,i]; end toc clear x tic x = zeros(1,100000); for i...

environ 3 ans il y a | 1

Réponse apportée
While loop that stops if certain number is inserted
You should read the help for while. What you wrote was not even close to valid MATLAB syntax. Look at the examples found in the ...

environ 3 ans il y a | 0

Réponse apportée
multiplying row vector by a scalar
I think @Kay needs an example. A = ones(4,3) B = 1:3; A(3,:) = A(3,:).*B

environ 3 ans il y a | 0

Réponse apportée
Doubt regarding angles of tan inverse
atan2 has nothing to do with it. At least not based on anything you said. The difference between angles can exceed the range yo...

environ 3 ans il y a | 0

Réponse apportée
Bessel Function Calculation in Matlab
Several common problems in this, regardless of whether you got the factiorial/gamma problem solved. You want to use a series so...

environ 3 ans il y a | 1

Réponse apportée
somebody help me please! I've gone over the irritation of approx_sqrt and the only way I've got each value of the function while using a calculator it was if I used y=2
The site seems to want an answer to your question, and we just answered you in the comments. Oh well. But seriously, your solut...

environ 3 ans il y a | 0

Réponse apportée
How to remove noise (unwanted data)
Finding and removing what I might call singleton outlier's while leaving in place small amounts of noise can be a difficult task...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
How to check the proportionaly of columns of a complex rectagular matrix?
Checking if two vectors (in your case, just columns of a matrix) are proportional is pretty easy, as well as then computing the ...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
error with function ode45
You need to tell the ODEsolver FROM where, TO where will it integrate? So will the integration be, perhaps FROM 0 to 0.5? All y...

environ 3 ans il y a | 0

Réponse apportée
save loop data with non integer steps
acvalues = 0.01:0.01:1; detectorsignal=zeros(size(acvalues)); for ind = 1:numel(acvalues) absorbing_coeff = acvalues(in...

environ 3 ans il y a | 0

Réponse apportée
Write a function quadraticSolver that takes one 3-element array input and returns two outputs (root condition and root values). Use an if-elseif-else structure in your code.
The error message apparently tells you your array is composed of uint8 numbers. How do you convert a variable of integer type,...

environ 3 ans il y a | 1

Charger plus