How to 'Mirror Image' my Vectors
If your yellow point-markers are supposed to lie on/in/over the stream (river?) then you might have to either rotate their coord...

25 días ago | 0

| accepted

How to get the FFT peaks from a non stationary signal
What you seem to attempt is nothing but extracting peaks out of ffts from sequences of shorter time-span. That ought to be exact...

26 días ago | 0

Getting imaginary values for unequal spaced Gaussian function using NUFFT
If you take a look at what you work with: subplot(3,1,2) plot(real(f_k)) hold on plot(imag(f_k)) plot(abs(f_k)) su...

27 días ago | 0

MATLAB map and reduce: functional programming
You could get parts of the way with cellfun and arrayfun, typically in combination with anonymous functions (fcn = @(x) sin(x))....

27 días ago | 0

| accepted

Confidence intervals for fitting parameters in a system of ODEs?
Your model-function seems to produce the residuals, , between modeled and observed concentrations. At the optimal values you ge...

27 días ago | 0

I need to speedup saving spectrogram images
Maybe you get some speedup by using print instead of exportgraphics. You can at least try and check that: ...as above print('-...

28 días ago | 0

How to write ||a-p||^2 in matlab code
Have a look at the norm function and its help and documentation. If your a and p are  [n x m] arrays and you want to get ||a-p||...

30 días ago | 0

| accepted

how can save different plot with different names file in loop use fullfile ?
Simply modify the filename: for idx_loop = % whatever you have ... ... spectrogram(M1,'yaxis') ...

alrededor de 1 mes ago | 0

| accepted

how to filter noise from geomagnetic data?
You simply have to try. You could use standard linear filters (see the help and documentation for filtfilt or conv), you might u...

alrededor de 1 mes ago | 0

Input signal and arguments in Ode45. Not enough imput arguments
The function dinamica expects 6 input arguments. However, the function, f that ode45 takes as input is handled as a function of ...

alrededor de 1 mes ago | 0

| accepted

Differential model won't calculate with powers <1
It is not given that a general nonlinear system of ODEs have analytical solutions. If you cannot get the symbolic toolbox to fin...

alrededor de 1 mes ago | 0

| accepted

Response to an impulse(delta dirac)
That's not what I understand a Dirac-pulse to be. This is a 2 second long constant-force push. Implement it as such - on for 2 s...

alrededor de 1 mes ago | 0

| accepted

ODE - Save variables for every time step
This is something that is (simplest?) done by calculating the second output once after you've integrated the ODE-system. Either ...

alrededor de 1 mes ago | 1

| accepted

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 0

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

alrededor de 1 mes ago | 0

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

alrededor de 1 mes ago | 0

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

alrededor de 1 mes ago | 1

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

alrededor de 1 mes ago | 1

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

alrededor de 1 mes ago | 0

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 0

That seems like a task for interp1: B(2,:) = A(2,1):A(2,end); B(1,:) = interp1(A(2,:),A(1,:),'linear'); HTH

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 1

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

alrededor de 1 mes ago | 0

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 0

| accepted