A résolu


Linear Motion 1
An object travels N feet in the first second of travel, N feet again during the second second of travel and N feet again during ...

11 jours il y a

A résolu


Find Logic 19

11 jours il y a

A résolu


Find Logic 18

11 jours il y a

A résolu


Find Logic 17

11 jours il y a

A résolu


Find Logic 16

11 jours il y a

A résolu


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

11 jours il y a

A résolu


Find Logic 15

11 jours il y a

A résolu


Find Logic 13

11 jours il y a

A résolu


Find Logic 11

11 jours il y a

A résolu


Find Logic 10

11 jours il y a

A résolu


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

11 jours il y a

A résolu


Find Logic 8

11 jours il y a

A résolu


Find Logic 7

11 jours il y a

A résolu


Find Logic 6

11 jours il y a

A résolu


Find Logic 4

11 jours il y a

A résolu


Find Logic 1

11 jours il y a

A résolu


radius of a spherical planet
You just measured its surface area, that is the input.

11 jours il y a

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

15 jours il y a

A résolu


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

15 jours il y a

A résolu


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

15 jours il y a

A résolu


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

15 jours il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displayed ...

15 jours il y a

A résolu


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

15 jours il y a

A résolu


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

15 jours il y a

A résolu


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

15 jours il y a

A résolu


Find Logic 3

15 jours il y a

A résolu


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

15 jours il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

15 jours il y a

A résolu


Column norms of a matrix
Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...

15 jours il y a

A résolu


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

15 jours il y a

Charger plus