Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Putting together a Structure Array

1 回表示 (過去 30 日間)
James
James 2014 年 10 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Geoff Hayes
Geoff Hayes 2014 年 10 月 7 日
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.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by