The Normal Equation and QR My Solutions
2 次查看(过去 30 天)
显示 更早的评论
% discretize t on [-2,2] with h=0.01 (as a column vector)
How can I do that?
6 个评论
回答(1 个)
William Rose
2022-6-20
编辑:William Rose
2022-6-20
@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 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!