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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 1

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

casi 5 años hace | 1

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

Respondida
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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 1

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

casi 5 años hace | 0

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

casi 5 años hace | 1

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 1

| aceptada

Respondida
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

casi 5 años hace | 1

| aceptada

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

casi 5 años hace | 0

Respondida
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));...

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 1

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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

Cargar más