Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo?
Un número primo es cualquier número que solamente se puede dividir por 1 y ...
3年以上 前
解決済み
Calculate Wind Chill Factor
The NWS Wind Chill Temperature (WCT) index formula for calculating the dangers from winter winds and freezing temperatures:
Cal...
Latest Question On Cody
Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.
3年以上 前
解決済み
Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody.
Return a cell array of all MATLAB keywords
3年以上 前
解決済み
BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum.
Examp...
3年以上 前
解決済み
vector to string
Determine what the ASCII characters spell out.
Example:
input = [ 72 73 71 72]
output = 'HIGH'
Create a constant offset.
Add a constant offset to an array.
Example
a = [1 3 5 9]
offset = 2
y = [3 5 7 11]
3年以上 前
解決済み
Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].
3年以上 前
解決済み
No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...
3年以上 前
解決済み
Count decimal digits of a number
* Given an integer number you have to return the number of its digits.
* For example 248 has 3 digits and 1589 has 4 digits
...
3年以上 前
解決済み
Happy Free Wednesday!
Just submit your solution on any Wednesday.
*Related Challenges:*
# Happy Free Wednesday!
# Happy Free 2019!
# Happy Fr...