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

etwa 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 0

| akzeptiert

Mehr laden