解決済み


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

2年弱 前

解決済み


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

2年弱 前

解決済み


Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

2年弱 前

解決済み


Round to nearest integer

2年弱 前

解決済み


Summy's even sum

2年弱 前

解決済み


Summy's odd sum

2年弱 前

解決済み


Add 2 Vectors

2年弱 前

解決済み


Find Sum of array

2年弱 前

解決済み


Simple sum 1

2年弱 前

解決済み


sign function

2年弱 前

解決済み


divide by 5

2年弱 前

解決済み


Product of all elements in an array
Compute the product of all elements in an array.

2年弱 前

解決済み


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

2年弱 前

解決済み


Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

2年弱 前

解決済み


Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

2年弱 前

解決済み


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

2年弱 前

解決済み


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

2年弱 前

解決済み


true or false
if the matrix has a zero, return true. else, return false

2年弱 前

解決済み


'Determine if array of numbers is odd'
Return true if the input single number is odd. If the input is a vector, it will return a vector or array of logical values indi...

2年弱 前

解決済み


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

2年弱 前

解決済み


The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

2年弱 前

解決済み


Sum two matrices
Take two incoming matrices, and sum them

2年弱 前

解決済み


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

2年弱 前

解決済み


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

2年弱 前

解決済み


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

2年弱 前

解決済み


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

2年弱 前

解決済み


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

2年弱 前

解決済み


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

2年弱 前

解決済み


What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

2年弱 前

解決済み


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

2年弱 前

さらに読み込む