photo

Madison Goodwin


Active since 2018

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


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

6 years ago | 1 answer | 0

1

answer

Question


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

6 years ago | 1 answer | 0

1

answer

Question


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

6 years ago | 1 answer | 0

1

answer

Question


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

6 years ago | 1 answer | 0

1

answer

Question


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

6 years ago | 1 answer | 0

1

answer

Question


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

6 years ago | 1 answer | 0

1

answer