# Avan Al-Saffar

### The University of Sheffield

Actif depuis 2014

Followers: 0   Following: 0

#### Feeds

Afficher par

Question

How to plot a mean value as a function of specific value pairs ?
How can I plot the following data in a nice plot? a=[ [1 2], [2 3], [4 5] ]; mean= [ 5.43, 6.78, 5.66]; Thank you

plus de 7 ans il y a | 1 réponse | 0

### 1

réponse

Question

How to find fft for a system of two variables? Can you check my code if it is right, please?
function aaa b= 3; [t,x]=ode45(@DoubleSpeciesSystem, 0:0.01:10000 , [30 6] , [] , b); n = length(x); h=0.01;...

presque 8 ans il y a | 1 réponse | 0

### 0

réponse

Question

How to find fft for part of my output? I mean after removing the initial transient of my data, I need for only x(4000:5000).
x and t are vectors of 0:0.1:5000; n = length(x); dt = t(end)/(n-1); Fs=1/dt ; NFFT = n ; y=fft(x,N...

environ 8 ans il y a | 1 réponse | 0

### 0

réponse

Réponse apportée
If I have many figures, how can I find a slope for each one and compare between thier slope?
The attached file is my code. I've found a curve fit and gradient but I do not know how to decide which figure is steepest, ...

presque 9 ans il y a | 0

Question

If I have many figures, how can I find a slope for each one and compare between thier slope?
I need to check which plot is steepest? I used polyfit to fit a curve and find a gradient but I do not know how to compare betw...

presque 9 ans il y a | 2 réponses | 0

réponses

### 1

réponse

Question

Could anyone help me with tolerances erroe that I got when I am trying to implement an integration please??
function RunLogisticOscilFisher omega=1; k=10; N0=1; A=1; p0=.1; tspan=(0:0.01:100); % Finding the numeri...

presque 9 ans il y a | 4 réponses | 0

### 4

réponses

Question

ksdensity with different colors
I need to plot PDF using '' ksdensity(x) '' for many population at the same figure with different colors for each population. ...

presque 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

How can I shrink the time of getting the results please?
I run the following code for 13 days until I got the results so could anyone advise me if there is any truck that I can use to s...

environ 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

Can anyone help me to sort the following message error?
My code is : function FA21May2015 x0=0.1; omega = 1 ; tspan =(0:0.1:50); x = logisticOscila...

environ 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

Which is faster, a row vector or a column vector? Can anyone answer me please?
I am trying to do some integration so I am defining the output as a matrix, my question is which definition will give me faster ...

environ 9 ans il y a | 2 réponses | 1

### 2

réponses

Question

How to find a probability density function please?
I have the following system : dxdt = A.*x.^2 ; how can I find a PDF for this system for different values of A and t = 0:0....

environ 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

Can anyone help to write a code for plotting the following equation with time please?
x = exp( (-B/omega) * cos(omega * t) ) ... ./ ( (B/A)*(integral(exp( (-B/omega)* cos(omega * t) )))) Where ...

plus de 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

How can I write a code to solve the following system please?
P = ( exp((-./2).*(exp(i.*t) + exp(-i.*t))) )./(integral(exp((-./2).*(exp(i.*t) + exp(-i.*t)))dt)) I can write a code to solv...

plus de 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

How to remove points in time vector when I am getting a blowup Fisher information at those points please?
The code is : function RunlogOscilnumericfishfixedn0omega2 omega=1; N0=1; k = 10; A = 1; p0 = 0.1; t=(0.01:0.1:1000);...

plus de 9 ans il y a | 1 réponse | 0

### 0

réponse

Question

Could anyone help me with this warning please?
This is my code : function RunLogOscilNumeric3 k =10; p0 =0.1; t =(0:0.01:10000); omega = 1; N0 = 1; [t,p]=...

plus de 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

Why the if statement does not work when I am trying to avoid the singularity in my code ??
function RunlogisticOscilnumericalfisherfixedn0omega omega=1; N0=1; k = 10; A = 1; p0 = 0.1...

plus de 9 ans il y a | 1 réponse | 0

### 0

réponse

Question

Could anyone help me with the interp1 please?
I have a system of two equations with two variables,I am using ode45 to solve the system numerically then trying to find Fisher ...

plus de 9 ans il y a | 1 réponse | 0

### 0

réponse

Question

How could I get the histogram corresponding to probability of finding the predator-prey model in specific integer combinations please?
I have the following system : dy0/dt = a*y0 - b*y0*y1 dy1/dt = -c * y1 + e *y0*y1 y0 =12 y1 = 5 a=15 b=2 c=...

plus de 9 ans il y a | 1 réponse | 0

### 0

réponse

Question

How to write a code for finding a definite integral for ( 1/x(t).^2 ) please?
My system is : dx/dt = 2*x 1- I solved numerically using ode45. 2- Depending on the values that I got from ode45, I wan...

plus de 9 ans il y a | 1 réponse | 0

### 1

réponse

Question

The result is not what I want it is completely different ,,so Is there anyone could help me to use another routines to get the result for this code please?
This code what I am doing,, My problem is in plot(4),The result is not what I want it is completely different ,,so Is there anyo...

presque 10 ans il y a | 1 réponse | 0

réponse

### 1

réponse

Question

How to solve this equation S= integrate((1-2*x).^2)./((x-x.^2).^2)) dt
I want to solve this integration for time where t= 0:1

presque 10 ans il y a | 1 réponse | 0

### 1

réponse

Question

How could I plot this function ( I =A* sum( ( (dt.^2)*(B.^2) )/(C.^2) ) with time please? I am getting just a constant line while I expect to get a curve because it is a function of time.
I am working with this code but it does not give me the result that I expect : function RunFisherfixedb x0=[12 5]; ...

presque 10 ans il y a | 1 réponse | 0

### 1

réponse

Question

Could anyone check my ode45() code please?
*NB* Moved the following from title to body but have no idea what the real question is...dpb Because nu represents the mea...

presque 10 ans il y a | 1 réponse | 0

### 0

réponse

Question

I am trying to find the summation!!
My equation is I = sum(delta t) delta t = t(n+1) - t(n) n=200; could anyone help me to understand what is...

presque 10 ans il y a | 2 réponses | 0

### 2

réponses

Question

I am trying to plot this function dpdt = N0*sin(omega*t)*p*(1-p/K); but I got an error, Please could anyonre help me to solve this error?
The code that I am using to plot the previous logistic growth model is : function RunLogistic [t,x]=ode45(@logistic42,[0 2...

presque 10 ans il y a | 1 réponse | 0

### 1

réponse

Question

My code is : function RunOsciliation5814 % Solving and ploting the Logistic model with an extra forcing parameter % dxd...

presque 10 ans il y a | 1 réponse | 0

### 1

réponse

Question

Trying to plot 3-d
My equation is dxdt=N0*sin(omega*t)*x*(1-x/K); N0=1:1:10; omega=1:1:10; I want to plot 3-D for N0,omega,Xmax and Xmean...

presque 10 ans il y a | 1 réponse | 0

réponse