5 - MATLAB Practical [ID:33326]
50 von 438 angezeigt

Hello everyone and welcome to the first tutorial on MATLAB and the start of our practical classes.

So we will start these tutorial classes and MATLAB classes with a brief introduction

on MATLAB, so how to use MATLAB and how to analyse time series signals.

Of course you are also very welcome to use Python, my suggestion is also, they are very

similar programming languages, but MATLAB offers a unique framework for matrix calculations

and when you record data from electrophysiological data, so at high time resolution, MATLAB becomes

very handy to work with this type of data.

And now we will talk a little bit about MATLAB, but I will link you to some videos and then

I will quickly dig into our purposes.

My suggestion, the best way to learn MATLAB and I think any programming language is to

of course have the basics, but then have real world problems, world problems that actually

you need to solve, for example for your master thesis or for a project.

And once you have these problems and you solve them, you gain knowledge.

And the way you can gain knowledge with MATLAB is actually by using some simple functions,

one function is either the help function or even better the dog function.

We will see this together what these two means.

But before going into that, I would like first to show you, this is a 10 minute video from

MATLAB and this is just a global introduction, I will also give you a global introduction,

I really suggest you to see this because they have a very nice problem that they solve and

with some elegant instructions that even are up to date.

Now in MATLAB you can have a live editor or the classic command window.

I use scripts in my computers, but now you can have them as live scripts and as you can

see that in the video, I will not show you today how to create a live script also because

it goes out of the purpose of this course, but it's a very nice feature that has been

recently added by MATLAB.

So let's start.

So my suggestion is that you look at this and then you come back to my tutorial, but

you can also just start with this tutorial.

So when you open MATLAB, this is how it looks, here you have the current folder, this is

the command window and this is the workspace.

So for example, if we create one variable and we call it a, a is equal to 1, we have

an output that we can suppress if we put a semicolon.

And you have here in the workspace the name and the value of this variable.

You can see who's a and here you have the name of the variable, the size, the bytes

and the class.

And if you just want to see the size of this, you can just say it's a, all right?

And this is a one by one matrix.

So what you have to understand about MATLAB, the first important part is that it stores

all the data in a matrix form and then you can have multiple layers.

But a simple explanation is this.

So if we have a variable a and this variable a, we want to have three ones, MATLAB, then

we type open a, we see that there are three one in the first row and these three ones

were placed in the columns.

So if we press size a, we have one row and three columns.

So now if we create b and b is composed of two, two and two, and let's make a of one,

two and three.

So now if we do a calculation, if we do a times b, we have an error.

We have an error because MATLAB does performs calculation item by item.

So item by item.

So what does this mean?

Zugänglich über

Offener Zugang

Dauer

00:35:55 Min

Aufnahmedatum

2021-05-25

Hochgeladen am

2021-05-25 20:56:38

Sprache

en-US

Einbetten
Wordpress FAU Plugin
iFrame
Teilen