Risolto


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

circa 4 anni fa

Risolto


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


Find the max element of the array
Find the max element of the array

circa 4 anni fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


Negative matrix
Change the sign of all elements in given matrix.

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

circa 4 anni fa

Risolto


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

circa 4 anni fa

Risolto


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

circa 4 anni fa

Risolto


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

circa 4 anni fa

Risolto


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

circa 4 anni fa

Risolto


Is my wife right?
Regardless of input, output the string 'yes'.

circa 4 anni fa

Risolto


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

circa 4 anni fa

Risolto


Area of rhombus
Calculate the rhombus area

circa 4 anni fa

Risolto


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


radius of a spherical planet
You just measured its surface area, that is the input.

circa 4 anni fa

Risolto


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

circa 4 anni fa

Risolto


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

circa 4 anni fa

Risolto


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


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

circa 4 anni fa

Risolto


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

circa 4 anni fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

circa 4 anni fa

Risolto


Temperature Conversion 3

circa 4 anni fa

Risolto


Temperature Conversion 2

circa 4 anni fa

Carica altro