解決済み


Community Problem 500!
In honor of this being the 500th Community problem, see if you can create a function that has a Cody size of 500. It can do anyt...

1年以上 前

解決済み


My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

1年以上 前

解決済み


Matrix Generation.
if input n =1, generate a matrix y = [1]

1年以上 前

解決済み


find the relation...
if given input is 1, output is 4. if input is 55, output is 3136.

1年以上 前

解決済み


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

1年以上 前

解決済み


Convert Decimal Number to Hex number (including non integer value)
Convert Decimal Number to Hex number (including non integer value) E.X. (2598.675) in decimal = A26.ACCC in hexa

1年以上 前

解決済み


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

1年以上 前

解決済み


Converter temp 0 to 200 degree C to 4 to 20mA
Converter temp 0 to 200 degree C to 4 to 20mA (It is used in transmitter)

1年以上 前

解決済み


Repeat a string (not a character array)
True string are a relatively recent addition to MATLAB, first having been available in R2016. Strings contrast with character ar...

1年以上 前

解決済み


Sum of infinite series.

1年以上 前

解決済み


Triple function composition
Given three functions f,g and h, create the composed function y=f(g(h)). Example f = @(x) x+1 g = @(x) x/2 h = @(x) ...

1年以上 前

解決済み


Find argmax of a function
You are given vectors x and y (=f(x)). Return the element of x for which f(x) is maximized.

1年以上 前

解決済み


Did you say please? - Find one string within another without strfind or regexp/regexpi
For a given string sentence, determine if the string word 'please' is present or not. If so, return the string 'OK', else return...

1年以上 前

解決済み


calculate Compound Intrest
Calculate Compound Intrest for given data

1年以上 前

解決済み


Lateral Area of a Right Rectangular Pyramid

1年以上 前

解決済み


Combination of Vectors
Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

1年以上 前

解決済み


Happy Free Wednesday!
Just submit your solution on any Wednesday. *Related Challenges:* # Happy Free Wednesday! # Happy Free 2019! # Happy Fr...

1年以上 前

解決済み


Test within tolerance
Given a vector of experimental data, D, and a vector of truth data, T, return FALSE if any +/- errors (D-T) are outside a given ...

1年以上 前

解決済み


find location of indexes
Given a vector with integer values. Find the edge location of the stream of same value. For example: A=[0 0 0 1 1 1 1 2 2 ...

1年以上 前

解決済み


Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

1年以上 前

解決済み


polar inertia
given locations of a set of unit masses on complex plane, find polar moment of inerta about the origin. for example output 4 if ...

1年以上 前

解決済み


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

1年以上 前

解決済み


Calculate time taken by light to reach earth surface
We know the time(seconds) taken by light to reach surface of earth. What if the distance varies yearly or source of light moves ...

1年以上 前

解決済み


"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

1年以上 前

解決済み


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

1年以上 前

解決済み


Einsteinium-253 decay
Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is lef...

1年以上 前

解決済み


Low level NaN
I have a dataset. Columns represents different variables. A variable may start with NaN or any double type number. If it start...

1年以上 前

解決済み


Pluralization
Define function plu(n) that returns '' (an empty string) if n=1, or 's' otherwise. This is handy for displaying messages from a...

1年以上 前

解決済み


Find the same and successive values in a vector
Find the same and successive values in a vector. For example: Input x = [ 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 ] Start and end...

1年以上 前

解決済み


Longest Sequence of NaNs
In an array return the length of longest sequence of nans for each column. x = [ 2 3 1 2 5 6; nan nan 5 n...

1年以上 前

さらに読み込む