Answered
Getting Meters per Pixel out of the camera calibration app?
If you know the size of the squares on the checkerboard and your objects are at the same distance then you only need to count th...

21 days ago | 0

Answered
How to specify points in on two curves in plot?
This seems like a task for interp1. Have a look at the help and documentation for that function. I'd do something like this: sc...

21 days ago | 0

| accepted

Answered
How do I generate a spherical image from a 3D matlab figure
Currently matlab has 'orthographic' and 'perspective' for the 'projection'-property of 3-D axes. You can perhaps get a wee bit ...

21 days ago | 0

Answered
Nonscalar arrays of function handles are not allowed; use cell arrays instead.
You get the error in newton because the feval of your ydy-function returns function handles and you try to assign them to regula...

21 days ago | 0

| accepted

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...

22 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...

22 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 ...

23 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...

23 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 ...

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...

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...

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...

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

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...

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...

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...

2 months 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...

2 months 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. ...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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 ...

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...

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...

2 months ago | 0

| accepted

Load more