Kaprekar numbers
Test if the input is a Kaprekar number: <http://mathworld.wolfram.com/KaprekarNumber.html>. Return a logical true or false.
...
6年弱 前
解決済み
Woodall number
Test whether the input is a Woodall number: <http://en.wikipedia.org/wiki/Woodall_number>
_Please do not cheat by simply chec...
6年弱 前
解決済み
Convert a vector into a number
This is a sub problem related to this problem:
<http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...
6年弱 前
解決済み
The 5th Root
Write a function to find the 5th root of a number.
It sounds easy, but the typical functions are not allowed (see the test su...
6年弱 前
解決済み
Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish.
See the Wikipedia page for <http://en.wik...
6年弱 前
解決済み
Find out magnitude of vector
Find out magnitude of vector.
Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2)
Please don't use sum function.
If you l...
6年弱 前
解決済み
Energy of an object
Calculate the total mechanical energy of an object.
Total Energy= Potential energy + Kinetic energy
P.E.=m*g*h
K.E.=1/2...
6年弱 前
解決済み
Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.
UICBioE240 2.1
This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...
6年弱 前
解決済み
UICBioE240 problem 1.18
exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.
6年弱 前
解決済み
UICBioE240 problem 1.17
In the expression (2+5i), how does MATLAB read the expressions
A = 2+5i
B = 2+5*i
C = both are okay
Write capital letter a...
6年弱 前
解決済み
UICBioE240 problem 1.12
The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...