A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


factorial
calculate x!

environ 3 ans il y a

A résolu


PIN code

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


Splitting Square - Problem the first

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


Swap

environ 3 ans il y a

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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....

environ 3 ans il y a | 0

A résolu


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

environ 3 ans il y a

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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];

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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.

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

Charger plus