Answered

How to use smoothing spline to fit a closed curve?

You'll get some progress moving to radial coordinates (it will not be the same properties of a spline in radial coordinates as i...

How to use smoothing spline to fit a closed curve?

You'll get some progress moving to radial coordinates (it will not be the same properties of a spline in radial coordinates as i...

19 days ago | 0

Answered

how to delete elements in the matlab array by overcoming the Unable error to delete elements from this array because dimension 3 has fixed size.

In your function y will not be set. You only try to remove one element from the input, that's wasting time. When I run this at t...

how to delete elements in the matlab array by overcoming the Unable error to delete elements from this array because dimension 3 has fixed size.

In your function y will not be set. You only try to remove one element from the input, that's wasting time. When I run this at t...

19 days ago | 0

Answered

When I attempt to run this code, it doesnt stop running. It will only stop when I pause it. Would appreciate any help as to how to fix this?

If your odes should have positive solutions (haven't checked them to be able to judge this), and they happen to become negative ...

When I attempt to run this code, it doesnt stop running. It will only stop when I pause it. Would appreciate any help as to how to fix this?

If your odes should have positive solutions (haven't checked them to be able to judge this), and they happen to become negative ...

19 days ago | 0

Answered

earth magnetic field model

Check the help and documentation for whatever function you use to get the "world magnetic field". In the IGRF-implementation (an...

earth magnetic field model

Check the help and documentation for whatever function you use to get the "world magnetic field". In the IGRF-implementation (an...

20 days ago | 0

| accepted

Answered

Much slower valid convolution using complementary size of kernels.

No, n-dimensional fourier-transforms, multiplication of the Fourier-transforms of 5-5-8 a with T will be a fair bit faster than ...

Much slower valid convolution using complementary size of kernels.

No, n-dimensional fourier-transforms, multiplication of the Fourier-transforms of 5-5-8 a with T will be a fair bit faster than ...

1 month ago | 0

Answered

Curve Fitting for a function with 3 fitting parameters.

For this I typically use standard non-linear least-square-fitting. That only requires some optimisation-routine, like fminsearch...

Curve Fitting for a function with 3 fitting parameters.

For this I typically use standard non-linear least-square-fitting. That only requires some optimisation-routine, like fminsearch...

1 month ago | 0

Answered

polyfit with multiple dependent variables

The polyfit function only works for 1-D polynomials, as far as I understand things. However there is an n-dimensional polynomial...

polyfit with multiple dependent variables

The polyfit function only works for 1-D polynomials, as far as I understand things. However there is an n-dimensional polynomial...

1 month ago | 0

| accepted

Answered

MATLAB's crosscorr function and R Studio ccf show different results

If you cannot find the information in the documentation, you'll have to go to the source. This is what I find in the xcorr funct...

MATLAB's crosscorr function and R Studio ccf show different results

If you cannot find the information in the documentation, you'll have to go to the source. This is what I find in the xcorr funct...

1 month ago | 0

Answered

3d plot help

Have a look at the FEX-submission joyplot, it should give you functions to make these types of plots. HTH

3d plot help

Have a look at the FEX-submission joyplot, it should give you functions to make these types of plots. HTH

1 month ago | 0

Answered

Analysing Noisy Video for Approximating Radiation Dose on an Observation Baloon

The way I understand your problem is that you're looking for variation in cosmic ray-flux with altitude? Or are you looking at s...

Analysing Noisy Video for Approximating Radiation Dose on an Observation Baloon

The way I understand your problem is that you're looking for variation in cosmic ray-flux with altitude? Or are you looking at s...

1 month ago | 0

| accepted

Answered

Monod equations with ODE45

From the looks of your 3 coupled ordinary differential equations it seems unlikely that they have solutions that are neat elemen...

Monod equations with ODE45

From the looks of your 3 coupled ordinary differential equations it seems unlikely that they have solutions that are neat elemen...

1 month ago | 0

Answered

How to reduce chromatic aberrations in color images?

1, Use matlab to design improved lenses that are achromatic. (This is by far the best way to go about it, nothing helps better a...

How to reduce chromatic aberrations in color images?

1, Use matlab to design improved lenses that are achromatic. (This is by far the best way to go about it, nothing helps better a...

1 month ago | 0

Answered

to find polar curve area

The area of a circle-sector is: Use that for each small sector of your areas, add them up, then change the number of elements...

to find polar curve area

The area of a circle-sector is: Use that for each small sector of your areas, add them up, then change the number of elements...

1 month ago | 0

Answered

How can I plot boundary with these green points instead of these zig zag lines?

Use the function: convhull to get indices to points along the perimeter in order. See the help and documentation for details. ...

How can I plot boundary with these green points instead of these zig zag lines?

Use the function: convhull to get indices to points along the perimeter in order. See the help and documentation for details. ...

2 months ago | 1

| accepted

Answered

Interpolation of non monotonic data.

The interpolation-function does something else than what you seem to try. It takes one data-vector, D, taken at a discrete set o...

Interpolation of non monotonic data.

The interpolation-function does something else than what you seem to try. It takes one data-vector, D, taken at a discrete set o...

2 months ago | 0

| accepted

Answered

Pseudo zernike moment for an image

The Zernike functions are defined on the unit-disk, i.e. circel with radius 1. Your image is likely square, so your choise is t...

Pseudo zernike moment for an image

The Zernike functions are defined on the unit-disk, i.e. circel with radius 1. Your image is likely square, so your choise is t...

2 months ago | 0

Answered

How can I change Indexing of a Matrix?

This seems like a "very ambitious idea, with dubious benefits". But I'm not the one to judge, so I'll guess you have some good r...

How can I change Indexing of a Matrix?

This seems like a "very ambitious idea, with dubious benefits". But I'm not the one to judge, so I'll guess you have some good r...

2 months ago | 0

Answered

Orthogonality of a 4x4 DCT matrix

What does it mean that a matrix is orthogonal? What is the condition for two vectors to be orthogonal? Answer these two questi...

Orthogonality of a 4x4 DCT matrix

What does it mean that a matrix is orthogonal? What is the condition for two vectors to be orthogonal? Answer these two questi...

2 months ago | 0

Answered

How can i illustrate the fast fourier transform of an image ?

Typically you will have to take the log of the magnitude of the fft-coefficients to get a "nice-looking" illustration. That is d...

How can i illustrate the fast fourier transform of an image ?

Typically you will have to take the log of the magnitude of the fft-coefficients to get a "nice-looking" illustration. That is d...

2 months ago | 0

Answered

Lowess smoothing disappears in Curve Fitting App

I suggest you scrap the curve-fitting app, the way to go is to start from Loren's nice blogg-post on LOWESS-fitting. That way ev...

Lowess smoothing disappears in Curve Fitting App

I suggest you scrap the curve-fitting app, the way to go is to start from Loren's nice blogg-post on LOWESS-fitting. That way ev...

2 months ago | 0

Answered

Random set of vectors and sort them via the x axis

Have a look at the help and documentation of the function sortrows. Also (if this is a educational programming task) read the he...

Random set of vectors and sort them via the x axis

Have a look at the help and documentation of the function sortrows. Also (if this is a educational programming task) read the he...

2 months ago | 0

| accepted

Answered

How to control color and the intensity in a pcolor figure?

You could try something like this: lambda = 400:700; % Wavelengths in nm. I_of_lambda = % Solar-spectral intensity as a functi...

How to control color and the intensity in a pcolor figure?

You could try something like this: lambda = 400:700; % Wavelengths in nm. I_of_lambda = % Solar-spectral intensity as a functi...

2 months ago | 1

| accepted

Answered

Error using ode45

Perhaps your calling has become too "traditional" and is not properly supported. In that case (and in general) it might be enoug...

Error using ode45

Perhaps your calling has become too "traditional" and is not properly supported. In that case (and in general) it might be enoug...

2 months ago | 0

Answered

Adding Harmonics of a sine wave together

You have to take into account that the fft returns complex Fourier-coefficient - that is both real and imaginary components. So ...

Adding Harmonics of a sine wave together

You have to take into account that the fft returns complex Fourier-coefficient - that is both real and imaginary components. So ...

2 months ago | 0

Answered

How to plot scatter graph with colourmap functon

To make it short and simple couldn't you just use scatter and let it automatically scale the values? scatter(x,y,23,myVal,'fill...

How to plot scatter graph with colourmap functon

To make it short and simple couldn't you just use scatter and let it automatically scale the values? scatter(x,y,23,myVal,'fill...

2 months ago | 0

Answered

Double integral with rectangle transformation

No. Check things like this by simply doing things like this: [x,y] = meshgrid(linspace(-2,2,401)); pcolor(x,y,abs(x)+abs(y)),s...

Double integral with rectangle transformation

No. Check things like this by simply doing things like this: [x,y] = meshgrid(linspace(-2,2,401)); pcolor(x,y,abs(x)+abs(y)),s...

2 months ago | 0

| accepted

Answered

ODE with time dependant variable

Go to the help and then online documentation for ODE45, there you will find illustrated examples for both multiple coupled ODEs ...

ODE with time dependant variable

Go to the help and then online documentation for ODE45, there you will find illustrated examples for both multiple coupled ODEs ...

2 months ago | 0

| accepted

Answered

Equal Axis reduce the plot size

That is a terrible problen, what happens in your case, with increasingly narrow axes is (likely) unavoidable when you get very d...

Equal Axis reduce the plot size

That is a terrible problen, what happens in your case, with increasingly narrow axes is (likely) unavoidable when you get very d...

2 months ago | 0

Answered

solving a coupled differential equations using ODE45

You have to put both ODEs together and integrate the pair at once. Let's look at an example equation: That pair of equations ...

solving a coupled differential equations using ODE45

You have to put both ODEs together and integrate the pair at once. Let's look at an example equation: That pair of equations ...

2 months ago | 1

| accepted

Answered

Let other applications use Matlab's version of the CUDA toolkit

0: I have no idea about legalities. 1, I found a lot with unix find: $ find ./ -iname \*cuda\*.so\* ./R2020a/bin/glnxa64/libo...

Let other applications use Matlab's version of the CUDA toolkit

0: I have no idea about legalities. 1, I found a lot with unix find: $ find ./ -iname \*cuda\*.so\* ./R2020a/bin/glnxa64/libo...

2 months ago | 0