Lesson 1.3: MATLAB Online (Old version)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay now we're going to keep our promise and show you MATLAB online I get to it I'll just launch a browser Safari in this case after all I am on a MacBook and I'll just type in the complete URL HTTP colon slash slash MATLAB MathWorks comm and the MATLAB online login window appears type in my login email and my password and hit login and after a few seconds there it is MATLAB online well as I mentioned before you can have this same desktop to that license that math works is going to give you to get you free 12 week license you need to get your own login and password you can get them by following the instructions on the course website so if you haven't done it already I recommend that you pause this video right now and get your free license and don't worry I'll be right here when you come back I come to think of it I'd really like you to pause me right now because I need to take a break to go get myself a sandwich so tell you what let's plan on meeting back here and see 30 minutes I'm just going to get some takeout and bring it back here to the studio so if you unpause me in half an hour I should be back here my computer and done eating oh and go ahead and log into MATLAB online before you unpause okay I hope I didn't keep you waiting and I hope you had better luck with your license and I do with my sandwich which I'm almost finished with sorry about that you know whoever heard of a deli running out of mayo man in any way okay as we look at this desktop here some things should be familiar because we saw them in the install desktop on the left is the current folder on the Rights the command window although it isn't labeled as such and at the bottom is the workspace this is the default layout in March 2016 from my lab online may have changed a bit if you're in the future hmm when were there people on Mars in your time if so MATLAB probably helped get them there oh and you might want to look in the old movie archives for a film called the Martian from 2015 you know to get an idea of what people in my time thought it would be like will probably be good for a laugh anyway back to the present you've already seen how these three windows work there are no huge differences with MATLAB online but there are some important differences over here in the current folder window that we should look at in that window you can see the name of the current folder up here at the top it's Fitz paw JM and it's a child of users this slash right here separates the parent folder on the left and the child on the right you'll have something different of course from Fitz paja M what's important to us are the children of this folder first let's note that I've got three folders inside this current folder I've highlighted in computer programming W MATLAB that was supposed to be computer programming with MATLAB and published and shared published and shared aren't essential to our course but they're provided by default to help you show you work to others you won't have this first one because that's a folder that I've created so I have a place to keep my files for this course I'll show you how to do that in a minute if I click this little triangle right here to the left of the folder I can see what's inside it and scrolled see everything lots of folders a couple of files here and I can make the window bigger so I don't have to scroll like that in fact let's make this whole desktop bigger and there's way over here let's just take up the whole screen alright like we did with the installed version that's great tell you what before I do anything else I'll show you how to rename a folder or a file you just click right on it let's fix this thing select rename and then type in a new name I just want to change this w2 width and hit return and it's fixed and creating a brand new folders just about is easy let you click new up here let's um click folder and we'll type in the name now I'm going to call this private collection click okay and there's my new folder and to delete a folder click right on it come down here and you click delete left click yes I'm sure and it's gone of course the whole idea of this current folder business is that my lab works inside one folder at a time and when you want it to work inside a different folder you must move it to that folder how do you do that in MATLAB online you ask well you can do it in the same way we did it in the installed version I answer by clicking folder icons for example if I want to change my current folder to be computer programming with MATLAB here I just double click it and as expected the current folder that's now shown is computer programming with MATLAB right here in MATLAB online this long name here plays the role of the installed versions address bar let's take a look at that address bar this time in version r 2015 be of the installed MATLAB it's right here you may remember that the address bar in the installed version shows each parent separated from its child by one of these little triangles so for example the current folder in the installed version here tutorials is a child of computer programming with MATLAB by comparison and MATLAB online there is no address bar up here instead the long name here under current folder shows each parent separated from its child by a slash stretch this out a little bit your computer programming with MATLAB is the current folder and it's a child of fit spa JM you'll remember that we made this folder our current folder by double-clicking it when we do that we say we are moving down from a parent to a child as we saw for the installed version we can also move up from a child to a parent by clicking let's look at that again I'll shrink MATLAB online a little bit here so I can look at them side-by-side and bring this up just a little farther well not side-by-side but one over the other now in the installed version down here the current folder is tutorials and this is what's inside tutorials and I can move down into one of its children say lesson one here by double-clicking it let's do that there we go let's look around here a little bit I'll be using some of these files in lesson one by the way to move back up to the parent I click this tiny little icon right here with the tiny little black up arrow there so now I'm a tutorials again and I can move back up to the parent of the current folder in MATLAB online in the same way by clicking on its tiny little icon with its tiny little black up arrow right here so let's do that so computer programming with MATLAB was our current folder and we've moved up into its parent if it's paja m it's now our current folder to make this comparison of the two MATLAB versions even easier you might have been expecting me to put both of them at the same current folder say tutorials which is sitting right here on my macbook hard disk somewhere well hey that's a great idea except for one small problem it's impossible why is it impossible you ask well it's impossible I answer because MATLAB online can't navigate to it in fact it can't navigate to any of the folders on my computer not one of the folders that you see here fits paja am computer program with MATLAB homework problems issues with mo whatever these things are not one single one of those folders or any of the files in them is on my computer where are they you ask I don't know I answer all I do know and all anyone who uses MATLAB online can know is that they're sitting on some computer somewhere there your folders and they contain your files they're just not on your computer when you look at these folders you're looking into a space reserved just for you on a computer controlled by math works and connected to the Internet this is an example of cloud computing those files and that computer a part of the cloud the cloud is just a bunch of computers that you can use remotely without knowing where they are and when you save your program in a file with MATLAB online you'll be saving it in that cloud on one of those computers and the commands executed on MATLAB online running the cloud let's type the same command into the command windows of each version x equals 1 and x equals 1 results pretty much the same you see the same thing in the command window over here in the workspace you see an x + 1 here you see an x + 1 the difference is that this command ran right here on my laptop this command didn't it ran on the computer in the cloud and that's a good thing that computer in the cloud is guaranteed to be a fast computer with a lot of memory if you've got your own big powerful computer then congratulations if not then congratulations because you've got MATLAB online and it has a big fat powerful computer for you so MATLAB online uses a cloud computer to work on cloud files so what if you want to use it to work on a file it's on your computer well you can't do that but you can copy that file up to the cloud and work on that copy and you can change it you can delete it you can do anything you want to it but until you download it back to your computer nothing you do will affect that copy of the file back there on your computer or anything else on your computer so let's say that I want to work on one of the files here in lesson 1 let's see this one right here my ran dot in so I go up here to MATLAB online and I click the little upload button then I click Choose files and I'm in a navigator on my laptop so I click over here let's see where is that thing file I'm looking for is under class class material and files tutorial lesson 1 there we go and there's my R and item that's file I want so I'll highlight it I can hold down the shift key and highlight more if I want to upload more files at a time but I just want one right I also want to choose that and then upload finally I click ok well where is it oh it's here in the current folder that's where it's uploaded you just got to scroll down here and find it and there it is my R and item and now I can do what I want to with it up here in the cloud using MATLAB online and what about if you want to go in the other direction here's a file called cool plot dot M suppose I want to download that down to my computer well I click the download button whoa what is that let's watch that again in slow motion it looks like a little compass thingy I guess that means it finds the direction to my computer and it rises and then it falls down into what I guess looks supposed to be my hard disk now where is it on your computer well that depends on how you set up your browser I've got mine set up to download files into my downloads folder so let's go look for that on downloads and there it is and of course you can move it from that downloads folder to any folder you want to and then work on it with MATLAB or anything else on your local computer ok we've learned the essentials of MATLAB online you know how to navigate through your folders on the cloud and how to copy things between the cloud computer and your local computer and you know how to give a command and you know how to start it too by getting your license and logging in but we need to learn how to stop it there are two kinds of stopping stopping a command and stopping MATLAB itself you've already seen how to do both of these things with installed version let's do it again I'm going to give the command while x equals 1 continue and you'll learn later what the while command and continue and N and all that means but it you can kind of read it while X is 1 continue and we're not changing X and X is 1 so it'll just continue forever until we do something about it and what we're going to do about it is hit ctrl C on the keyboard and that stops it so let's try the same thing up here in MATLAB online and hit return the command begins to work and of course it's going to go forever and let's hit ctrl C on the keyboard there well it didn't stop let's try that again maybe three is a charm no I can tell you this is never going to work because MATLAB online will not stop a command when you hit control c whae the installed version does so what do you do well there's another way look over here this little red button that says stop it looks promising let's try that bear stopped it's just as good as ctrl C I even like it better because it says stop and that's what it's doing ok that's how you stop a command now let's stop MATLAB itself by typing quit like this do this an install version first yes I really want to quit and it's gone now before I do that in MATLAB online I'm going to give it a few more commands just for fun let's see a equals 1 2 3 4 5 6 oops when you see we're head like that it means you made a mistake I must have typed wrong instead of 1 2 3 I typed 1 III so anyway let's try that again a equals 1 2 3 4 5 6 there that's better and you know I think I need more space I'm going to pull this down a little bit go back there I'm going to plot something and there's a nice little plot plots another command that will learn about later now some of my commands disappeared but over here you'll see a scrollbar and you can scroll down there they are okay I guess I will go ahead and quit them you can logout like this up here or you can quit let's logout since just show you a different way there I'm back into the login screen again and if I log back in I'm more or less back where I was before only slight differences I'm not in the same current folder but if I fool around with that I can get back to where I was before that's one of the wonderful things about this system you just log out do what you want to do get a sandwich whatever when you come back things are right where they were and so this time I'm going to quit and again I'm back at that login screen ok we've stopped MATLAB online but we're not quite ready to stop our introduction to it I got one more thing to show you and I have saved the best for last I'm getting my car keys out because it's time to take a little trip man it is a beautiful day so let's go to the library well I've gone about four and a half miles and Here I am at the beautiful new Bellevue branch the Nashville Public Library and it's a nice place I must admit that I rarely come here but every time I do despite the fact that everything you need seems to be on the web there are plenty of people here with me and you can see plenty of cars here and inside there are books but I'm not here for the books I'm here for the computers here's one right here just sat down and I'm logging into it they've given me a number and pin and I have to agree to the safety procedure here okay whatever I'll click that and then there's my screen and you can see Internet Explorer is the only browser they provide something to click that this computer is one of about 30 computers that are provided for the public you don't even have to be a member of the library to use them the point is here for us is that this is not my computer in fact I've never used this computer before in my life and because it's a public computer instead of my computer we can't install any screen capture software and that's why things don't look so good in fact you may have noticed you're seeing the whole monitor not just the screen you're looking at this through a movie camera so let's go up here and type in the URL for MATLAB online let's type in our credentials while I'm logging in let's think about what we expect to see when I logged out and then log back in on my laptop MATLAB remembered the state of my previous session and restored it for me no very nice that information had to be stored somewhere is it on my laptop or in the cloud both it restores my previous session now we'll know the answer to that question it has to be saved in the cloud well that's already promising that looks very familiar where's my ah there's my block too it all seems to be there well almost see let's go that scrollbar yep there there's even the command where I quit and over here let's see if we can get back to yet this it's all there everything it's it's all right there obviously everything's saved on the cloud and that is the best possible news because that means matter where you go in the world you're going to see everything there's my mistake and the error message that came right after that next commands it's all there gosh this is a noisy place what do they do anyway let's do something let's add one to a so we got one two three four five six now we've got two three four five six seven so that worked we'll explain why all these numbers went up by one in later video and I've got a command up here this is a function I'd like to run called cool plot run that okay pretty cool plot all right let's um let's close this down we'll quit and we're back to the login window now let's go back to the studio and log back in again so here we are back in the quiet of the studio I've got Safari running on my laptop same that MATLAB math works calm and I'm putting in my credentials let's login and after a short wait there it is it's all there everything we were doing is right back where we were doing it again scroll down you can even see that last time we quit well this time I think I'll log out up here instead of quitting and we're back the login screen once again well it's time to start focusing back on the MATLAB language itself but before we leave MATLAB online if you have some problems with MATLAB online you can get some help from us still through some files that are online you can look for helpful hints for using MATLAB on the website and then there are the forums the forums you can ask questions and we'll answer them and other students will answer them about how to use MATLAB online and the differences between MATLAB online and installed version which I'll be using throughout the remainder of the course so let's get back to the MATLAB language I'll see you in the next video but before I do maybe it's time for a little break know about you and I could sure use a sandwich you
Info
Channel: Fitzle LLC
Views: 74,898
Rating: 4.9127727 out of 5
Keywords: MATLAB
Id: 2nezjSkKHqY
Channel Id: undefined
Length: 27min 42sec (1662 seconds)
Published: Thu Apr 21 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.