Community Profile

photo

Vanessa Dib


Last seen: 6 maanden ago Active since 2021

Followers: 0   Following: 0

Statistics

  • CUP Challenge Master
  • Introduction to MATLAB Master
  • Solver

View badges

Feeds

View by

Solved


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

meer dan 2 jaar ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

meer dan 2 jaar ago

Solved


only input
Return the output without writing any code into the function.

meer dan 2 jaar ago

Solved


square root
Find the square root (y) of an input (x).

meer dan 2 jaar ago

Solved


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

meer dan 2 jaar ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

meer dan 2 jaar ago

Solved


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

meer dan 2 jaar ago

Solved


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

meer dan 2 jaar ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

meer dan 2 jaar ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

meer dan 2 jaar ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

meer dan 2 jaar ago

Solved


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

meer dan 2 jaar ago

Solved


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

meer dan 2 jaar ago

Solved


Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

meer dan 2 jaar ago

Solved


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

meer dan 2 jaar ago

Solved


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

meer dan 2 jaar ago

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

meer dan 2 jaar ago

Solved


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

meer dan 2 jaar ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

meer dan 2 jaar ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

meer dan 2 jaar ago

Solved


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

meer dan 2 jaar ago

Solved


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

meer dan 2 jaar ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

meer dan 2 jaar ago

Solved


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

meer dan 2 jaar ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

meer dan 2 jaar ago

Solved


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

meer dan 2 jaar ago

Solved


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

meer dan 2 jaar ago

Solved


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

meer dan 2 jaar ago

Solved


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

meer dan 2 jaar ago

Solved


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

meer dan 2 jaar ago

Load more