A résolu


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...

22 jours il y a

A résolu


Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

22 jours il y a

A résolu


radius of a spherical planet
You just measured its surface area, that is the input.

22 jours il y a

A résolu


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

22 jours il y a

A résolu


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

22 jours il y a

A résolu


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

22 jours il y a

A résolu


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

28 jours il y a

A résolu


02 - Vector Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2c.png>> (all the numbers from 5 to -5 in increments of ...

28 jours il y a

A résolu


03 - Matrix Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3c.png>> A 10x10 matrix where the numbers from 1 to 100 ...

28 jours il y a

A résolu


Set a diagonal
Given a matrix M, row vector v of appropriate length, and diagonal index d (where 0 indicates the main diagonal and off-diagonal...

28 jours il y a

A résolu


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

28 jours il y a

A résolu


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

28 jours il y a

A résolu


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

28 jours il y a

A résolu


Insert same number of zeros for each of elements in the vector. Number of zeros for a given number in vector
Same number of zeros for a given number in the vector, if there is a negative number in vector, then insert zeros to precede ...

30 jours il y a

A résolu


Electric Power Steering (EPS) Motor Torque with Efficiency
In EPS systems, the motor must generate additional torque to compensate for system losses. Given Required assist torque at rack...

30 jours il y a

A résolu


modulus of a number
find the modulus of a given number

30 jours il y a

A résolu


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

30 jours il y a

A résolu


Rhombus
Get the area of the Rhombus using it's Diagonals.

30 jours il y a

A résolu


Get The Square Root Of Number Power (^) Three
Get the Square Root of number Power (^) Three.

30 jours il y a

A résolu


Get The Opposite Of The Number Without Negative (-) On It
You must get the opposite of the number X without making -X. Hint: You can make it by Subtraction and Multiplication.

30 jours il y a

A résolu


[Mảng 1 Chiều Cơ Bản]. Bài 3. Số nhỏ nhất
Cho mảng số nguyên A[] gồm N phần tử, hãy đếm xem trong mảng của bạn có bao nhiêu số có cùng giá trị nhỏ nhất. Ví dụ mảng A = {1...

30 jours il y a

A résolu


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

30 jours il y a

A résolu


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

30 jours il y a

A résolu


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

environ un mois il y a

A résolu


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

environ un mois il y a

A résolu


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

environ un mois il y a

A résolu


Find max
Find the maximum value of a given vector or matrix.

environ un mois il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

environ un mois il y a

A résolu


Inner product of two vectors
Find the inner product of two vectors.

environ un mois il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

environ un mois il y a

Charger plus