Feeds
質問
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
8年弱 前 | 1 件の回答 | 0
1
回答質問
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;...
8年以上 前 | 0 件の回答 | 0
0
回答質問
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...
8年以上 前 | 0 件の回答 | 0
0
回答回答済み
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, ...
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, ...
約9年 前 | 0
質問
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...
約9年 前 | 2 件の回答 | 0
2
回答質問
Can anyone help me with this error please? '' In an assignment A(I) = B, the number of elements in B and I must be the same. Error in RunFib (line 21) JTime(j) = integral(f,0,t(1,j),'Waypoints',t)./ t(1,j); ''
My code is : function RunFib x0=[12 5]; b = 3 ; tspan = 0 : 0.001 : 10 ; t0 =tspan(1); ...
約9年 前 | 1 件の回答 | 0
1
回答質問
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...
約9年 前 | 4 件の回答 | 0
4
回答質問
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. ...
9年以上 前 | 1 件の回答 | 0
1
回答質問
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...
9年以上 前 | 1 件の回答 | 0
1
回答質問
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...
9年以上 前 | 1 件の回答 | 0
1
回答質問
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 ...
9年以上 前 | 2 件の回答 | 1
2
回答質問
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....
9年以上 前 | 1 件の回答 | 0
1
回答質問
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 ...
10年弱 前 | 1 件の回答 | 0
1
回答質問
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...
10年弱 前 | 1 件の回答 | 0
1
回答質問
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);...
10年弱 前 | 0 件の回答 | 0
0
回答質問
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]=...
10年弱 前 | 1 件の回答 | 0
1
回答質問
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...
10年弱 前 | 0 件の回答 | 0
0
回答質問
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 ...
10年弱 前 | 0 件の回答 | 0
0
回答質問
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=...
約10年 前 | 0 件の回答 | 0
0
回答質問
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...
約10年 前 | 1 件の回答 | 0
1
回答質問
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...
約10年 前 | 0 件の回答 | 0
0
回答質問
How could I check my solution if I am doing a definite integration please?? I mean,since a definite integral is the limit of a sum so could I write a code using sum to check my results??
integral(f(x),a,b)=sum(f(xi),1,N)?
約10年 前 | 2 件の回答 | 0
2
回答質問
I am plotting the logistic growth model using ode45,But I am confused because I am getting oscillation while I should get a constant line so do you think there is another routine could I use it or I need to change something to get the right plot??
The model is : dxdt=N0*x*(1-x/k) What I am doing is : tspan=0:0.001:100; x0=0.1; [t,x]=ode45('funname',tspan,x0...
約10年 前 | 1 件の回答 | 0
1
回答質問
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
約10年 前 | 1 件の回答 | 0
1
回答質問
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]; ...
約10年 前 | 1 件の回答 | 0
1
回答質問
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...
約10年 前 | 0 件の回答 | 0
0
回答質問
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...
約10年 前 | 2 件の回答 | 0
2
回答質問
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...
10年以上 前 | 1 件の回答 | 0
1
回答質問
Trying to plot fft,,Please help
My code is : function RunOsciliation5814 % Solving and ploting the Logistic model with an extra forcing parameter % dxd...
10年以上 前 | 1 件の回答 | 0
1
回答質問
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...
10年以上 前 | 1 件の回答 | 0