Solved


07 - Common functions and indexing 1
Define _cMat_: <<http://samle.dk/STTBDP/Assignment1_3c.png>> ( _cMat_ = 10x10 matrix where the numbers from 1 to 100 runs ...

ungefär 5 år ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

ungefär 5 år ago

Solved


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

ungefär 5 år ago

Solved


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

ungefär 5 år ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

ungefär 5 år ago

Solved


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

ungefär 5 år ago

Solved


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

ungefär 5 år ago

Solved


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

ungefär 5 år ago

Solved


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

ungefär 5 år ago

Solved


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

ungefär 5 år ago

Solved


03 - Matrix Variables 5
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3e.png>>

ungefär 5 år ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

ungefär 5 år ago

Solved


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

ungefär 5 år 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.

ungefär 5 år ago

Solved


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

ungefär 5 år 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...

ungefär 5 år ago

Solved


surface of a spherical planet
you just discovered its circumference, that is the input.

ungefär 5 år ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

ungefär 5 år ago

Solved


Calculate volume of box
Calculate the volume of box,hiven its sides

ungefär 5 år ago

Solved


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

ungefär 5 år ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

ungefär 5 år ago

Solved


Generate pi using logarithm
Generate pi using logarithm

ungefär 5 år ago

Solved


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

ungefär 5 år ago

Solved


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

ungefär 5 år ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

ungefär 5 år ago

Solved


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

mer än 5 år ago

Solved


04 - Scalar Equations 3
Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....

mer än 5 år ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

mer än 5 år ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

mer än 5 år ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

mer än 5 år ago

Load more