Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

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

mehr als 9 Jahre vor | 1

| akzeptiert

Gelöst


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

mehr als 9 Jahre vor

Problem


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

mehr als 9 Jahre vor | 1 | 49 Lösungsvorschläge

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

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

mehr als 9 Jahre vor | 3

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

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

fast 10 Jahre vor | 0

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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.

fast 10 Jahre vor

Mehr laden