Read data from a file
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am having trouble with a Cody Coursework problem. It reads:
'You are given a text file called "Random_Data.txt". The very first line of the file contains only 1 number. This number indicates how many vectors are stored in this file. Every vector in this file is 1 x 5. Write a script that will add up all of the vectors in this file and save your answer in a variable called "Total".'
It must be a script and not a function. I have tried fscanf, but am not sure how to use it.
Thanks!
1 comentario
Respuestas (0)
Ver también
Categorías
Más información sobre Other Formats 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!