Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Putting together a Structure Array

조회 수: 2 (최근 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