解決済み


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

4年以上 前

解決済み


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

4年以上 前

解決済み


Reverse a matrix
Its simple. You have to reverse a given matrix.

4年以上 前

解決済み


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

4年以上 前

解決済み


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...

4年以上 前

解決済み


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

4年以上 前

解決済み


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

4年以上 前

解決済み


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

4年以上 前

解決済み


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...

4年以上 前

解決済み


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

4年以上 前

解決済み


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

4年以上 前

解決済み


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

4年以上 前

解決済み


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

4年以上 前

解決済み


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

4年以上 前

解決済み


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

4年以上 前

解決済み


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

4年以上 前

解決済み


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 ...

4年以上 前

解決済み


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

4年以上 前

解決済み


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

4年以上 前

解決済み


Determine the square root
Determine the square root of the value the user has entered, n.

4年以上 前

解決済み


kmph to mps
convert kilometer per hour to meter per second

4年以上 前

解決済み


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

4年以上 前

解決済み


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: ...

4年以上 前

解決済み


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

4年以上 前

解決済み


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

4年以上 前

解決済み


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

4年以上 前

解決済み


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 ...

4年以上 前

解決済み


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

4年以上 前

解決済み


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

4年以上 前

解決済み


only input
Return the output without writing any code into the function.

4年以上 前

さらに読み込む