Risolto


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

circa 12 anni fa

Risolto


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

circa 12 anni fa

Risolto


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

circa 12 anni fa

Risolto


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

circa 12 anni fa

Risolto


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

circa 12 anni fa

Risolto


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

circa 12 anni fa

Risolto


length of a vector
Find twice the length of a given vector.

circa 12 anni fa

Risolto


Complex number
For complex number c=a+bi, write code that will add a and b together.

circa 12 anni fa

Risolto


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

circa 12 anni fa

Risolto


Rounding
Round 10.67 and make 'y' equal to that number.

circa 12 anni fa

Risolto


Eliminate Polysyllabics: Long live short words!
Given a string s1, return s2 in which all the words with more than one syllable have been removed. To make things simple, we ...

oltre 12 anni fa

Risolto


Find the optimal shape to bring the maximum product by a given perimeter
Find the optimal shape (with N sides) to bring the maximum product of the sides length, by a given perimeter. Example: Assumin...

oltre 12 anni fa

Risolto


Find the function
Given a set of point (x,y) and the coordinate x of a new point, find the y value of new point.

oltre 12 anni fa

Risolto


Given the name from the legend, return the handle
Write a function that will return the handle to the desired object. The input for this function will be a string which represent...

oltre 12 anni fa

Risolto


Schwarzschild radius
Compute the <http://en.wikipedia.org/wiki/Schwarzschild_radius Schwarzschild radius> for objects of mass m (kg). Use c = 299,792...

oltre 12 anni fa

Risolto


Find smallest integer type to accommodate your number
MATLAB supports 1-, 2-, 4-, and 8-byte storage for integer data. Find the smallest integer type to accomodate a scalar integer. ...

oltre 12 anni fa

Risolto


What gear ratio does the cyclist need?
A cyclist (perhaps including our famed Codysolver the cyclist <http://www.mathworks.com/matlabcentral/cody/players/1841757-the...

oltre 12 anni fa

Risolto


Hangman (strategy)
What is the best strategy in a <http://en.wikipedia.org/wiki/Hangman_(game) hangman> game? Your job is to device a strategy t...

oltre 12 anni fa

Risolto


Matrix Generation.
if input n =1, generate a matrix y = [1]

oltre 12 anni fa

Risolto


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

oltre 12 anni fa

Risolto


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

oltre 12 anni fa

Risolto


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

oltre 12 anni fa

Risolto


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

oltre 12 anni fa

Risolto


Knights and Knaves (part 2)
_This is a Matlab adaptation of the_ <http://en.wikipedia.org/wiki/Knights_and_Knaves Knives and Knaves> _logical puzzles_. ...

oltre 12 anni fa

Risolto


Convert binary numbers to hexadecimal numbers
Function must convert the input vector x composed of 0 and 1 (length is a multiple of 8) in hexadecimal. Most significant bit is...

oltre 12 anni fa

Risolto


Schrödinger dog
Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? YES! NOW IT IS! ...

oltre 12 anni fa

Risolto


Lowest sum from a group of digits
Hi there. It's James's daughter here again, and my third grade math teacher is up to her old tricks. This time, she's giving u...

oltre 12 anni fa

Risolto


That's some divisor you've got there...
Given a positive integer x, calculate the sum of all of the divisors of the number. Please include the number itself in your fi...

oltre 12 anni fa

Risolto


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

oltre 12 anni fa

Risolto


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

oltre 12 anni fa

Carica altro