Matlab_Basics
This is an online course.
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?
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)
Remark: when using if
clauses, try to have an explicit statement like (if any(vectorA)
) instead of vectorA
. 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.
https://swcarpentry.github.io/matlab-novice-inflammation/06-cond/index.html
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 pressing ctrl+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)
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 putting wrapper
both before and after original
, the original
will be "fenced" by wrapper
. Does this make it clearer?Remark: Matlab strings are not accessible by indices liek char arrays are, i.e. if you have str = "abcde"
, and use the outer
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 concatenated
"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
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?
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