Solved

We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

4 years ago

Solved

Shorten pathname
Given a pathname string, return a condensed version by replacing intermediate folders with '..'. *Example* If fullpat...

4 years ago

Solved

NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

4 years ago

Solved

Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

4 years ago

Solved

サイコロを作ろう
1から6までの独立かつランダムな数値を返すような関数を作成しましょう。 例： >> [x1,x2] = rollDice(); と入力すると x1 = 5 x2 = 2 のような解を返します。

4 years ago

Solved

チェッカーボードを作ろう

4 years ago

Solved

UICBioE240 problem 1.3
Find the length of a vector. So if A = [1 1 1 1 1] Then B = 5

4 years ago

Solved

Min by mean
Substitute the minimum value in each row of a matrix A by the mean of that row (it should also work if the input is a vector)

4 years ago

Solved

Find remainder when x is divided by 3
Find remainder when x is divided by 3

4 years ago

Solved

Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

4 years ago

Problem

Average of odd values
Find the average of odd values in given a matrix. e.g x=[ 4 11 8 ; 9 2 7 ] y =( 11 + 9+ 7 ) / 3

4 years ago | 2 | 57 solvers

Problem

Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x　=　[ 4 6 8 9 1 2 7 ] y =　( 6 + 9 + 2 ) / 3

4 years ago | 0 | 45 solvers

Solved

Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

4 years ago

Solved

Product of Array
Given an array of numbers. Get the product of the array.

4 years ago

Solved

Calculate volume of box
Calculate the volume of box,hiven its sides

4 years ago

Solved

Output a vector which is table of 9
Output a vector which is table of 9

4 years ago

Solved

matrix of natural number
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

4 years ago

Solved

Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

4 years ago

Solved

Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

4 years ago

Problem

Probability of red tulips (at both ends of a row)
I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out t...

4 years ago | 2 | 42 solvers

Solved

Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

4 years ago

Solved

Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

4 years ago

Problem

Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

4 years ago | 0 | 47 solvers

Solved

Determine if a row vector has NaN
Determine if a row vector x has NaN

4 years ago

Solved

determine if
determine if the elements of a matrix is a nan and return true

4 years ago

Solved

Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

4 years ago

Solved

Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

4 years ago

Solved

Cody Matlab Version
What is the current Cody Matlab Release? *Output:* string *Examples:* '(R2012a)' or 'R2012a' Hint: We have mo...

4 years ago

Solved