Community Profile # Zhukun Wang

##### Last seen: Today
13 total contributions since 2021

Contributions in
View by

Question

lhsdeign for parameters with different value intervals
gNavec=linspace(100,130); gKvec=linspace(12,50); glvec=linspace(0.1,2); VNavec=linspace(55,120); VKvec=linspace(-30,-5); Vl...

12 days ago | 0 answers | 0

### 0

answers

Question

How to use the function lhsdesign in hypercube parameter search
function Math462HW4Q3code X=lhsdesign(7,5,xvector); tspan=[1:1:100]; Cm=1; Vm=1; m=1; n=1; h=1; gNa=100:130; gK=12:50; ...

13 days ago | 0 answers | 0

### 0

answers

Question

Question on distinguish lines in graph
function Math462HW4Q4partbb V=1; k01=1/3; k02=1/2; k21=2/3; k12=3/2; tspan=1:1:10; x1=0; x2=0; y=x1/V; vector=[x1,x2,y...

15 days ago | 1 answer | 0

### 1

answer

Question

Matlab ODE45 function debugging
%Math462 HW3 Q5b fake_data_vals = [86; 86; 117; 120; 130; 135; 169; 179; 224; 230; 242; 234; 244; 245; 270; 27...

22 days ago | 1 answer | 0

### 1

answer

Question

how to make a for loop in an ODE 45
data = [0 86; 1 86; 2 117; 6 120; 7 130; 8 135; 13 169; 16 179; 23 224; 27 230; 29 242; 36 234; 41 244; 50 245; 59 270; 63 271; ...

25 days ago | 1 answer | 0

### 1

answer

Question

Gauss-Seidel Method in Matlab
function [x,info,relres] = myGaussSeidel(A,b,MaxIter,TOL) %Gaussseidel Method n=2; x0=zeros(n,1); x=zeros(n,1); k=1; rel...

26 days ago | 1 answer | 0

### 1

answer

Question

Jacobi Method in calculating solution, number of iterations, and relative residue
N=50; % 50; A=gallery('poisson',N); n=size(A,1); xs=ones(n,1); b=A*xs(:); MaxIter=10*n; TOL=1.e-4; t=cputime; [x,info...

27 days ago | 1 answer | 0

### 1

answer

Question

Question on implementing Jacobi Method
function [x,info,relres] = myJacobi(A,b,MaxIter,TOL) %Jacobi Method A=zeros(n,n); %x0=zeros(n,1); x=zeros(n,1); b=zeros...

27 days ago | 1 answer | 0

### 1

answer

Question

Create a matrix with non zero entries on the diagonal and subdiagonal and zero elsewhere
I am confused on how to generate a 4 by 4 matrix which has ones on the diagonal and zeroes on the lower subdiagonal right beneat...

1 month ago | 1 answer | 0

### 1

answer

Question

Question about ODE45
function Math462hw2Q5partcmodel kG=0.002; kAV=0.004; k0=0.3; k12=1; k21=0.7; T=1500; tspan=0:1:168; %We have to do this f...

2 months ago | 1 answer | 0

### 1

answer

Question

Question on how to use Forward Euler to simulate double pendulum
m1=1; m2=1; l1=1; l2=1; g=9.8; dt=0.1; theta1=[pi/8]; theta2=[pi/8]; theta1dot=; theta2dot=; %We can define th...

2 months ago | 0 answers | 0

### 0

answers

Question

How to generate double pendulum using ode 45
function Math462hw2Q3parta m1=1; m2=1; l1=1; l2=1; g=9.8; tspan=0:1:100; %theta1initial=pi/8; %theta2initial=pi/8; the...

2 months ago | 1 answer | 0

### 1

answer

Question

How to use ODE 45 to generate a SIR model
function Math462hw2Q6parte alpha=1.99; beta=1; gamma=1/7; S=0.99; I=0.01; R=0.1; %tstart=0; %tend=100; y=[S,I,R]; tspa...

2 months ago | 1 answer | 0

answer