or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Welcome to Matlab Basics 2021
tags:
Matlab_Basics
This is an online course.
Questions from the registration form
Can we get recording of those lectures as well?
Can I get a certificate / credit for the course?
Can I get a certificate without the credit?
Is the course free of charge?
Do I need an Aalto (student) account?
Will there be any Simulink?
Day 3
Icebreaker
There are many toolboxes that are developed by other users (i.e. not made by matlab). Using your favourite search engine, can you search for a matlab toolbox in your field and paste the link here below and a tiny description? (here what other learners did last year https://hackmd.io/IG9SGM5AQia48IwKp_Hnjg?view#Icebreaker-day-2)
Questions
Recap of Day1/2
Making Choices cont'd
Questions
Remark: when using
if
clauses, try to have an explicit statement like (if any(vectorA)
) instead ofvectorA
. It is a, more easily readable, and you won't run into the borderline situations shown in the lecture material. I.e. make clear what exactly you are testing, since otherwise bugs are much more difficult to find.Exercise: Nesting
https://swcarpentry.github.io/matlab-novice-inflammation/06-cond/index.html
Results:
Code snippet (before adding if statements)
Questions
Remark: If you select a larger for loop or if clause and press
ctrl+i
, matlab will auto-indent the selection. You can also auto-indent a whole file by selecting all (ctrl+a
) and then pressingctrl+i
this is quite useful, since it creates a consistent way of indentation, which is useful for readability, it also ensures, that the same way for creating the indentation is used (and e.g. not a mix of tabs and spaces)Creating Functions
Exercise until 13:20
https://swcarpentry.github.io/matlab-novice-inflammation/07-func/index.html
Scroll to "Concatenating in a function"
Hint: you will need to start with
edit fence.m
Write here if you are done or need help
strcat
concatenates (i.e. puts together) all str/char elements that are passed to it in the order that they are passed in. e.g.strcat('I','am','here')
would result in'Iamhere'
. so by puttingwrapper
both before and afteroriginal
, theoriginal
will be "fenced" bywrapper
. Does this make it clearer?"Getting the Outside" exercise until 13:32
Remark: Matlab strings are not accessible by indices liek char arrays are, i.e. if you have
str = "abcde"
, and use theouter
function on this (e.g. outer(str)), you get "abcdeabcde" as a result, because matlab considers anything to be a vector, i.e. you can always access the first (and last) element of something. In this instance with only one element present, both the first and the last element of the the "string array"str
are "abcde", which would get concatenatedExercise until xx:10
"Testing a function" scroll down in this page https://swcarpentry.github.io/matlab-novice-inflammation/07-func/index.html
If you were able to solve already part 1, write it here
Questions
What is the difference at the hints that you use L = min(min(v)) vs. just L = min(v)?
Can you copy here the working functions, I think I have some error that I can't see. I would like have both plot_all_functional.m and plot_dataset.m
Ok thanks
_
How long will be the recording active?
I mean The lectures recorded in the link?
Final feedback
What did you like about this course?
What could still be improved for future runs?
See you at Matlab Advanced May 2022 :)
(past year https://hackmd.io/@eglerean/MatlabAdvanced2021)
This is the end of the document, WRITE ABOVE THIS LINE ^^
HackMD can feel slow if more than 100 participants are editing at the same time: If you do not need to write, please switch to "view mode" by clicking the eye icon on top left
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →