Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Putting together a Structure Array

1 visualización (últimos 30 días)
James
James el 7 de Oct. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello, please read question a and b. And view the attached notepad document. Ill show you what ive done :)
***************************************
Marks=[21,23,34,29'];
TotalMarks=sum(Marks);
StudentRecord.Student_number='1111';
StudentRecord.Student_name='Geoff';
StudentRecord.Marks='21,23,34,29';
StudentRecord.Total_marks='107';
******************************
I think im on the right track, but how can i efficiently import data into the array? How can it read the data?
  1 comentario
Geoff Hayes
Geoff Hayes el 7 de Oct. de 2014
James - start with fopen, fgetl, and fclose which will allow you to open the file, read from the file (line by line), and close the file. The examples should be sufficient to help you with your assignment.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by