[General boards] [Winter 2023 courses] [Fall 2022 courses] [Summer 2022 courses] [Older or newer terms]

A2 Q1(a) code format & Q1(b) explanation

As there are many requirements for Q1(a), and there are a lot of plots, is it ok to comment each part of the code in the final .m file? Or should I create different .m files for different problems.

Also, for Q1(b), if explanation is not explicitly required, can I skip the explanation? For example, do I need to explain "What can you say about the permutation matrix P ".
And for this question “What are the lower, upper and total bandwidths of U for any n? Explain. What are the lower, upper and total bandwidths of L for any n?”, can I assume that I don’t need to explain the bandwidths of L?

Regarding commenting a part of the code.
In my code, I have an if-then-endif statement for n == 4,
within the for loop of n’s. I don’t need commenting.
I save all solution vectors for all n’s in a matrix,
and this allows me to do all plots after the loop of n’s.
I don’t really see where you need the commenting or the different .m files.

Regarding explanations, please give as many details as you can.
It may not be a full explanation, but some related comments can be made for all questions asked.

  [General boards] [Winter 2023 courses] [Fall 2022 courses] [Summer 2022 courses] [Older or newer terms]