Importing a text file and then using "counting" approach
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
KayLynn
el 10 de Mzo. de 2014
Comentada: Sean de Wolski
el 10 de Mzo. de 2014
I am trying to import a text file into matlab. I tried using the following: A=xlsread ('temperature. txt')
Once I am able to import the data, I want to observe several different time intervals using a for loop (is this a counting approach) to record the frequency of the readings. I am given 7 different time intervals:
0 < t< 30
30<t<80
80<t<130
130<t<150
150<t<180
180<t<200
t>200
I am unsure how to put a less than or equal to sign in correct format ( basically I am trying to say that t is greater than or equal to zero but less than or equal to 30).
Do i have to write a for loop for each time point or is there a way to include all time intervale in one for loop to determine the frequency.
0 comentarios
Respuesta aceptada
Sean de Wolski
el 10 de Mzo. de 2014
Editada: Sean de Wolski
el 10 de Mzo. de 2014
2 comentarios
Sean de Wolski
el 10 de Mzo. de 2014
Use the import tool. From the Home Tab select the fourth button in "Import Data". Then make any adjustment you need to inside of this tool.
Más respuestas (0)
Ver también
Categorías
Más información sobre Text Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!