Resuelto


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

más de 7 años hace

Resuelto


Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

más de 7 años hace

Resuelto


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

más de 7 años hace

Resuelto


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

más de 7 años hace

Resuelto


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

más de 7 años hace

Resuelto


Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

más de 7 años hace

Resuelto


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

más de 7 años hace

Resuelto


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

más de 7 años hace

Resuelto


intervals
Write a function that takes an interval from a to b, and divides it into 6 parts.

más de 7 años hace

Resuelto


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

más de 7 años hace

Resuelto


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

más de 7 años hace

Resuelto


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

más de 7 años hace

Resuelto


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

más de 7 años hace

Resuelto


Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

más de 7 años hace

Resuelto


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

más de 7 años hace

Resuelto


Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

más de 7 años hace

Resuelto


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

más de 7 años hace

Resuelto


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

más de 7 años hace

Resuelto


prime test 2
enter the only non prime,non composite number

más de 7 años hace

Resuelto


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


Values in Array
How many values are in the array

más de 7 años hace

Resuelto


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

más de 7 años hace

Resuelto


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

más de 7 años hace

Resuelto


y equals x divided by 2
function y = x/2

más de 7 años hace

Resuelto


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

más de 7 años hace

Resuelto


raise 1/3
Raise a number to 1/3 power.

más de 7 años hace

Resuelto


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Cargar más