Answered
Reconstruct 2D cross-section (top-view) from multiple x-ray images (side-view)
You can find a couple of submissions for tomography on the file exchange: tigre-tomographic-iterative-gpu-based-reconstruction-t...

5 years ago | 0

| accepted

Answered
Piecewise differentiation, automatic identification of pieces
I'd try with a lowess/loess filtering aproach, and then check the residuals between the data and the filtered/approximated value...

5 years ago | 0

| accepted

Answered
How to output matrix grayscale?
You could use imagesc instead of imshow. Combined with colorbar you get a neat display of your matrix. Since you asked for gray-...

5 years ago | 0

Answered
plot Landau cylinder and sphere
Just look at the help and documentation of cylinder - that will give you a "unit-cylinder" that you then can scale (both radius ...

5 years ago | 0

Answered
How to calculate bit error rate of two images?
xor is only really defined for a logical data-type, right? So what you want is to check the difference between each pixel in the...

5 years ago | 0

Answered
Finding all roots of nonlinear function
Read the help for the fzero function and you will see that it returns a solution, not all. It accepts a range for x0 that restri...

5 years ago | 1

Answered
How to generate a normal matrix?
Have a look at the help and documentation of the diag-function. This question indicates that you're very new to matlab, so you m...

5 years ago | 1

Answered
How to transpose a cell array blockwise?
If I understand you right this should do what you want: QWE = {'T1_1','T1_2','T1_3';randn(1),randn(2),randn(3);'T2_1','T2_2','T...

5 years ago | 0

Answered
I have the following formula or equation and i wanted to show the effect of mass while keeping the other variable constant , How can i plot different graph by only changing the mass in one figure
If I interpret your equation as "you have a function ZGB that depends on k1, v+k2, v^3+M*v and dv/dt" then it will very much dep...

5 years ago | 0

| accepted

Answered
What colormap I should choose to plot my figure like I attached to this question?
You will find a couple of red-blue colormap-functions on the file exchange: redblue-colormap-generator-with-zero-as-white-or-bla...

5 years ago | 0

| accepted

Answered
how to solve non linear differential equations
Have a look at the help and documentation of ode45 and the numerous ode-examples. In brief to solve this ODE-system write a mat...

5 years ago | 0

Answered
Please help with the correct syntax for this interpolation (interp2)
That seems like a task for interp1: B(2,:) = A(2,1):A(2,end); B(1,:) = interp1(A(2,:),A(1,:),'linear'); HTH

5 years ago | 0

| accepted

Answered
ODE to solve for density
Your ODE is not correct for the pressure-variation. What you have in the p_prime function is closer to the solution of the press...

5 years ago | 1

Answered
How to find total derivative by using total derivative operator?
If you have the symbolic toolbox it is just to get to work: syms x y t syms u(x,y,t) syms p(x,y,t) dudx = diff(u*p,x) % etc....

5 years ago | 0

Answered
How to fit a multi modal distribution using a weighted sum of PDFs?
You don't have enough samples to confidently claim you have a multimodal distribution. If you simply try this with fitting expon...

5 years ago | 1

| accepted

Answered
Entropy values of all the bands in a given hyperspectral image.
It seems it is not the most robust functionality, If I run the test of entropy from the help of the entropy-function I get rathe...

5 years ago | 0

| accepted

Answered
How to solve a non linear ovedetermined system of equations??
You can always try with regular minimization. Perhaps something like this: function err = err_1(pars,x,y,z,y) c = 3; % guess, ...

5 years ago | 0

| accepted

Answered
Error: Array indices must be positive integers or logical values.
Matlab has the convention that arrays-indexes starts from 1. Arrays have to be indexed with integers. You can solve your proble...

5 years ago | 0

Answered
How to do exponential curve fitting like y=a.* log(x + b.*exp(c.*x)
You can do something like this: mod_fcn = @(b,x) b(1).*(log(x + (b(2).*exp(b(3).*x)))); % Objective Function err_fcn = @(b...

5 years ago | 0

| accepted

Answered
How to do this with Delaunay Triangulation?
You'll have to go through DT.ConnectivityList and remove the triangles you don't like. The function returns a convex set of tria...

5 years ago | 0

Answered
unable to solve non linear differential equation
This looks like an equation of the form: Unless you have an equation for a trajectory of a spinning object falling in gravity...

5 years ago | 0

Answered
Solving system of ODEs with ode45 and multiple time dependent variables
In your ODE-fun you can "simply" interpolate your time-dependent coefficients. Something like this: function dTdt = ODEfun(t,T,...

5 years ago | 1

| accepted

Answered
How to make a matrix of all zeros be the same size as a data set being used?
Something like this: u = zeros(size(v)); HTH

5 years ago | 1

| accepted

Answered
Constrained optimization, free code
There ought to be some optimization-tools on the file-exchange that can be used instead of fminsearch. Perhaps the minimize tool...

5 years ago | 0

Answered
2D DFT of an image
OK, here's a solution that's computationally useless since 1965: szIm = size(Im); M1 = dftmtx(szIm(1)); M2 = dftmtx(szIm(2));...

5 years ago | 0

Answered
Why is Matlab changing thickness of the line in this plot ?
input4 and input5 have circle and triangle set as marker. I can't see where that happens, but try to un-set that. Something like...

5 years ago | 0

| accepted

Answered
Eigen Vectors and Values using Matlab
Why not calculating the eigenvectors at once? [Ev,lambda]=eig(A) Also, when rounding the eigenvalues, you're no longer guarant...

5 years ago | 1

Answered
Diagonal Interpolation/Extrapolation of a 1024 x 30 Matrix
What you can try for this is to align the main peaks, using something like this: [~,idxPeaks] = max(I_spectras,[],2); % Here I ...

5 years ago | 0

Answered
Converting Linear Equations to Matrix Form
Is k some sort of propagation (time? space?) index and you want to convert these equations into a matrix-format, or are these ac...

5 years ago | 0

Answered
Save multiple image automatically
You simply have to generate a sequence of unique filenames to save to. Something like this: outfile = fullfile(outfolder, s...

5 years ago | 0

| accepted

Load more