Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...
4ヶ月 前
解決済み
Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...
4ヶ月 前
解決済み
Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.
4ヶ月 前
解決済み
NOT
If a not equal to zero, b = true, else, b = false.
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes.
---
You may already know how to find the logical indices o...
4ヶ月 前
解決済み
Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.
4ヶ月 前
解決済み
MATLAB 101: Basic Calculator
Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs:
The ...
4ヶ月 前
解決済み
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...
4ヶ月 前
解決済み
OR
If a greater than zero or c less than 10, b = true, else, b = false.
4ヶ月 前
解決済み
Count ones
Write a program to count number of ones (1s) in an integer variable input.
For example:
Input x=2200112231
output y=3
I...
4ヶ月 前
解決済み
Binary Coder
Take an input number and print the binary value of this number.
Find the Oldest Person in a Room
Given two input vectors:
* |name| - user last names
* |age| - corresponding age of the person
Return the name of the ol...
4ヶ月 前
解決済み
AND
If a greater than 0 and n less than 10, b = true, else, b = false.
(Checking a should be in one line by AND special sign in MAT...
4ヶ月 前
解決済み
Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x?
Image courtesy of Wikipedia.
4ヶ月 前
解決済み
Prime or No
If the number is prime, make theCase = "YES", else, make it "NO".
4ヶ月 前
解決済み
Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 .
example:
n=4
ans=
[1 1 1 1
1 0 0 1
...
4ヶ月 前
解決済み
Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2)
Example:
x=5
ans=
[1 0 0 0 1
1 0 0 0 1
...
4ヶ月 前
解決済み
Sum of series VI
What is the sum of the following sequence:
Σk⋅k! for k=1...n
for different n?
4ヶ月 前
解決済み
Rhombus
Get the area of the Rhombus using it's Diagonals.