Resuelto


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

casi 10 años hace

Resuelto


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

casi 10 años hace

Resuelto


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

casi 10 años hace

Resuelto


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

casi 10 años hace

Resuelto


How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

casi 10 años hace

Resuelto


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

casi 10 años hace

Resuelto


Perform the division
The dividend is given as 18,the divisor given as 9

casi 10 años hace

Resuelto


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

casi 10 años hace

Resuelto


Check if a rotated array was originally sorted
Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

casi 10 años hace

Resuelto


Determine the input for these two numbers.
function c=add_together(a,b) a=12345678; b=87654321; end

casi 10 años hace

Resuelto


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

casi 10 años hace

Resuelto


Find the quantization index of an analog value using a 6-bit quantizer.
Given a sinusoidal waveform x(t)=4.5*sin(2*pi*100*t) is sampled at 8000 sample per second. Assume that signal range is between -...

casi 10 años hace

Resuelto


a column vector to a row vector
Write a script to convert a column (e.g. x = [1; 2; 3]) to a row (e.g. y = [1 2 3]), your script should be able to do this for a...

casi 10 años hace

Resuelto


the odd elements
Write a function which extracts all the odd elements. example input: x = [1 8 9 45 -2 4] output: y = [1 9 -2]

casi 10 años hace

Resuelto


a vector with a repeated entry
Create a row vector of length x, filled with 7's, for example, if x = 5 output = [7 7 7 7 7] make sure to round UP when x ...

casi 10 años hace

Resuelto


complex numbers
For complex number z=a+bi, write code that will multiply a and b together.

casi 10 años hace

Resuelto


rounding
Round 5.46 and make 'y' equal to that number.

casi 10 años hace

Resuelto


square root
Write a script that returns the square root of the elements in x. e.g. x = [1 4 9 16] --> y = [1 2 3 4]

casi 10 años hace

Resuelto


the difference of cubes
Given a and b, return the difference of cubes a^3 - b^3 in c.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


length of a vector
Find three times the length of a given vector.

casi 10 años hace

Resuelto


subtract two numbers
Given a and b, return the difference a-b in c.

casi 10 años hace

Resuelto


ascii
Using matlab, give the symbol that is associated with ASCii code 101.

casi 10 años hace

Resuelto


the length of a given vector
Given a vector x, the output y should equal the length of x.

casi 10 años hace

Resuelto


transpose of matrix
Given a vector x, the output y should equal the transpose of x.

casi 10 años hace

Resuelto


extract the fifth through the last elements
For any vector x, write a function that extracts the fifth through the last elements.

casi 10 años hace

Resuelto


counting down
Create a vector that counts from 1000 to 400 in increments of 50.

casi 10 años hace

Resuelto


perimeter of a circle
Given the radius x, y would be the perimeter of a circle.

casi 10 años hace

Resuelto


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

casi 10 años hace

Resuelto


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

casi 10 años hace

Cargar más