Risolto


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

circa 4 anni fa

Risolto


wipe out!
make all the elements in given x zero.

circa 4 anni fa

Risolto


How to permute given 3d matrix?
A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

circa 4 anni fa

Risolto


Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

circa 4 anni fa

Risolto


determine amount cookies left
started with 3 cookies and you never ate any how many are left

circa 4 anni fa

Risolto


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle,...

circa 4 anni fa

Risolto


CARDS PROBLEM
Read my mind and tell me the card number that I have now in my hands.

circa 4 anni fa

Risolto


Weighted moving average
x1=[1 2 1]; y1=[1 2 2 4 5 6 6 8]; Make function for weighted moving average. z(i)=(x1(i)*y1(i)+x1(i+1)*y1(i+1)+x1(i+2)*y1...

circa 4 anni fa

Risolto


Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...

circa 4 anni fa

Risolto


Rotate Matrix Clockwise (45 Degree)
*Matrix (3x3 only) rotation clockwise*: 2 inputs: *x* matrix and *n* times. output: *y* matrix with *n x 45* degree ro...

circa 4 anni fa

Risolto


Bubble sort
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

circa 4 anni fa

Risolto


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

circa 4 anni fa

Risolto


Sideways sum
Given natural number calculate its _population count_.

circa 4 anni fa

Risolto


Calculate numerical integration.
x=0:0.01:1 y=@(x)x.^2 Using given two inputs(x and y), conduct numerical integration in x. (hint: trapz)

circa 4 anni fa

Risolto


Ounces to Kilograms
convert ounces to kilograms, easy

circa 4 anni fa

Risolto


lb to kilogram
convert lb to kilogram units, easy

circa 4 anni fa

Risolto


Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

circa 4 anni fa

Risolto


Rankine to Celsius Converter
Given input R, degrees Rankine, convert into degrees Celsius.

circa 4 anni fa

Risolto


Calculate correlation.
There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

circa 4 anni fa

Risolto


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

circa 4 anni fa

Risolto


Analyze observation data
Suppose you have the following data (A,B,C) in three-column format. A B C -------------------------- t=1 ...

circa 4 anni fa

Risolto


Solve expression III
Solve expression for given vector x. Expression = (tan(2*x^2+7*x-30.25)+log(x^3-2.25))/(nthroot(sin(x^3)^2+1/5*log(x^4-2.5),3))...

circa 4 anni fa

Risolto


Vector parallel to plane?
Given the coefficients of the equation which defines a plane as follows: ax+by+cz=d, return a boolean indicating whether the 2n...

circa 4 anni fa

Risolto


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

circa 4 anni fa

Risolto


Spherical Volume
Calculate the volume of a sphere.

circa 4 anni fa

Risolto


Convert from integer to binary
if true % decimalToBinaryVector(x) end

circa 4 anni fa

Risolto


Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square. ...

circa 4 anni fa

Risolto


Decimal to binary conversion (without using built-in function)
convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

circa 4 anni fa

Risolto


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

circa 4 anni fa

Risolto


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

circa 4 anni fa

Carica altro