Beginner's Problem - Squaring
Try out this test problem first.
Given the variable x as your input, square it by two and put the result in y.
Examples:
...
3年以上 前
解決済み
Area of a circle
Given the radius x, y would be the area of a circle.
Pi = 3.1416
3年以上 前
解決済み
Count up then down
Create a function that produces counting up from 0 up to n then down to 0
n=2 --> 0 1 2 1 0
n=3 --> ...
3年以上 前
解決済み
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
3年以上 前
解決済み
Do you like your boss?
Do you like your boss?
Answer can be any string!
For example:
Boss = 'Do you like your boss?';
Output = 'yes'
or
...
3年以上 前
解決済み
Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes.
---
Logical indexing works like this.
thresh = 4...
3年以上 前
解決済み
Counting down
Create a vector that counts from 450 to 200 in increments of 10.