Risolto


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

quasi 10 anni fa

Risolto


Logical array indexing - part 1
Given an array |A| of size |p x q| , return an array |Y| of the same size such that the following conditions are satisfied. (...

quasi 10 anni fa

Risolto


pizza deals
Given two pizza slices of different sizes: * Slice A with angle alpha1, radius r1 and price p1 * Slice B with angle alpha2, ...

quasi 10 anni fa

Risolto


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

quasi 10 anni fa

Risposto
How to plot a stored vector on one graph with the x axis 1:number
Try the following plot(1:numel(v),v);

quasi 10 anni fa | 1

| accettato

Risolto


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

quasi 10 anni fa

Problema


Logical array indexing - part 1
Given an array |A| of size |m x n| , return an array |Y| of the same size such that the following conditions are satisfied. (...

quasi 10 anni fa | 1 | 49 risolutori

Risolto


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

quasi 10 anni fa

Risolto


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

quasi 10 anni fa

Risolto


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

quasi 10 anni fa

Risolto


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

quasi 10 anni fa

Risolto


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

quasi 10 anni fa

Risposto
How to plot a triangular prism ?
Hello Marian, this is how your prism should look <</matlabcentral/answers/uploaded_files/61841/untitled.png>> And now fo...

quasi 10 anni fa | 3

| accettato

Risposto
While loop inside an if loop
_"Matlab stops by display pick_year."_ When this line is displayed, you have to enter the year on your command window. Your p...

quasi 10 anni fa | 0

Risposto
automatic variable creation?
It would be more efficient to simply store all these indices inside *one* variable (or array/ cell array/ structure, as the case...

quasi 10 anni fa | 0

Risolto


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

quasi 10 anni fa

Risolto


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

quasi 10 anni fa

Risolto


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

quasi 10 anni fa

Risolto


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

quasi 10 anni fa

Risposto
how to solve this error ? Error using horzcat Dimensions of matrices being concatenated are not consistent.
Hello Khoirunnisya, could you please run the following code *exactly* as it is here and paste the output from your command windo...

quasi 10 anni fa | 0

Risolto


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

quasi 10 anni fa

Risolto


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

quasi 10 anni fa

Risolto


convert matrix to single column
given any matrix, convert it to single column

quasi 10 anni fa

Risolto


Determine the square root
Determine the square root of the value the user has entered, n.

quasi 10 anni fa

Risolto


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

quasi 10 anni fa

Risolto


Concatenate two strings
Its very easy. Just concatenate two strings.

quasi 10 anni fa

Risolto


Max of a Vector
Write a function to return the max of a vector

quasi 10 anni fa

Risolto


Reverse a matrix
Its simple. You have to reverse a given matrix.

quasi 10 anni fa

Risolto


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

quasi 10 anni fa

Risolto


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

quasi 10 anni fa

Carica altro