Respondida
Trouble using fsolve with two non-linear equations and 3 parameter
You need to make the function eql_coef depend on the coefficients a and d, something like this: function F = eql_coef(a_d,K_H2O...

alrededor de 6 años hace | 0

Respondida
Error when fitting a sum of 2D gaussians: unable to vary standard deviation.
You'll get my untested argument: Your free-widths parameters model include i and j and they might both be interpreted as (-1)^(1...

alrededor de 6 años hace | 0

| aceptada

Respondida
ODE solver with variable derivative
It is rather easy once you've wrapped your head around it: function dx = forcefunction(t,x_current,Pars4function) % Example wi...

alrededor de 6 años hace | 0

| aceptada

Respondida
Hi ,Can anyone help me to find the right code for Throwing a ball
Check the values of t... HTH

alrededor de 6 años hace | 0

Respondida
What is the algorithm used by del2 at the boundaries of a matrix in MATLAB?
Try either of: edit del2 type del2 HTH

alrededor de 6 años hace | 0

| aceptada

Respondida
Continual points on a movie
If you want to plot all the points (x,y) from the first to point i you can do something like this: q = 1; for i1 = 1:numimgs %...

alrededor de 6 años hace | 0

Respondida
How to create 2D Gray image from 3D colored image?
When you add data of non-double type you'll run into all sorts of wrap-around problems. When I work with images I typically cast...

alrededor de 6 años hace | 1

| aceptada

Respondida
How to plot a vector and line normal to vector
If you have a normal-vector to a plane and want to plot 2 vectors in the plane you could do something like this: n = [n_x,n_y,n...

alrededor de 6 años hace | 0

| aceptada

Respondida
I just want to know the reason why the integral function doesn't work this way?
You have to convert the symbolic function to a function-handle that returns a scalar double. You can do this for your example p...

alrededor de 6 años hace | 0

| aceptada

Respondida
interpn griddata difference?
The interpn function requires input data on a plaid grid, i.e. as you would produce with meshgrid, or perhaps ndgrid, while grid...

alrededor de 6 años hace | 0

| aceptada

Respondida
Reduce padding around saved image
If you save your edge-enhanced image with something like print -dpng your-image.png you can increase the fraction of your imag...

alrededor de 6 años hace | 0

Respondida
Solving an ODE in matlab
First thing you should learn/revise/refresh is how to convert higher-order ODEs to sets of coupled first-order ODEs. You have a...

alrededor de 6 años hace | 1

Respondida
Potting Cross-section of an image
First you need to figure out the size of your image - whethre it is an intensity-image or an rgb-image: imsz = size(img); Once...

alrededor de 6 años hace | 0

Respondida
Help solving this 2d pde
You are in luck! Matlab provides you with a (rather hidden) method to give you the 2-D Laplacian in matrix form. Have a look at ...

alrededor de 6 años hace | 0

Respondida
Dynamic spectra for 1000 files
It is unclear what data you have in your files. Is it frquency and power-spectra from spectrum analyzer? If so then you can simp...

alrededor de 6 años hace | 0

| aceptada

Respondida
How to convert video into frames?
Look at the help for VideoReader and especially VideoReader/read, that contains an example of how to extract frames from a video...

alrededor de 6 años hace | 0

Respondida
how to input a matrix into a function HELPPP
It sounds as if your new to matlab. If so welcome. Good advice then is to point you to introduction tutorials etc. If you have ...

alrededor de 6 años hace | 0

| aceptada

Respondida
problems understanding pspectrum function
The help and documentation to the spectrogram function might be a bit more extensive when it comes to the input parameters you a...

alrededor de 6 años hace | 0

| aceptada

Respondida
Plot system of equations
Take it step-by-step. Take pen and paper. Plot a cartesian coordinate system with x1 and x2 at the axes. For 1.6 you have 2 li...

alrededor de 6 años hace | 1

Respondida
How can I get the top and bottom envelopes of a signal?
You go to the file exchange and search for envelope. This gave me 157 hits, and should give you the same number of hits, some of...

alrededor de 6 años hace | 0

Respondida
difficulty in solving integration of a function
Implement the functions x(t,theta), y(t,theta,H) and F(t,H,p,theta) step-by step. Something like this: y = @(t,theta,H) H+50*si...

alrededor de 6 años hace | 0

| aceptada

Respondida
Hi every one , I need help about:
In order to determine this you need at least one additional piece of information. The camera converts light from incidence angle...

alrededor de 6 años hace | 1

| aceptada

Respondida
ode solver , restart from where the simulation ended
Just extract the solution at 1 s from s (i.e. the last row in s). Then simly run the integration from there: t2 = linspace(1,3,...

alrededor de 6 años hace | 0

| aceptada

Respondida
Spring mass system subjected to impulse excitation
You seem to have misunderstood how matlab integrates ODEs. Your ODE-function, impulse, should return the derivatives, and , at...

alrededor de 6 años hace | 0

Respondida
Is It Necessary to Select an Odd Span for Smoothing Data Using Moving Average Filter?
You can check what happens when smooting by averaging over an even number of points. simply use convolution to carry out the ave...

alrededor de 6 años hace | 0

Respondida
dispersion relation normalization ion acoustic
Expand the definitions of and . Then you get a proper expression for the ion-accoustic dispersion relation. To plot it in some ...

alrededor de 6 años hace | 0

Respondida
Convert interpolation function to symbolic
You already get a piecewise polynomial out of pchip. That is a symbolic function - though not on the form expected by the symbol...

alrededor de 6 años hace | 1

| aceptada

Respondida
How to get a value from inside a function?
So we know something about your functions, but not much more than the most general stuff. If you write your function fun_a somet...

alrededor de 6 años hace | 1

| aceptada

Respondida
how to extract variables from ode45
My pedestrian-layman approach to this type of problem is to integrate the ODE, typically with t = t0:dt:tend, then when I have y...

alrededor de 6 años hace | 1

Respondida
Infinite recursion in code to graph second order differential equations
Let's analyse what's happening here. When you call odefcn from the command-line 1, the first thing matlab does is to overwrit...

alrededor de 6 años hace | 0

| aceptada

Cargar más