Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Hello, this tutorial is designed to introduce students to MATLAB Online and
its use in solving the programming assignments for this course.
The goal of these assignments is to help in visualizing the key concepts
taught in this course.
Let's get started.
The first thing that we observe is a problem description,
where details regarding the assignment and its requirements are mentioned.
This section often contains links to download files for your desktop MATLAB.
We recommend using the desktop version frequently when building your solutions,
as it helps to inspect your variables and develop your code.
For function problems, there are two code boxes.
The first code box is where you implement the constants for the assignment and
it'll often contain some code to get you started.
The second code box is for testing.
This box will consist of some code to test your function, but
can be modified to test for different scenarios.
The Run Function button runs the code to call your function box and
displays any output there.
The Submit button tests your function and returns the result.
Let's see how this works.
In this example, we are going to create a location matrix above the z-axis for
a given angle in radians,
which is given by the equation in the problem description.
So our task is to create a matrix according to the formula shown.
Let's go ahead and plug in the formula.
Now that I think my function is done,
let's use the Run Function button to test if my function works as expected.
Always test a function before pressing Submit to make sure there
aren't any syntactical errors.
Great, our function runs and we see the rotated vector.
Remember, we can modify this code to test the function multiple times.
Let's go ahead and change the vector and run this code again.
Now that we think our function's correct, let's hit Submit.
Oops, looks like we made a mistake.
Notice the two levels of feedback.
The feedback in red directly is from creating code.
The feedback in brown is a additional set of hints provided regarding possible
errors.
So in this case, I have the error because of negative sine.
Let me update the code and try again.
Great, now we have all green checks,
implying we have successfully passed the problem.
Don't worry if you get stuck.
Code rarely works the first time and
the problems in this course are quite challenging.
So pat yourselves on the back when you get them right.
When you want to get help in the forum,s include three things in your post.
The assessment descriptions that failed or that you have questions on.
The red error message returned.
Now this can vary from the type of error, description of error probed or
pseudocode outlined in your approach.
Please do not post any actual code in the forums even if it is not working.
Thank you.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.