Gelöst


Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...

fast 2 Jahre vor

Gelöst


Write a MATLAB function that takes a positive integer ( n ) as input and returns the sum of all the even numbers from 1 to ( n ).
Write a MATLAB function that takes a positive integer ( n ) as input and returns the sum of all the even numbers from 1 to ( n )...

fast 2 Jahre vor

Gelöst


Missing Number (arithmetic progression)
Given a list of integers forming an arithmetic progression (where the difference between consecutive elements is constant), your...

fast 2 Jahre vor

Problem


switch base
Input an integer, switch its base. Input is a string, so is output.

fast 2 Jahre vor | 0 | 7 Lösungsvorschläge

Gelöst


Eleve ao cubo!
dado uma entrada x, encontre o seu cubo

etwa 2 Jahre vor

Gelöst


Seno de x
Calcule o seno de x, onde x está em radianos

etwa 2 Jahre vor

Gelöst


Valor absoluto de x
Dado uma entrada x, retornar o seu valor absoluto

etwa 2 Jahre vor

Gelöst


Swap between first and last column
The idea is to swap between first and last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 ...

etwa 2 Jahre vor

Gelöst


Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values. For example, for the list [-30, -5, 1...

etwa 2 Jahre vor

Gelöst


Find the square root of x
Determine the square root of x. For example square root of 4 is 2.

etwa 2 Jahre vor

Gelöst


Add non-triangular numbers
The nth triangular number is the sum of the first n positive integers. The sequence of triangular numbers starts 1, 3, 6, 10, 15...

etwa 2 Jahre vor

Gelöst


Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.

etwa 2 Jahre vor

Gelöst


Hemisphere Volume on Top of a Cylinder
This MATLAB function has to calculate the volume of a hemisphere placed on top of a cylinder, given valid inputs. It takes the r...

etwa 2 Jahre vor

Gelöst


Find the surface area of a cone.
For instance, Given r (radius) = 3, and s (slant height) = 5: surface area should be 94.

mehr als 2 Jahre vor

Gelöst


Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...

mehr als 2 Jahre vor

Gelöst


Orthogonalize 3 column vectors using the Gram-Schmidt process
Use the Gram-Schmidt process to orthogonalize three linearly independent column vectors. Return three output column vectors that...

mehr als 2 Jahre vor

Gelöst


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

mehr als 2 Jahre vor

Gelöst


Summing the last column column
Given a matrix, return the sum of the last column of the array.

mehr als 2 Jahre vor

Gelöst


Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

mehr als 2 Jahre vor

Gelöst


Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

mehr als 2 Jahre vor

Gelöst


Determine if a number is a cool number
A number is considered cool if it is 3 digits, has a 5 in it, and is divisible by 4.

mehr als 2 Jahre vor

Gelöst


nxn matrix with elements from 1:n^2
really simple once you see what the matrix is supposed to look like. i appreciate what seems to be a clever approach to solving ...

mehr als 2 Jahre vor

Gelöst


Compute the total length of lines between all vertices of a regular polygon
Write a function to compute the total length of between all vertices of a regular polygon inscribed in a unit circle. For exampl...

mehr als 2 Jahre vor

Gelöst


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

mehr als 2 Jahre vor

Gelöst


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

mehr als 2 Jahre vor

Gelöst


Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

mehr als 2 Jahre vor

Gelöst


Basic matrix operations using standard MATLAB commands
Create the matrix: 1.0e+15 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000...

mehr als 2 Jahre vor

Gelöst


ASCII sum of phrases
Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', th...

mehr als 2 Jahre vor

Gelöst


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

mehr als 2 Jahre vor

Gelöst


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

mehr als 2 Jahre vor

Mehr laden