回答済み
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. ...

8年以上 前 | 1

| 採用済み

回答済み
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...

8年以上 前 | 1

回答済み
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...

8年以上 前 | 0

| 採用済み

回答済み
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 + ...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 1

回答済み
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 ...

8年以上 前 | 1

回答済み
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: ...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 1

回答済み
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))

8年以上 前 | 0

回答済み
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 ...

8年以上 前 | 1

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 1

| 採用済み

回答済み
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,...

8年以上 前 | 1

| 採用済み

回答済み
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 ...

8年以上 前 | 0

| 採用済み

回答済み
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...

8年以上 前 | 0

回答済み
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...

8年以上 前 | 0

解決済み


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

8年以上 前

解決済み


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

8年以上 前

解決済み


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

8年以上 前

解決済み


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

8年以上 前

解決済み


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

8年以上 前

回答済み
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...

9年弱 前 | 0

回答済み
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...

約9年 前 | 8

解決済み


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

約9年 前

回答済み
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 ...

約9年 前 | 0

回答済み
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...

約9年 前 | 0

回答済み
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 ...

約9年 前 | 0

回答済み
Index exceeds matrix dimensions.
It appears that one of your arrays has too few elements. On the editor toolstrip, select Breakpoints -> Stop on errors ...

9年以上 前 | 0

さらに読み込む