已解决


Sum 1 to 100 even number
Write a Matlab program to add all the even numbers from 0 to 100 |

4 years 前

已解决


How tall are you?
measures your height forexample= 175cm 180cm 169cm

4 years 前

已解决


Times 11
Try out this test problem first. Given the variable x as your input, multiply it by eleven and put the result in y. Exampl...

4 years 前

已解决


Mo money, mo math 1! (★★★)
(adapted from Prob 9 Cody team) You have a vector where the elements represent the number of $20 bills, $10 bills, $5 bills, ...

4 years 前

已解决


Times 3
Try out this test problem first. Given the variable x as your input, multiply it by three and put the result in y. Example...

4 years 前

已解决


Find the y=(1:x)
Look at the question

4 years 前

已解决


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

4 years 前

已解决


Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

4 years 前

已解决


Convert hex color specification to MATLAB RGB
Here's something that comes up all the time if you deal with web pages. Given a <http://www.w3schools.com/html/html_colors.as...

4 years 前

已解决


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

4 years 前

已解决


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

4 years 前

已解决


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

4 years 前

已解决


Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

4 years 前

已解决


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

4 years 前

已解决


Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

4 years 前

已解决


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

4 years 前

已解决


Square
X is a number, write a code, where Y should be the square of X.

4 years 前

已解决


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

4 years 前

已解决


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

4 years 前

已解决


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

4 years 前

已解决


Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

4 years 前

已解决


Find the mean of a 2-D matrix after excluding elements of specified sub-matrix
You need to find the mean of a 2-D matrix after excluding elements which form an inner sub-matrix. e.g. If the input 2-D matrix ...

4 years 前

已解决


Perimeter of a square!
Calculate the circumference of the square whose side is n

4 years 前

已解决


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

4 years 前

已解决


Get the area of ​​the square.
Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

4 years 前

已解决


Spiral Out - 01
Create a spiral matrix ( clock-wise direction ) of size n. Try to do that without using the built-in function.

4 years 前

已解决


Compute the missing quantity among P, V, T for an ideal gas
Consider 100 mol of helium gas at a certain pressure (P), volume (V), and temperature (T). Assuming that the ideal gas law appli...

4 years 前

已解决


Equilateral Triangle
The length of one side of the equilateral triangle is a. Calculate the area of ​​the equilateral triangle.

4 years 前

已解决


Newton's Motion Law
F is force, m is mass, and a is acceleration. Calculate the force for an object.

4 years 前

已解决


Momentum of an Object
P is momentum, m is mass, and v is velocity. Calculate the momentum for an object.

4 years 前

加载更多