Resuelto


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

casi 4 años hace

Resuelto


Divide pi
Divide pi by x!

casi 4 años hace

Resuelto


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

casi 4 años hace

Resuelto


Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

casi 4 años hace

Resuelto


Sum of elements in a vector (★)
(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

casi 4 años hace

Resuelto


Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

casi 4 años hace

Resuelto


area

casi 4 años hace

Resuelto


easy problem
Find the last element of the array

casi 4 años hace

Resuelto


Multiply pi
Multiply pi with x!

casi 4 años hace

Resuelto


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

casi 4 años hace

Resuelto


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

casi 4 años hace

Resuelto


Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

casi 4 años hace

Resuelto


Create a vector of the first n natural numbers (★)
If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].

casi 4 años hace

Resuelto


Create a vector of the first n odd numbers (★)
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

casi 4 años hace

Resuelto


Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

casi 4 años hace

Resuelto


Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.
Given a matrix x, *using loops only* return a matrix y, in which all the zeros have "climbed" up to the top. That is, any zeros ...

casi 4 años hace

Resuelto


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

casi 4 años hace

Resuelto


Make a Plot with Functions
Make a plot and test

casi 4 años hace

Resuelto


Electrical Diode Current Calculation
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

casi 4 años hace

Resuelto


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

casi 4 años hace

Resuelto


Shuffle
Shuffle a vector by breaking it up to segments of |n| elements, and rearranging them in a reversed order. For example, the ve...

casi 4 años hace

Resuelto


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

casi 4 años hace

Resuelto


Current through resistor
Three resistors (R2, R3, R4) are connected in parallel as shown in the figure. If this combination is connected in series with ...

casi 4 años hace

Resuelto


Convert a given Character to its decimal equivalent value
Convert a given character to its decimal equivalent value according to the ascii table. if x = '!'; y = 33; if x = 'u'; ...

casi 4 años hace

Resuelto


Mathematical formula
Find the value of the expression given the values of variables t and k. Assume g=9.81

casi 4 años hace

Resuelto


Travel time
Calculate the time (in hours) it takes a car traveling at a given uniform speed of s km/hour to travel a distance of d km. For i...

casi 4 años hace

Resuelto


Function substitution (2)
Evaluate the function for the given values of the variables N and t

casi 4 años hace

Resuelto


Function substitution (1)
Evaluate the function for the given values of the variables N and t

casi 4 años hace

Resuelto


Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

casi 4 años hace

Resuelto


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

casi 4 años hace

Cargar más