photo

BAILEY MCMASTER


Last seen: circa un anno fa Attivo dal 2023

Followers: 0   Following: 0

Statistica

  • Thankful Level 3

Visualizza badge

Feeds

Visto da

Domanda


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

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


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

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


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

circa un anno fa | 2 risposte | 0

2

risposte

Domanda


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

circa un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 1

1

risposta

Domanda


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

oltre un anno fa | 0 risposte | 0

0

risposte

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta