Respondida
find onest and end of wave ?
You cannot in a strict sense. You will have to settle for the first and last wave-crest, or set some arbitrary threshold for the...

alrededor de 4 años hace | 0

Respondida
How to segment image without losing information at the edges for finding centroid?
The only way I can imagine the meaning of centroid in a grayscale image like the one above is with the same definition as "centr...

alrededor de 4 años hace | 2

| aceptada

Respondida
How can I know more details about the function spap2?
Why don't you just try: edit spap2 From there you should be able to read for yourself. As far as I can see most functions are ...

alrededor de 4 años hace | 0

Respondida
how to solve ODE that contains integration over time?
For this type of integro-differential equations the standard "first-stab" trick is to differentiate it one step, which should gi...

alrededor de 4 años hace | 0

Respondida
Matlab mathematival modeling problem chemical eng
You have at least a couple of syntax errors in your code, namely the lines: 4*((dacetdt)^2)+10*dacetdt = racet; 4*((dAceticdt)...

alrededor de 4 años hace | 0

Respondida
why there are two different comands for calculating convolution of two vectors?
The answer to: why returned: "To please all." That might be more of a matlab in-joke, but a true answer can only (possibly) b...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to save/store/recuparate data from inside a nested loop.
This should be simple enough if you do something like this: Y_best = zeros(n_something,N_aoa); % Not clear to me what your Y co...

alrededor de 4 años hace | 0

Respondida
Adding a legend to a Graph in Matlab
Would something like: legend([h(idx1(1)),h(idx1(2)),h(idx3(1))],... 'label1','label2','label3') work for this case. Here ...

alrededor de 4 años hace | 0

Respondida
Does detrend function remove the mean of the signal?
If you read the help of detrend you will find: DETREND Remove a linear trend from a vector, usually for FFT processing. [...

más de 4 años hace | 0

Respondida
How to correct resonance phase plot
You could quick-fix this by plotting the phase-angle phi like: plot(unwrap(2*phi)/2) But you might have to check that you calc...

más de 4 años hace | 0

| aceptada

Respondida
Tri-diagonal Matrix with varying diagonals
You have to set the elements of z to the values you want. In your version you set z to a new scalar (first time around the loop ...

más de 4 años hace | 0

| aceptada

Respondida
Colormap on values related to bins
Perhaps you could use scatter to plot this. According to your description itseems as if you have a 2-D histogram type of data, b...

más de 4 años hace | 0

Respondida
How to include variable offsets in polynomial equations
Have a look at the help and documentation of taylor. That should help you a good part of the way - especially if you use the 'ex...

más de 4 años hace | 0

| aceptada

Respondida
3 loops using sprintf to change directories doesn't quite work
Have a good look at the help and documentation of fullfile. That function is made to help you generate full filenames with absol...

más de 4 años hace | 0

| aceptada

Respondida
I am not able to solve value of 3 constants with three equations
For given values of b, d, and L you have a standard system of linear equation. An obvious solution to these equations are all ci...

más de 4 años hace | 0

Respondida
How to use ode45 to solve coupled second order differential equations
It might be that your expectations on the modification of the beat in y, it might be something else. (When I converted the dsolv...

más de 4 años hace | 0

| aceptada

Respondida
How to interpolate harmonic data series (without sin / cos equation defined)?
You should not "inpaint" data this way and then use that to extract SQ-curves or any such averaged quantities. You have the data...

más de 4 años hace | 0

Respondida
Solving coupled system of second order differential equations symbolically
Like the Greek godess used to say: Just do it!: y'' = k/m * y + w/m * z, z'' = J/I * z + w/I * y, syms t syms y(t) z(t) syms...

más de 4 años hace | 0

| aceptada

Respondida
Convert netcdf time ('minutes since 2013-2-1 00:00:00') to actual date
Remember that datenum is in (fractional) days, while your netcdf-time is in minutes. It seems likely that you want to do: t1 = ...

más de 4 años hace | 1

Respondida
Solve systems of equations graphically
You can start investigating the surfaces of the functions f1(x,y) = x.^2+y.^2-29 and f2(x,y) = y.^2-4*x.^2-9 with something like...

más de 4 años hace | 0

Respondida
ODE45 outputs only zeros
When you have discontinuities in the ODEs (the derivative of command) then the safe approach is to separate the integration into...

más de 4 años hace | 0

| aceptada

Respondida
Unable to perform assignment because the left and right sides have a different number of elements.
It appears because you try to squeeze in/stretch out an array with some number of elements into different number of elements of ...

más de 4 años hace | 1

Respondida
how to load mutiple mat files which has names in 'YYYYMMDD.mat' format?
You could do something like this, provided you have the filenames-of-interest: for iFiles = numel(dataFiles):-1:1 Sloaded{i1...

más de 4 años hace | 0

| aceptada

Respondida
3 Differential equation using 4th order runge kutta
You have a function for a 2-D system of ODEs. That then is messed up: function diffeqs =ode_Q10(t,var) % t = var(1); % This ov...

más de 4 años hace | 1

| aceptada

Respondida
Rotation Matrices - omega phi kappa vs yaw pitch roll
If you have mixed up the order of the rotations you might step through the different combinations of rotations and sign-conventi...

más de 4 años hace | 0

| aceptada

Respondida
How can I perform large sparse matrix multiplication efficiently when one sparse matrix is block diagonal?
Shouldn't straight summation be preferable for the calculations of sums rather than doing it by way of matrix multiplication. Pe...

más de 4 años hace | 0

Respondida
How can I convert deformation data into FRF using FFT?
Simply use fft? That will give you the complex discrete Fourier-transform. If you do: fS = fft(S); % fS will have "DC"-componen...

más de 4 años hace | 0

| aceptada

Respondida
How to differentiate between an index and a value in a function?
Your function J expects a single input as defined. I get: J_0 = J(x_0); to run without problems... HTH

más de 4 años hace | 0

Respondida
Looping through 4 Images that have fixed names
You can for example put the filenames into a cell-array: imFileNames = {'im1.jpg','im2.png','im3.jpeg','im5.tiff'}; Then you c...

más de 4 años hace | 0

| aceptada

Respondida
Why am i getting this error message? "Array indices must be positive integers or logical values."
In matlab (and most other programming-languages) you will have to write out the multiplication-operator (* for matrix multiplica...

más de 4 años hace | 1

| aceptada

Cargar más