photo

BAILEY MCMASTER


Last seen: 대략 1년 전 2023년부터 활동

Followers: 0   Following: 0

통계학

  • Thankful Level 3

배지 보기

Feeds

보기 기준

질문


My graph is not picking up my time increments, its suppose to have a nice curve, but its coming out as a straight line.
clear Ts=30; % ms Td=60; % ms Chs=.001; % L/mmhg Chd=.015; % L/mmhg N=800; % number of elements t=0:1:800; % all time valu...

대략 1년 전 | 답변 수: 2 | 0

2

답변

질문


My graph isn't picking up my time increments. How can I fix it? My loop generates my x values, but I'm trying to graph them over time.
% Ch=(Chd-Chs)e^(-t/ts)+Chs equation from C.3 clear Ts=30; % ms Td=60; % ms Chs=.001; % L/mmhg Chd=.015; % L/mmhg N=800; %...

대략 1년 전 | 답변 수: 1 | 0

1

답변

질문


I'm trying to make a for loop that has if statments that use the increments from my i to run them. How can I make this work, it won't run.
Ts=30; % ms Td=60; % ms sc=10^-3; % conversion from ms to s Chs=.001; % L/mmhg Chd=.015; % L/mmhg dt=.1; % incrment of time...

대략 1년 전 | 답변 수: 2 | 0

2

답변

질문


I'm trying to vectorize my for loop, what would be the best method?
clear all Linearparams=[3.5,1.0]; nonLinearParams=[5]; timevals=[0:.01:4.99]; n=length(timevals) for i=1:n yvals(i)=Li...

대략 1년 전 | 답변 수: 1 | 0

1

답변

질문


Please help, I'm trying to make a function but I keep getting major errors and I dont know why.
function [y,x]=position(N,IS) for i=1:N if IS(i)==1 % checks if ligand is active and give new position dx...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How can I make this a callable function?
function [i,IS]=firststateupdate(N,P_ub,w1) for i=1:N w1=randi([0,1],1); if IS(i)==2 && w1<P_ub ...

1년 초과 전 | 답변 수: 1 | 1

1

답변

질문


I"m having problems making this a callable function, How can I fix it,
function [dx,dy,y,x,x_prv,y_prv]=position(N,L,x,y) for i=1:N if IS(i)==1 % checks if ligand is active and give new p...

1년 초과 전 | 답변 수: 0 | 0

0

답변

질문


How do i make this section of code a callable function, I keep getting errors
function [dx,dy,y,x,state]=position(N,i) for i=1:N if state(i)==1 % checks if ligand is active and give new position...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How can I add arrows to each integrin particle in my plot that is moving.
N=10; % number of integrins L=100; % size of the domain 100nm D=.01; % diffusion coefficient dt=1; % time step F=randi([1, 1...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How can I add arrows onto the particles in my movie that indicate there movement with my code and how can I calculate the square displacement of each particle.
N=10; % number of integrins L=100; % size of the domain 100nm D=.01; % diffusion coefficient dt=1; % time step F=randi([1, 1...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How can I create a periodic boundary that moves the integrin in my code to the opposite side of my domain when it crosses the boundary
N=10; % number of integrins L=100; % size of the domain 100nm D=.01; % diffusion coefficient dt=1; % time step F=randi([1, 1...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Hi, I'm trying to make a boundry that reflects the integrin to the opposite side of where the boundary touches, for instance it hits the top and ends up on the bottom.
N=10; % number of integrins L=100; % size of the domain 100nm D=.01; % diffusion coefficient dt=1; % time step F=randi([1, 1...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I'm getting a matrix error of inconsistently on line 45, any tips how I can fix it.
N=10; L=10; D=.01; dt=.01; k_on=1; k_off=.1; F=1; tmax=100; x=L*rand(N,1); y=L*rand(N,1); state=zeros(N,1); figur...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I keep getting this matrix error when I run my code, any tips how I can fix it, its line 45.
N=10; L=10; D=.01; dt=.01; k_on=1; k_off=.1; F=1; tmax=100; x=L*rand(N,1); y=L*rand(N,1); state=zeros(N,1); figur...

1년 초과 전 | 답변 수: 1 | 0

1

답변