Gelöst


MATLAB 101: Play with array Min-Max
An array is provided. For example, a= [ 2,1,11,4,5,13] Create an array from a like this way, out= [ 1,11,2,13,4,5] ➢ 1st take...

12 Tage vor

Gelöst


MATLAB 101: Unique elements of the array with unchanged sequence
An array is given. Find the unique elements of the array. [keep the sequence unchanged] For example if input x=[2 ,4 , 9 ,2 ,...

12 Tage vor

Gelöst


MATLAB 101: Zero finder
Write a function named 'zero_finder' that takes a matrix as input and returns the row index of the last zero for each for each c...

12 Tage vor

Gelöst


MATLAB 101: Highest 3 marks
An array is given that contains the marks received by a group of students in their class test. Find out the highest 3 marks rec...

12 Tage vor

Gelöst


MATLAB 101: Equivalent Resistance Calculator
Calculate the equivalent resistance R_eq for n resistors connected in Series or Parallel.

12 Tage vor

Gelöst


MATLAB 101: Scalar-Vector Multiplication
Write a MATLAB function that takes a numeric array (vector or matrix) v and a scalar multiplier s. The function should return a ...

12 Tage vor

Gelöst


MATLAB 101: Delta to Wye Impedance Converter
In electrical network analysis, transforming a delta (Delta) configuration of components into a wye (Y) configuration is vital f...

12 Tage vor

Gelöst


MATLAB 101: Reverse a Vector
Write a MATLAB function that takes a 1D vector (either a row or a column vector) and returns the vector with its elements in exa...

12 Tage vor

Gelöst


MATLAB 101: Wye to Delta Impedance Converter
n electrical network analysis, transforming a Wye (Y) configuration of impedances (Z1, Z2, Z3) into an equivalent Delta (Delta) ...

12 Tage vor

Gelöst


MATLAB 101: Hypotenuse Calculator
Write a MATLAB function that accepts the base and height of a right-angled triangle (or arrays of bases and heights) and returns...

12 Tage vor

Gelöst


MATLAB 101: Rectangle Properties
Write a MATLAB function that accepts the length (L) and width (W) of a rectangle and returns two outputs: its area and its perim...

12 Tage vor

Gelöst


MATLAB 101: Area of a circle
Write a MATLAB function named circle_area that accepts the radius r as an input and returns the area of the circle.

12 Tage vor

Gelöst


MATLAB 101: Basic Calculator
Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs: The ...

12 Tage vor

Gelöst


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

19 Tage vor

Gelöst


Numerical Integration
Input * |x0|, a real number greater than 0 Output * |I|, a numerical estimate of the integral x0 / I...

19 Tage vor

Gelöst


Differential equations I
Given a function handle |f| an initial condition |y0| and a final time |tf|, solve numerically the differential equation dy...

19 Tage vor

Gelöst


Make a Plot with Functions
Make a plot and test

19 Tage vor

Gelöst


Monte-Carlo integration
Write a function that estimates a d-dimensional integral to at least 1% relative precision. Inputs: * d: positive integer....

19 Tage vor

Gelöst


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...

19 Tage vor

Gelöst


The Birthday Phenomenon
First off, leap years are not being considered for this. In fact the year that people are born shouldn't be taken into considera...

19 Tage vor

Gelöst


Throwing Dice - Will You Be Eaten By The Dragon?
You and a dragon have agreed to let dice rolls determine whether it eats you or not. The dragon will roll a single die, of x si...

19 Tage vor

Gelöst


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

19 Tage vor

Gelöst


Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...

19 Tage vor

Gelöst


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

19 Tage vor

Gelöst


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

19 Tage vor

Gelöst


MATLAB 101: Area of an ellipse
Write a MATLAB function that accepts these two values a (major axis length), b (minor axis length) as inputs and returns the cal...

19 Tage vor

Gelöst


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

19 Tage vor

Gelöst


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

19 Tage vor

Mehr laden