Using SciPy functions in EPD Free - scipy

I am completely new to Enthought and SciPy and the EPD Free support suggested I come here for help.
I just started working through a course on Linear Algebra through MIT's open course website. When looking for a free Matlab substitute I was directed to use SciPy/NumPy and matplotlib as the best alternatives. The SciPy website itself recommended Enthought as the simplest install for Windows.
So now I have EPD Free installed on my system, but when I try to do something simple like sp.sqrt(-1) (which is the first function given as an example on http://docs.scipy.org/doc/scipy/reference/tutorial/basic.html) I get the error "sp is not defined".
So then how do I access the SciPy functions? I am having a hard time finding an EPD guide for beginners, perhaps I chose the wrong tool for introductory linear algebra?
Thank you in all in advance!

You need to import scipy before using it. Add the following at the beginning of your script or interactive session:
import scipy as sp

Related

How can i import the seedSuperpixel modules?

I wanted to implement the SEEDS Superpixel segmentation algorithm in python using opencv but it looks like other than video module no other module has been put up in order to implement it. Please help me know what module needs to be used to import the seeds superpixel segmentation functionalities?
I was having a similar problem to use SEEDS.
At least for my problem, I had to install "opencv-contrib-python" and uninstall "opencv-python" because both are imported the same way (using "import cv2") but only the contrib version allows you to use SEEDS and other segmentation tools. There is more information here https://pypi.org/project/opencv-python/
I don't know if that will work for others, but solved my problem :)
To use SEEDS for Superpixel segmentation analysis, you need to import cv2.
I found this bit of code and was able to replicate results after installing opencv.

Trying to add an add-on with an license that covers it but am being forced to buy it

My university has a total headcount license that covers all major add-ons. I was able to install it, alongside the two add-ons I need (Image Processing Toolbox and Computer Vision System Toolbox) at home with the install wizard.
However, in the lab when I try to add these add-ons to my matlab environment (even when logging in) via the 'Get Add-Ons' option in the menu (Add-On Explorer), I am forced to 'Buy' each toolbox. i.e. I am not offered the option to download it, despite it being covered in my license. Any idea how to get this working/ alternative method?
I should also note, it's not possible to reinstall Matlab as I do not have the permissions required.
For anyone who arrives here after me, just use Matlab Online. Bit of an workaround but it's the only solution I found.
https://matlab.mathworks.com/
This does not exactly answer the question, but nowadays it is not essential to stick to Matlab. Python with OpenCV and Numpy, R are basically free options with no license hassle and lots of support. Plus, you will be able to use your code after graduation :o)

Tool for testing/grading IPython notebook homeworks

I'll be teaching a scientific computing class with IPython notebook in the next term. Both the course content and the homework will be distributed/returned as IPython notebooks.
I remember that about half a year ago, I had stumbled across a tool designed to hand-in homework as IPython notebook. In my recollection, it had some really nice features such as
tracking of returned homework tasks per student
integrated grading system
auto-testing for errors / code compliance
unit-testing of code segments
auto-grading features based on various metrics (e.g. speed of implementation)
Unfortunately, it seem I never saved the link - anyone seen this or any similar tool?
Writing this question actually made me think about the right buzz-words for my web search - et voila "notebook grading system" gives https://github.com/jupyter/nbgrader right at the top (quite in contrast to "ipython notebook homework tool")!
Sorry for the noise...

Installing a Matlab App in MATLAB R2012a

First off I'm not a regular Matlab user, so this might appear as a rather simple question, but how do you install Apps in Matlab R2012a? Is it even possible? I found a link for how to do it in R2012b here, but I can't find any guidelines on how to do it in R2012a.
I have a custom app that was sent to me by a colleague at another research institution, and I think they must have a more recent version of Matlab that us. His instructions were to go to the Apps tab in the tool bar and select Install Apps, but in R2012a, I can only see File, Edit, Debug, Parrallel, Desktop, Window and Help. I've also had a look in the Product Help guide in Matlab, but I couldn't find a relevant entry.
Any help would be greatly appreciated.
I believe MATLAB apps were introduced in R2012b, and that it's not possible to install or use them in earlier releases. You would need to contact your colleague, and ask them to supply an unpackaged version of the application (i.e. just the code).

free MATLAB environment

I'm learning the MATLAB language and would like to have some kind of free environment to experiment with. The MATLAB environment provided by MathWorks is commercial. There appears to be a trial available, but I can't figure out how to get the trial license.
For the moment, all I need is a command-line and the "standard libraries".
Octave is mostly compatible with matlab: http://www.gnu.org/software/octave/
If you are just starting with MATLAB I would strongly suggest to go the Python path instead (unless there is some very specific reason why you must use MATLAB). The basics (like array / matrix operations) are very similar to MATLAB.
In my current area of work (neuroscience) there is a strong migration from MATLAB to Python. Many groups are making the switch because Python is free and generally more powerful.
The basic packages you will probably need to get started would be numpy (basic array numerics), scipy (more algorithms) and matplotlib (plotting). Since you want to work on the command line I suggest IPython as well.
As already mentioned in another answer there are also some Python distributions which include many packages, like PythonXY, the Enthought Python Distribution, or Anaconda.
There are many tutorials available on the web, search a little and pick one you like.
Look into these:
Scilab
Octave
Sage
Read this blog entry from Ryan Morlok for more info on open source Matlab alternatives.
I'm a big fan of R, but it's not a substitute for Matlab... it's an alternative. There's a big difference!
I was recently enamoured of Python XY. It's not exactly like Matlab but it has many of the same functions and copies the look and feel. I would personally use it if I didn't want to buy a Matlab license though - not if I wanted to practice with a Matlab stand-in.
www.pythonxy.com
Other users have given you the examples that I would have suggested - Octave and Scilab. Of the two, I would say that Scilab is more powerful BUT Octave tries really hard to be source compatible with standard MATLAB and Scilab does not.
So, if your aim is to experiment with a MATLAB like language and learn skills that you will eventually be able to transfer over to MATLAB then I suggest that you stick with Octave.
If you're interested in trying things out in MATLAB directly, there was a recent blog entry on The MathWorks website regarding free trial downloads of MATLAB and its various toolboxes. If you haven't tried contacting them already, the blog links to this page where you can request product trials or, if you already have a licensed product, you can sign in and downloads trials of toolboxes.