Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Hi ,Can anyone help me to find the right code for Throwing a ball
Check the values of t... HTH

plus de 6 ans il y a | 0

Réponse apportée
What is the algorithm used by del2 at the boundaries of a matrix in MATLAB?
Try either of: edit del2 type del2 HTH

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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 %...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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,...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Charger plus