Risolto


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

circa 5 anni fa

Risolto


Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

circa 5 anni fa

Risolto


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

circa 5 anni fa

Risolto


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

circa 5 anni fa

Risolto


Square root of a number
Write a code that will output the square root of x.

circa 5 anni fa

Risolto


Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm

circa 5 anni fa

Risolto


Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part ...

circa 5 anni fa

Risolto


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

circa 5 anni fa

Risolto


Horizontal matrix sort
Given a matrix x with n rows and m columns, return a matrix y with n rows and 2m columns, such that every row in x is sorted fro...

circa 5 anni fa

Risolto


Vertical matrix sort
Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...

circa 5 anni fa

Risolto


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

circa 5 anni fa

Risolto


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

circa 5 anni fa

Risolto


Area of a circle
Find the value for area of the circle if diameter is given

circa 5 anni fa

Risolto


Test if a number is numeric or not
Test if a number is numeric or not

circa 5 anni fa

Risolto


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

circa 5 anni fa

Risolto


factorial of a number x
Factorial of a number x

circa 5 anni fa

Risolto


Area of rhombus
Calculate the rhombus area

circa 5 anni fa

Risolto


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

circa 5 anni fa

Risolto


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

circa 5 anni fa

Risolto


Find the minimum element of the matrix
Example: If x = [3 9; 5 2] then y = 2

circa 5 anni fa

Risolto


Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

circa 5 anni fa

Risolto


Square a Number
Given an input x, return y, which is equal to the square of x.

circa 5 anni fa

Risolto


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

circa 5 anni fa

Risolto


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

circa 5 anni fa

Risolto


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

circa 5 anni fa

Risolto


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

circa 5 anni fa

Risolto


y equals x divided by 2
function y = x/2

circa 5 anni fa

Risolto


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

circa 5 anni fa

Risolto


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

circa 5 anni fa

Risolto


Test of Quiz
Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...

circa 5 anni fa

Carica altro