Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


area

nästan 2 år ago

Solved


easy problem
Find the last element of the array

nästan 2 år ago

Solved


Multiply pi
Multiply pi with x!

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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.

nästan 2 år ago

Solved


Make a Plot with Functions
Make a plot and test

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


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

nästan 2 år ago

Solved


Congruent
Given two numbers, check whether they are congruent to each other or not for a particular value N.

nästan 2 år ago

Solved


Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

nästan 2 år ago

Load more