解決済み


Convert degrees to radians
Given input in degrees, output to radians

3年以上 前

解決済み


String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

3年以上 前

解決済み


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

3年以上 前

解決済み


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

3年以上 前

解決済み


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

3年以上 前

解決済み


radius of a spherical planet
You just measured its surface area, that is the input.

3年以上 前

解決済み


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

3年以上 前

解決済み


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

3年以上 前

解決済み


Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

3年以上 前

解決済み


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

3年以上 前

解決済み


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

3年以上 前

解決済み


Max of a Vector
Write a function to return the max of a vector

3年以上 前

解決済み


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

3年以上 前

解決済み


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

3年以上 前

解決済み


Product of elements in a column

3年以上 前

解決済み


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

3年以上 前

解決済み


Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

3年以上 前

解決済み


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

3年以上 前

解決済み


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

3年以上 前

解決済み


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

3年以上 前

解決済み


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

3年以上 前

解決済み


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

3年以上 前

解決済み


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

3年以上 前

解決済み


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

3年以上 前

解決済み


Convert radians to degrees
Given input in radians, output to degrees

3年以上 前

解決済み


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

3年以上 前

解決済み


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

3年以上 前

解決済み


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

3年以上 前

解決済み


Min of a Matrix
Return the minimum value in the given matrix.

3年以上 前

解決済み


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

3年以上 前

さらに読み込む