Find Euclidean norm of given vector u.
Find Euclidean norm of given vector u.
https://en.wikipedia.org/wiki/Euclidean_distance
Example
x=[1 1]
result=sqrt(1^2+1^2...
Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings
Example:
A is a double, for example 2.34
B is a...
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...
Repetition of matrices
*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]*
Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...
2年弱 前
解決済み
Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...
2年弱 前
解決済み
05 - Vector Equations 1
Define the vector _cVec_:
<<http://samle.dk/STTBDP/Assignment1_2c.png>>
(all the numbers from 5 to -5 in increments of -0....
2年弱 前
解決済み
Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector of numbers, output a square array with the...
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...
2年弱 前
解決済み
Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.
2年弱 前
解決済み
Determine the mean of matrix
Determine the mean of matrix without using mean function
Hint: use simple algorithm
2年弱 前
解決済み
Is it column vector?
Is it column vector?
Check vector for column vector without using iscolumn function.