photo

Zhang lu


cau

Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
How to write the proper @ODEFUN for ode45?
the element arrangement cant be changed . ODE has strict rule. f(1)=dx/dt=u, f(1) must be first-order differential equation ...

11 years ago | 0

Answered
Calculation error for floor function floor(1.4/0.025)
Hi floor(1.4e3/0.025e3)

11 years ago | 1

Answered
Solve two species coupled linear reaction-functional diffusion
you can convert the pde function as follow d2u/dx2=[a5*ln(1/(du/dt+a1*u+1/2)-1)-a2*ln(1/(dv/dt+a1*u+1/2)-1)]/(a2*a6-a3*a5) ...

11 years ago | 0

Answered
index exceed matrix dimension error
randperm(30) produces a vector ,including 1 to 30. But your matrix's column is 15 . So,it is possible that 'Random_new_...

11 years ago | 0

Answered
How to include nonexplicit constants in the solve function?
Hi b=solve('b-65','b'); b=subs(b) eq1=['-es-2.69*Ta+' num2str(b)]; eq2='-es+6.11*exp((2.492E6/...

11 years ago | 0

| accepted

Answered
Solve matrix in the equation
syms b G G1 M1 M2 P1 P2 Out=solve('G*(P1*exp(-b*M1/P1)/( P1*exp(-b*M1/P1)+ P2*exp(-b*M2/P2)))-G1', b) G = [7340, 7194]; ...

11 years ago | 0

Answered
How do I exclude zeros from a matrix?
You just show an simple matrix , which has the same zeros in each row. So,if you matirx is this case, the code as first one. e...

11 years ago | 0

Answered
help with the formatting of a stacked bar chart
You can add another bar of condition code as follow . The fourth data of your vectors are almost identical, you can use 'zoom i...

11 years ago | 0

Answered
How to generate k unique random numbers from 1 to n in matlab 2009
a=randperm(n); b=a(1:k)

11 years ago | 1

Answered
The usage of SOLVE or FSOLVE for equation in string format
u can define variable x but not b1 and b2 before the loop , the code as follow clc; clear all; x=[15.5, 39.8, 21.3, 18....

11 years ago | 0

Answered
solving 2 ODE's - problem with ode45 initial conditions
x0 and y0 must be one input , can't be a vector.

11 years ago | 0

Answered
How can I solve the equation quickly?
try 'fsolve' fplot('(47.457/b1)-(76.3792)+(3.0499)-(((2.7272^b1)*(1.0033)+(1.59^b1)*(0.46376)+(2.4506^b1)*(0.89632)+(...

11 years ago | 0

| accepted

Answered
ODE45 numel (x) = 1 error
[TOUT,YOUT] = ODE45(ODEFUN,TSPAN,Y0) YO should be a vector to match ode function [t,x]=ode45('Function',[0,20],[1 1])

11 years ago | 0

Answered
Problems with data in uitable
do u mean : data_new=data(:)'

11 years ago | 0

Answered
fsolve or fzero for this system of nonlinear equation
ti = 1.0e+03 *[ 9.0000 3.6000 1.8000 1.2857 0.9000] ; di = [0.0400 0.0800 0.1300 0.1800 0.2300]; x=ti; y=di; a0=[1,1e-3]; f...

11 years ago | 1

| accepted

Answered
Transverse Matrix Matlab code
help ode45

11 years ago | 0

Answered
i am using this program but its not working. please gime me any suggestion,,,
compute_times=length(A)*length(B)*length(C)*length(D)*length(E)*length(F)*length(G)*length(H)*length(I)*length(J)*length(K)*leng...

11 years ago | 0

| accepted