답변 있음
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...

대략 6년 전 | 0

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

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

6년 초과 전 | 0

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

6년 초과 전 | 0

| 수락됨

답변 있음
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 %...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 1

답변 있음
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...

6년 초과 전 | 0

답변 있음
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 ...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

답변 있음
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 ...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 1

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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,...

6년 초과 전 | 0

| 수락됨

답변 있음
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...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 0

답변 있음
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 ...

6년 초과 전 | 0

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 1

| 수락됨

답변 있음
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...

6년 초과 전 | 1

답변 있음
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...

6년 초과 전 | 0

| 수락됨

더 보기