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

quasi 9 anni fa | 1

| accettato

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

quasi 9 anni fa | 1

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

quasi 9 anni fa | 0

| accettato

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 1

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

quasi 9 anni fa | 1

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 1

Risposto
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))

quasi 9 anni fa | 0

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

quasi 9 anni fa | 1

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 1

| accettato

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

quasi 9 anni fa | 1

| accettato

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

quasi 9 anni fa | 0

| accettato

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

quasi 9 anni fa | 0

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

quasi 9 anni fa | 0

Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

Risolto


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

quasi 9 anni fa

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

circa 9 anni fa | 0

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

oltre 9 anni fa | 8

Risolto


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

oltre 9 anni fa

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

Carica altro