Community Profile

photo

Madison Goodwin


2018 이후 활성

Statistics

Content Feed

보기 기준

질문


How to I change the time step in the following loop, so the new time is for the next line of code beign read?
So I have this data that is a three column vector, which has 30 rows. The data is in the columns: volts, counts, time. The time ...

약 4년 전 | 답변 수: 1 | 0

1

답변

질문


Why isn't my loop working?
fid = uigetfile('*.*'); fid = fopen(fid); deltat = 0.5; n = 1; while fgetl(fid)~= -1 line = fgetl(fid); line = sscanf(li...

약 4년 전 | 답변 수: 2 | 0

2

답변

질문


How to create a loop for going through lines??
fileID = uigetfile(); data = fopen(fileID); line = fgetl(data); line = sscanf(line, '%f V, %i counts, %i ms'); vout = line...

약 4년 전 | 답변 수: 1 | 0

1

답변

질문


Loop for classifying variables is not working??????
if x(1) > 31.5 && x(1) < 36.5 if x(2) >= 60 if x(3) >= 2 disp('Successful Kick has been...

약 4년 전 | 답변 수: 1 | 0

1

답변

질문


If I want to have x as a 3 element vector say [2,3,2], how to I write a loop to iterate over each value in the array for x?
n = n + 1; t(n+1) = t(n) + deltat; %x(t+deltat) = x(t) + v(t).*deltat x(n+1) = x(n) + v(n).*deltat; %a(t) = agravity + f...

약 4년 전 | 답변 수: 1 | 0

1

답변

질문


My code keeps coming up with "Index Exceeds Array Bounds" help?
n = 0; t = 0; deltat = 0.1; m = 0.44; Cd = 0.05; p = 1.29; Ra = 0.135; %Find b using the rearranged formula...

약 4년 전 | 답변 수: 2 | 0

2

답변