Gelöst


Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input is n=4 th...

10 Monate vor

Gelöst


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

10 Monate vor

Gelöst


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

10 Monate vor

Gelöst


y equals x divided by 2
function y = x/2

10 Monate vor

Gelöst


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

10 Monate vor

Gelöst


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

10 Monate vor

Gelöst


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

10 Monate vor

Gelöst


02 - Vector Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

10 Monate vor

Gelöst


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

10 Monate vor

Gelöst


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

10 Monate vor

Gelöst


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

10 Monate vor

Gelöst


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

10 Monate vor

Gelöst


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

10 Monate vor

Mehr laden