解決済み


sum of the first 10 odd numbers
y = sum(first_10_odd_numbers)

11年以上 前

解決済み


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

11年以上 前

解決済み


Potential Energy
Calculate the potential energy of a rock.

11年以上 前

解決済み


square root
Find the square root (y) of an input (x).

11年以上 前

解決済み


Find all of the odd integers in a vector between the intergers 1 and 10.
Given vector of integers 1:10 [1 2 3 4 5 6 7 8 9 10]

11年以上 前

解決済み


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

11年以上 前

解決済み


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

11年以上 前

解決済み


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

11年以上 前

解決済み


How to make y half of x
Making y equal to x/2.

11年以上 前

解決済み


Sum of integers numbers
Sum of the numbers from 1 to 100

11年以上 前

解決済み


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

11年以上 前

解決済み


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

11年以上 前

解決済み


Find the square root of a value
Given the variable x as your input, find the square root and let the result be represented by y Examples: Input x = 4 O...

11年以上 前

解決済み


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

11年以上 前

解決済み


Create a vector
Create a vector from 0 to n by intervals of 2.

11年以上 前

解決済み


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

11年以上 前

解決済み


Times 3 problem
When you enter the number, it should return the number multiplied by 3

11年以上 前

解決済み


Largest Prime Number
Given a matrix X, find the largest prime number in X.

11年以上 前

解決済み


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

11年以上 前

解決済み


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

11年以上 前

解決済み


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

11年以上 前

解決済み


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

11年以上 前

解決済み


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

11年以上 前

解決済み


Declaring a string
* Assign streetAddress with the string 1313 Mockingbird Lane.

11年以上 前

解決済み


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

11年以上 前

解決済み


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

11年以上 前

解決済み


Double colon operator: Increment by x
* Construct a row array countValues from 0 to 25, elements incremented by incrementValue. Ex: If incrementValue is 5, countVa...

11年以上 前

解決済み


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

11年以上 前

解決済み


Times 32
X is given as your variable. Y is your output multiplied by 32 Example x=1 y=1x32=32

11年以上 前

解決済み


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

11年以上 前

さらに読み込む