Two-output anonymous function?
Return a function handle that when applied to an input, it produces two outputs: the first is the same as the input, and the sec...
約13年 前
解決済み
Become the leader
The goal of this problem is the same as the goal of the rest of them: *become the leader*.
Actually, you can only solve this ...
約13年 前
解決済み
Duplicate a character
Duplicate a character 'n' times.
Example 1: str='a' n=5
output='aaaaa'
Example 2: str='*' n=3
output='***'
matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)
約13年 前
解決済み
Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides.
Output(b):
* Is true if there are any 3 va...
約13年 前
解決済み
Vector of numbers divisible by 3
* Input(n) - any integer
* Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0
Examples:
* n=6...
約13年 前
解決済み
Number of Circles in a Number
Given a number, return the number of closed 'circles' in the base 10 numerical representation.
Note: the number 4 has no circ...
約13年 前
解決済み
Given area find sides
In a right angle triangle given area 'A'
one arm=x, another arm=2x
then find the value of x.
For example, area A=400 then ...
Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector.
For example:
x = [6 10 5 8 9 NaN 23 9 7 3 21 ...
Generate a string like abbcccddddeeeee
This is the string version of Problem 1035. <http://www.mathworks.com/matlabcentral/cody/problems/1035-generate-a-vector-like-1-...
Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times.
Examples :
n=2, A=[1 2 3] -> [1 1 2 2 3 3]
n=0...
約13年 前
解決済み
Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.