解決済み


Write a function to calculate step size delta if bits per sample and input range is given for quantization.
numBit = bits per sample; range = input max value - min value; delta = step size; l = number of levels;

10年弱 前

解決済み


asdf
asdf

10年弱 前

解決済み


without zeros
given an array with seros at the begining or at the end, you should get the output without these zeros: input = [zeros(5,...

10年弱 前

解決済み


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

10年弱 前

解決済み


"Bubblegum, Bubblegum, in a dish; How many pieces do you wish?"
The child's game "bubblegum, bubblegum, in a dish; how many pieces do you wish?" is a way of eliminating players until a single ...

10年弱 前

解決済み


Replicate and Tile an Array
Replicate and tile an array. Example A = [1 2 3; 4 5 6; 7 8 9] B = Epli_and_Tile(A,1,2) B = [ 1 2 3 1...

10年弱 前

解決済み


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

10年弱 前

解決済み


Tent matrix
Create an n x n matrix that resembles one kind of tent. The variable n is provided to the function and will be an odd number. As...

10年弱 前

解決済み


Pairwise column flip
Given matrix *M_in*, flip every pair of columns. So if *M_in* is 1 2 3 4 1 2 3 4 then *M_out* is 2 1 4 3 2 1 4 3 ...

10年弱 前

解決済み


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

10年弱 前

解決済み


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

10年弱 前

解決済み


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

10年弱 前

解決済み


find the 'M'
for an input x, return 1 at the location of the letter 'M'

10年弱 前

解決済み


Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

10年弱 前

解決済み


wipe out!
make all the elements in given x zero.

10年弱 前

解決済み


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

10年弱 前

解決済み


Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

10年弱 前

解決済み


Create sine function out of cosine
Please don't use sin(x) directly

10年弱 前

解決済み


Use a timetable to analyze a train timetable (Part 1)
Oh no, you missed your train to Boston! Find the departure time of the next available train by analyzing the train timetable. Th...

10年弱 前

解決済み


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

10年弱 前

解決済み


Create a New_Word
The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...

10年弱 前

解決済み


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

10年弱 前

解決済み


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

10年弱 前

解決済み


Matrix Manipulation
Given an m*n matrix, see if a matrix contains any 0s in any row. if it contains 0 anywhere in any particular row, delete that ro...

10年弱 前

解決済み


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0...

10年弱 前

解決済み


Vandermonde Matrix
Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column i...

10年弱 前

解決済み


Laguerre Polynomial
Create a square lower diagonal matrix containing the first n Laguerre Polynomial coefficients. For n=6, the Laguerre Matrix is: ...

10年弱 前

解決済み


row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

10年弱 前

解決済み


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

10年弱 前

解決済み


time difference
The arrays x and y contain time values in the form of: x = [hours minutes seconds] Create the output z which contains the...

10年弱 前

さらに読み込む