Réponse apportée
I'm looking for getting the matlab codes for soving nonlinear differential equations? These equations are from a research paper on HIV AIDS.
Matlab has several functions for integrating systems of differential equation. Type doc ode45 for more information. ...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
from acceleration to velocity: problem of integration
I have followed this question, hoping that somebody with better signal processing skills that myself would come up with an elega...

plus de 8 ans il y a | 1

Réponse apportée
I am trying to solve a non linear simultaneous equation using NR method.The program does not converges.I know the exact solution and if the initial value is set to exact value then the program converges in one step.
First: Your script parameter_function_matrix.m is a bit confusing, with your exceedingly long expressions. It would be easier t...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to use ODE solver for a coupled second order ODE?
Convert to four first-order ODEs in x, u,y,v, where u = x', v = y'. The equations are then: A*u' + B*v' = -C*v - D^y + ...

plus de 8 ans il y a | 0

Réponse apportée
Extracting column and specific sorted row data from a large text file
fid = fopen('FILE_MATLAB.txt'); Cell_number = []; Slope_Angle = []; Z = []; P = []; for i = 1:4 % Skip heade...

plus de 8 ans il y a | 1

Réponse apportée
Create the objective function for fmincon solver using for loop
You are right that the problem lies with the line FUN = @(x) Afun(x) + FUN(x); This defines a recursive function, where ...

plus de 8 ans il y a | 1

Réponse apportée
I want to seperate the data 02/12/99Z using textscan. Can you please help me?.
I usually read each line as a string, giving me a cell array of lines. I then parse each line using sscanf. In your case: ...

plus de 8 ans il y a | 0

Réponse apportée
How to solve nonlinear problem of magnetic bearing shaft system ?
Your code will not work in an ODE solver because you reset the input value x on line 2. Get rid of that and make sure all lines...

plus de 8 ans il y a | 0

Réponse apportée
I am using fsolve and receiving errors
It seems that you try to solve an overdetermined system. You have six equations in five unknowns. You should re-examine your pr...

plus de 8 ans il y a | 0

Réponse apportée
Scan through a txt-file and find certain strings and replace certain lines by replacing strings
fid = fopen('in.txt'); lines = textscan(fid,'%s','delimiter','\n'); fclose(fid); lines = lines{1}; relevant = f...

plus de 8 ans il y a | 1

Réponse apportée
Why is my fprintf value doesent come out as I wanted?
Try fprintf('%-4.0f | %f | %f | %f | %f | %f | \n ',ReT(i),FCT(i,1:5))

plus de 8 ans il y a | 0

Réponse apportée
How to get index of each points in data?
>> [~,ix] = sort(A(:,4)) ix = 2 1 4 3 >> sort_A = A(ix,:) sort_A = 999 999 ...

plus de 8 ans il y a | 1

Réponse apportée
How can I calculate the area of latitude and longitude?
areaint from the Mapping Toolbox should do the trick. It you do not have access to that toolbox you could use polyarea, afte...

plus de 8 ans il y a | 0

Réponse apportée
Closest value in an array, and how to correctly look it up afterwards
It is not entirely clear to me what you are trying to do. My best guess is that, for each element y(l) , you want to find the el...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How do i find the integral of a function
X = @(t) a1+k1*sin(w1*t)+(a2+k2*sin(w2*t)+ 1/(2*pi*sd)*exp(-(t-mu).^2/(2*sd^2)); t = linspace(0,30);plot(t,X(t)) plot(t,...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How do I integrate properly on matlab? My answer always ends up being 0.
We are normally restrictive when it comes to homework help, but it seems that your algorithm is OK and your problems are purely ...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How do I fit a PDF to a histogram?
If you have access to the curve fitting toolbox (I don't) you can probably use fit. If not, the following example illustrates ho...

plus de 8 ans il y a | 0

Réponse apportée
for matlab 2013 is there a function that compares between three values within tolerance?
There is no such function. The following somewhat involved construct will do the trick: x = [.2 .15 0.3]; tol = 0.05+1...

plus de 8 ans il y a | 0

A résolu


Acid and water
⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...

plus de 8 ans il y a

A résolu


Is this a valid Tic Tac Toe State?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

plus de 8 ans il y a

A résolu


Birthday cake
It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...

plus de 8 ans il y a

A résolu


Number of Even Elements in Fibonacci Sequence
Find how many even fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

plus de 8 ans il y a

A résolu


The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

plus de 8 ans il y a

Réponse apportée
i need help on what is wrong in these codes for performing loop
First, your code is hard to read and needs extensive editing if I copy it to the Matlab editor. Add a blank line before the cod...

plus de 8 ans il y a | 0

Réponse apportée
Curve Fitting LogLog Plot
You should curve fit the logarithms: x = [ 0.5000 1.0000 2.0000 5.0000 10.0000 20.0000 50.0000 100.0000]; y = [ 0.8447 1.4...

presque 9 ans il y a | 8

A résolu


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

presque 9 ans il y a

Réponse apportée
how can i find row position for minimum value that changes every cycle. each cycle has 100 data points( 100*1 matrix).
You could arrange your 6000 data cycles in a 100 by 6000 matrix and use the min function. Example, using only 10 cycles: X ...

presque 9 ans il y a | 0

Réponse apportée
Below I have stated both my 'original code' and its corresponding 'vectorized code' for the series approximation of Error function, but I'm getting wrong results by evaluating my 'vectorized code'. Please help.
The best way to debug a program with large arrays is to reduce the size of the problem so that arrays are small enough to easily...

presque 9 ans il y a | 0

Réponse apportée
How to fill the area between a group of lines
You need to stack your x and y arrays into new arrays so that they form the circumference of the area in a consistent direction ...

presque 9 ans il y a | 0

Réponse apportée
Index exceeds matrix dimensions.
It appears that one of your arrays has too few elements. On the editor toolstrip, select Breakpoints -> Stop on errors ...

environ 9 ans il y a | 0

Charger plus