Resuelto


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

alrededor de 7 horas hace

Resuelto


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

alrededor de 15 horas hace

Resuelto


Find Logic 1

alrededor de 18 horas hace

Resuelto


Find Logic 3

alrededor de 18 horas hace

Resuelto


Find Logic 4

alrededor de 18 horas hace

Resuelto


Find Logic 6

alrededor de 18 horas hace

Resuelto


Find Logic 7

alrededor de 18 horas hace

Resuelto


Find Logic 9
Guess the Logic! logic(1) = 4 logic(2) = 1 logic(3) = 10 logic(4) = 2

alrededor de 18 horas hace

Resuelto


Find Logic 8

alrededor de 18 horas hace

Resuelto


Find Logic 10

alrededor de 18 horas hace

Resuelto


Find Logic 11

alrededor de 18 horas hace

Resuelto


Find Logic 12

alrededor de 18 horas hace

Resuelto


Find Logic 13

alrededor de 18 horas hace

Resuelto


Find Logic 15

alrededor de 18 horas hace

Resuelto


Find Logic 14
Guess the Logic! logic(1) = 100 logic(2) = 96 logic(3) = 105 logic(4) = 89 logic(5) = 114 Make a function logic(x) which w...

alrededor de 18 horas hace

Resuelto


Find Logic 16

alrededor de 18 horas hace

Resuelto


Find Logic 17

alrededor de 18 horas hace

Resuelto


Find Logic 18

alrededor de 18 horas hace

Resuelto


Find Logic 19

alrededor de 18 horas hace

Resuelto


Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

alrededor de 18 horas hace

Resuelto


Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

alrededor de 18 horas hace

Resuelto


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

alrededor de 18 horas hace

Resuelto


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

alrededor de 19 horas hace

Resuelto


Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...

alrededor de 19 horas hace

Resuelto


Set a diagonal
Given a matrix M, row vector v of appropriate length, and diagonal index d (where 0 indicates the main diagonal and off-diagonal...

alrededor de 19 horas hace

Resuelto


Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

alrededor de 19 horas hace

Resuelto


Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

alrededor de 19 horas hace

Resuelto


Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

alrededor de 19 horas hace

Resuelto


Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

alrededor de 19 horas hace

Resuelto


Unique values without using UNIQUE function
You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...

alrededor de 19 horas hace

Cargar más