Solved


Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

2 years ago

Solved


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

2 years ago

Solved


factorial
calculate x!

2 years ago

Solved


PIN code

2 years ago

Solved


Determine if a four bar mechanism is of Grashof type
A four bar mechanism is composed of four links. if s is the smallest link, l the longest and p,q are the length of the other lin...

2 years ago

Solved


Replicate and Tile an Array
Replicate and tile an array. Example A = [1 2 3; 4 5 6; 7 8 9] B = Epli_and_Tile(A,1,2) B = [ 1 2 3 1...

2 years ago

Solved


DC-DC boost converter
Find the output voltage of a DC-DC boost converter given input voltage and the duty cycle ratio

2 years ago

Solved


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...

2 years ago

Solved


Case-insensitive Character Detection
Find the index of a particular character in a string ignoring case. Example Input: x = 'aAbhhfdf' n = 'a' ...

2 years ago

Solved


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

2 years ago

Solved


jogging?
Imagine x-y coordinate system and you are at the origin and your partner is on the x-axis at some small distance (d) away from y...

2 years ago

Solved


Swap

2 years ago

Answered
How would I remove multiple specific elements from an array.
If I have understood correctly, you could replace your second-last line of code with B(B==r) = [] Data = [923 916 932 927 908 9...

2 years ago | 0

Answered
is it possible to add simulink function in customized library?
You could add to a custom library a chart with your simulink function and then use this chart as base for your stateflow charts....

2 years ago | 0

Solved


Minimum possible M of the maximum side of a triangle of given area A.
Suppose a triangle has area A. Suppose it has three sides S1, S2, and S3. Suppose M = max([S1 S2 S3]). What is the minimum po...

2 years ago

Answered
Unrecognized function or variable 'a'.
Hi Dao, you have to add a, b and c in syms command: syms x y z a b c f = (a*x + b*y + c*z) * (asin(x*y*z)); disp('Dao ham r...

2 years ago | 0

Answered
How to safe data from multiple "To Workspace " blocks in one Matrix
Hi Dan, If I have understood correctly, you want solve the issue on simulink and not in post processing on MATLAB. In this case...

2 years ago | 0

| accepted

Solved


mathematics , probability problem
How many different result can we have, rolling k dice?

2 years ago

Solved


Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

2 years ago

Solved


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

2 years ago

Solved


Joules to Megatons of TnT
Given joules, J, make a function that converts to megatons of TNT.

2 years ago

Solved


Analyze observation data
Suppose you have the following data (A,B,C) in three-column format. A B C -------------------------- t=1 ...

2 years ago

Solved


Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

2 years ago

Solved


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

2 years ago

Solved


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

2 years ago

Solved


concatenate the elements
you should concatenate the elements of a matrix in one dimensional array, for example if the input is A = [1 2 3; 4 5 6; 7 ...

2 years ago

Solved


Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.

2 years ago

Solved


Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...

2 years ago

Solved


Compute the harmonic numbers
The nth <https://mathworld.wolfram.com/HarmonicNumber.html harmonic number> is defined as the sum of the reciprocals of the inte...

2 years ago

Load more