Multiply a column by a row
* Given a column vector C and and a row vector R.
* Output a matrix M.
* Every column of M equals to C multiplied by correspon...
3年以上 前
解決済み
Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x
example: x = [1 2 3; 4 5 6];
output [1;4];
Reverse a matrix
Its simple. You have to reverse a given matrix.
3年以上 前
解決済み
Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...
3年以上 前
解決済み
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following:
* ...
3年以上 前
解決済み
Back to basics 18 - justification
Covering some basic topics I haven't seen elsewhere on Cody.
Given a string with extra spaces in front and/or in back, return...
3年以上 前
解決済み
Times 3 problem
When you enter the number, it should return the number multiplied by 3
Add two numbers
Calculate the sum of two numbers.
Example
input = [2 3]
output = 5
3年以上 前
解決済み
Rounding
Round 10.67 and make 'y' equal to that number.
3年以上 前
解決済み
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns.
E...
3年以上 前
解決済み
Flipping
Write code that can reverse the vector without using any sort of loop.
Example
Given the input vector
A = [ 1 2 3 4 5...
3年以上 前
解決済み
Counting down
Create a vector that counts from 450 to 200 in increments of 10.