Community Profile

photo

Avan Al-Saffar


The University of Sheffield

Active since 2014

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

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

5 years ago | 1 answer | 0

1

answer

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 0 answers | 0

0

answers

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

6 years ago | 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...

6 years ago | 2 answers | 0

2

answers

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

6 years ago | 4 answers | 0

4

answers

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

6 years ago | 1 answer | 0

1

answer

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 2 answers | 0

2

answers

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 1 answer | 0

1

answer

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

7 years ago | 0 answers | 0

0

answers

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

7 years ago | 2 answers | 0

2

answers

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

7 years ago | 1 answer | 0

1

answer

Question


Trying to plot fft,,Please help
My code is : function RunOsciliation5814 % Solving and ploting the Logistic model with an extra forcing parameter % dxd...

8 years ago | 1 answer | 0

1

answer

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

8 years ago | 1 answer | 0

1

answer

Load more