Resuelto


Nearest
*Description* Find the value and index of the element in vector _x_ that is nearest to value _y_. _y_ should be able to be a ...

casi 10 años hace

Resuelto


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

casi 10 años hace

Resuelto


Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal. INPUT: a, a n x n matrix OUTPUT: true or false

casi 10 años hace

Resuelto


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

casi 10 años hace

Resuelto


Sum two real numbers
It seems easy, but... You cannot use +, -, plus, diff, cumsum, *, prod, times, etc.

casi 10 años hace

Resuelto


Vector parallel to plane?
Given the coefficients of the equation which defines a plane as follows: ax+by+cz=d, return a boolean indicating whether the 2n...

casi 10 años hace

Resuelto


Find the definite integral of various linear functions
A definite integral had a minimum and maximum limit. When you solve this type of problem you must use both quad and the trapz fu...

casi 10 años hace

Resuelto


Numeric array to cell array of strings (easy)
Given a numeric array (A) and a 1xk cell array of strings (C), return a cell array (B) that is the same size as A and in which e...

casi 10 años hace

Problema


How to permute given 3d matrix?
A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

casi 10 años hace | 5 | 57 solvers

Resuelto


Evil Number
Check if a given natural number is evil or not. Read more at <https://oeis.org/A001969 OEIS>.

casi 10 años hace

Problema


Removing vibration!
There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

casi 10 años hace | 5 | 60 solvers

Resuelto


Variable Assignment
Complete the ? part by assigning myExamScore with 100.

casi 10 años hace

Problema


Extract a part of matrix!
There is matrix A A=[1 2 3; 4 5 6; 7 8 9] Extract a part of matrix A from (2,2) to (3,3). Result should...

casi 10 años hace | 6 | 83 solvers

Problema


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

casi 10 años hace | 5 | 230 solvers

Resuelto


Billiards
Considering there are 15 pool balls, (b), in the game of pool, and given a radius, (r). What is the volume, (V), of a rack in th...

casi 10 años hace

Resuelto


square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared y = x; end

casi 10 años hace

Resuelto


How long does it take to run a bath?
Given the *volume flow rate* (volume/time) of a faucet and the *volume* of a bath tub, find the amount of time it takes to fill ...

casi 10 años hace

Resuelto


Celsius to Kelvin
Degrees Celsius = Kelvin - 273.15

casi 10 años hace

Resuelto


Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

casi 10 años hace

Resuelto


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

casi 10 años hace

Resuelto


Sum of integers numbers
Sum of the numbers from 1 to 100

casi 10 años hace

Resuelto


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

casi 10 años hace

Resuelto


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

casi 10 años hace

Resuelto


Alkane
Given a number, x, that is equal to the number of carbon atoms in an <http://en.wikipedia.org/wiki/Alkane alkane>, find, y, the ...

casi 10 años hace

Resuelto


Box!
Given a box, find the volume of the cube. With each side = a.

casi 10 años hace

Resuelto


Create a matrix X, where each column is a shifted copy of the vector v
Example : in->v = (1:5)'; 1 2 3 4 5 out-> [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 ...

casi 10 años hace

Resuelto


Create a vector
Create a vector from 0 to n by intervals of 2.

casi 10 años hace

Resuelto


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

casi 10 años hace

Cargar más