LFD Book Forum

LFD Book Forum (http://book.caltech.edu/bookforum/index.php)
-   Homework 2 (http://book.caltech.edu/bookforum/forumdisplay.php?f=131)
-   -   FYI: Matlab/Octave users... (http://book.caltech.edu/bookforum/showthread.php?t=879)

samirbajaj 07-17-2012 05:00 PM

FYI: Matlab/Octave users...
 
If you're using Matlab or Octave for the Linear Regression exercises, you may already know that it offers a built-in function to compute the pseudo-inverse of a matrix (the "X dagger" in the lectures).

Type 'help pinv' for more information.

Thanks.

-Samir

dvs79 07-19-2012 07:14 AM

Re: FYI: Matlab/Octave users...
 
Thanks, samirbajaj.

I don't know if there's any significant saving of computing time, using pinv(x) instead of inv(x'*x)*x', but definitely pinv looks nicer :)


All times are GMT -7. The time now is 01:09 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.