Community Profile

photo

Benjamin


Last seen: 1 year ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Introduction to MATLAB Master
  • CUP Challenge Master
  • Community Group Solver
  • 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]

1 year ago

Solved


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

1 year ago

Solved


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

1 year ago

Solved


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

1 year ago

Solved


Remove the Zero
Given an array n, remove all zeros

1 year ago

Solved


01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

1 year ago

Solved


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

1 year ago

Solved


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

1 year ago

Solved


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

1 year ago

Solved


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

1 year ago

Solved


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

1 year ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

1 year ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

1 year ago

Solved


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

1 year ago

Solved


Temperature Conversion 3

1 year ago

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

1 year ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

1 year ago

Solved


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

1 year ago

Solved


Mile to Kilometer
x is mile and y is km

1 year ago

Solved


length of a vector
Find twice the length of a given vector.

1 year ago

Solved


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

1 year ago

Solved


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

1 year ago

Solved


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

1 year ago

Solved


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

1 year ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

1 year ago

Solved


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

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

1 year ago

Solved


Identifying teenager
Suppose the age of a person is given. If he/she is a teenage, answer is 'yes'. Otherwise, the answer is 'no'.

1 year ago

Solved


Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

1 year ago

Solved


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

1 year ago

Load more