photo

BAILEY MCMASTER


Last seen: ongeveer een jaar ago Active since 2023

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


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

meer dan een jaar ago | 2 answers | 0

2

answers

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 2 answers | 0

2

answers

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 1

1

answer

Question


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

meer dan een jaar ago | 0 answers | 0

0

answers

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer

Question


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

meer dan een jaar ago | 1 answer | 0

1

answer