[心得] Note from the TA of Signals and Systems
Hi, dear students:
I jsut completed the grading of your homework 1 submissions. In this process
I meet many difficulties. Because I made several similar mistakes in the
past and I do not want you to make them again in submitting homework 2,
I write this short note here.
First, your report is much more important than the code. No matter how
hard you work, if the reviewer cannot see the clear representation and
conclusion in your report, he/she would feel frustrated and make his/her
own judgment by mood or by other random factors. For example, if you just copy
and paste your codes and images on the report, because you do not explicitly
give the answer to any question, I'd fairly guess that you did not solve
any problem. The code and the report should be complementary and you
should put the results generated by the program (with proper descriptions)
and your conclusion in the report.
Second, I also encourage you to write the report in English. Your future
achievement in the academic circle or in industry will strongly depend
on your English writing skill. A homework report is a good starting point
to learn the English writing.
Third, please do NOT submit your report as the Word file. Word format is
not a proper format for document publication. What you see may be different
to what others see due to the version mismatches. Please try to convert it
to a PDF file, or even a simple txt file. If you do not have Adobe Acrobat
professional, a free service can be found at http://createpdf.adobe.com/ .
Also, the Matlab fig format is not public, so please save your images in
PNG or JPEF formats (I prefer the former one).
Because these suggestions are given after the submission, I will try my best
to grade your submissions purely on the correctness of the answers, and
check the codes if I cannot find the answers in the report. However,
I hope you can learn something from this note and make a better submission
in the next homework assignment.
Best regards,
T.A., Chia-Kai Liang
P.S:
Below are some functions I usually used in my Matlab program. Hope they will
be useful.
1. print( filename, '-dpng', '-r300');
% Print your current image as a png file (filename.png), 300 dpi resolution
% Please use this instead of printScreen
% PNG is a lossless image compression format, and usually has higher quality
% then JPG
2. eval
% Example:
for counter = 1:1:numSystem
systemName = sprintf('system%02d', systemId(counter));
command = sprintf('y0 = %s(x, [nMin nMax]);', systemName);
eval(command);
end
% In this way, you can use a for loop to change the commands without
% writing many similar codes
3. keyboard
% This line will pause the function in the middle, and you can check
% your variable inside the function for debugging.
% Type 'dbcont' to leave the debug mode.
4. disp(string)
% Print something on the console so you know the progress of your program.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.41.56
推
04/15 00:50, , 1F
04/15 00:50, 1F
推
04/15 00:54, , 2F
04/15 00:54, 2F
推
04/15 00:55, , 3F
04/15 00:55, 3F
推
04/15 00:59, , 4F
04/15 00:59, 4F
推
04/15 01:57, , 5F
04/15 01:57, 5F
→
04/15 01:57, , 6F
04/15 01:57, 6F
推
04/15 03:18, , 7F
04/15 03:18, 7F
推
04/15 06:38, , 8F
04/15 06:38, 8F
推
04/15 09:49, , 9F
04/15 09:49, 9F
→
04/15 09:49, , 10F
04/15 09:49, 10F
→
04/15 09:50, , 11F
04/15 09:50, 11F
→
04/15 09:50, , 12F
04/15 09:50, 12F
→
04/15 10:16, , 13F
04/15 10:16, 13F
→
04/15 10:17, , 14F
04/15 10:17, 14F
推
04/15 15:04, , 15F
04/15 15:04, 15F
→
04/15 15:05, , 16F
04/15 15:05, 16F
推
04/15 20:30, , 17F
04/15 20:30, 17F
推
04/17 20:36, , 18F
04/17 20:36, 18F