Solved


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

ungefär 4 år ago

Solved


Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

ungefär 4 år ago

Solved


Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

ungefär 4 år ago

Solved


Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...

ungefär 4 år ago

Solved


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

ungefär 4 år ago

Solved


Square root of a number
Write a code that will output the square root of x.

ungefär 4 år ago

Solved


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

ungefär 4 år ago

Solved


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

ungefär 4 år ago

Solved


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

ungefär 4 år ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

ungefär 4 år ago

Solved


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

ungefär 4 år ago

Solved


ASCii Code
Using Matlab get the ASCii for '?'

ungefär 4 år ago

Solved


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

ungefär 4 år ago

Solved


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

ungefär 4 år ago

Solved


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

ungefär 4 år ago

Solved


Complex number
For complex number c=a+bi, write code that will add a and b together.

ungefär 4 år ago

Solved


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

ungefär 4 år ago

Solved


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

ungefär 4 år ago

Solved


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

ungefär 4 år ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

ungefär 4 år ago

Solved


Create the following sequence : 0 1 1 4 9 25 64 169 ...
The sequence 0, 1, 1, 4, 9, 25, 64, 169, ... represents the square of the sequence of Fibonacci numbers. Let n repres...

ungefär 4 år ago

Solved


Palindrome numbers
Find the palindrome numbers (two or more digits) from 1 to n where n is the number passed to the function.

ungefär 4 år ago

Solved


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

ungefär 4 år ago

Solved


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

ungefär 4 å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 4 år ago

Solved


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

ungefär 4 år ago

Solved


Your favourite city!
Type your favourite city.

ungefär 4 år ago

Solved


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

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

ungefär 4 år ago

Solved


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

ungefär 4 år ago

Load more