The Normal Equation and QR My Solutions
2 views (last 30 days)
Show older comments
% discretize t on [-2,2] with h=0.01 (as a column vector)
How can I do that?
6 Comments
Answers (1)
William Rose
on 20 Jun 2022
Edited: William Rose
on 20 Jun 2022
@Doga Ersuz, It looks like your professor has provided a partial script in which you must fill in the right hand side on lines 6, 10, and 12. Hints: Line 6 should create a vector that is 401x1 (rows by columns). @Torsten's hint is the key for line 6. Line 10 should create a 401x5 matrix. Line 12 should create a 5x1 vector. You do not need a for loop for any of these lines, which is one of the nice things about Matlab. Line 15 of the script looks like a mistake, for several reasons.
2 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!