Solved

Zero Cross

Write a function that counts the number of times n a signal x changes sign. Examples x = [1 2 -3 -4 5 6 -7 8 -9 10 11] ...

meer dan 4 jaar ago

Solved

Output any real number that is neither positive nor negative

Output any real number that is neither positive nor negative

meer dan 4 jaar ago

Solved

What's Your BMI?

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

meer dan 4 jaar ago

Solved

07 - Common functions and indexing 2

Define _eMat_: <<http://samle.dk/STTBDP/Assignment1_3e.png>> Calculate eMean as the mean across the rows of _eMat_. The an...

meer dan 4 jaar ago

Solved

Back to basics 11 - Max Integer

Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

meer dan 4 jaar ago

Solved

06 - Matrix Equations 1

Define the vectors _aVec_ and _bVec_ and the matrix _aMat_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http:/...

meer dan 4 jaar ago

Solved

Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]

The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

bijna 5 jaar ago

Solved

Equal to their cube

Tell me three real numbers that are equal to their cubes?

bijna 5 jaar ago

Solved

multiply by three

Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

bijna 5 jaar ago

Solved

MPS to MPH

Given the speed in miles per second, find the speed in miles per hour.

bijna 5 jaar ago

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

bijna 5 jaar ago

Solved

Back to Basics - New Data Type in R2016b - convert a char to a string

Convert an char array into a string.

bijna 5 jaar ago

Solved

Number of digits in an integer

Specifies how many digits in a given integer. Example: in=100 ==> out=3

bijna 5 jaar ago

Solved

04 - Scalar Equations 2

Define the variables a and b: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b.png>...

bijna 5 jaar ago

Solved

What percentage?

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

bijna 5 jaar ago

Answered

5th root with Newton-Raphson code

If n is the number whose 5th root has to be calculated: function f = fifth_root(n) xold=10; for i = 1:100 ...

5th root with Newton-Raphson code

If n is the number whose 5th root has to be calculated: function f = fifth_root(n) xold=10; for i = 1:100 ...

bijna 5 jaar ago | 0

| accepted

Solved

The 5th Root

Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

bijna 5 jaar ago

Question

5th root with Newton-Raphson code

This is a code I have created to calculate numerically the 5th root. Something is wrong. x = 0.05; x_old = 500; iter...

bijna 5 jaar ago | 2 answers | 0

Solved

Transpose

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

bijna 5 jaar ago

Solved

Counting down

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

bijna 5 jaar ago

Solved

Evaluating a polynomial

Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

bijna 5 jaar ago

Solved

Convert Two Character String into a Binary Vector

Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

bijna 5 jaar ago

Solved

Determine the square root

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

bijna 5 jaar ago

Solved

Create a two dimensional zero matrix

You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

bijna 5 jaar ago

Solved

counting groups!

This problem is about counting groups. Example If you have x: x = [0.8 0.8 0.8 0.3 0.3 0.4 0.5 0.6 0.6 0.9] then a...

bijna 5 jaar ago

Solved

Sum of series VII

What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

bijna 5 jaar ago