Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers.
Examples:
[index1 index2] = nearestNumbers([2 5 3...
7年弱 前
解決済み
Triangle Numbers Below N
This is an offshoot of <http://www.mathworks.com/matlabcentral/cody/problems/5-triangle-numbers Cody Problem 5: Triangle Numbers...
Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...
7年弱 前
解決済み
Reverse a matrix
Its simple. You have to reverse a given matrix.
7年弱 前
解決済み
Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by:
x = 1/2 gt^2
write a function that calculat...
7年弱 前
解決済み
Min of a Matrix
Return the minimum value in the given matrix.
7年弱 前
解決済み
02 - Vector Variables 3
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2c.png>>
(all the numbers from 5 to -5 in increments of ...
7年弱 前
解決済み
Rounding
Round 10.67 and make 'y' equal to that number.
7年弱 前
解決済み
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:
...
7年弱 前
解決済み
Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.
7年弱 前
解決済み
Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.