A résolu


Basic electricity in a dry situation
&#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#...

environ 5 ans il y a

A résolu


Spot the First Occurrence of 5
This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

environ 5 ans il y a

A résolu


MATLAB Counter
Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b. E...

environ 5 ans il y a

A résolu


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

environ 5 ans il y a

A résolu


Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

environ 5 ans il y a

A résolu


ASCII Birthday Cake
Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string wit...

environ 5 ans il y a

A résolu


Missing five
Convert decimal numbers to a base-9 notation missing the digit *5* <<http://www.alfnie.com/software/missing5.jpg>> Too man...

environ 5 ans il y a

A résolu


Polarisation
You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...

environ 5 ans il y a

Réponse apportée
Could someone please tell me How to plot dashline output in bar chart?
The following article has an example for hatched pattern for bar plot and you need download the hatchfill in file exchage. Crea...

environ 5 ans il y a | 0

A résolu


Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

environ 5 ans il y a

A résolu


Circle/Pentagon Overlap
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

environ 5 ans il y a

A résolu


Inscribed Pentagon?
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

environ 5 ans il y a

A résolu


Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

environ 5 ans il y a

A résolu


Pentagonal Numbers
Your function will receive a lower and upper bound. It should return all pentagonal numbers within that inclusive range in ascen...

environ 5 ans il y a

A résolu


I Plead the Fifth
Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

environ 5 ans il y a

A résolu


The Top 5 Primes
This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

environ 5 ans il y a

A résolu


Breaking Out of the Matrix
Do you want to take the Red Pill, or the Blue Pill? If you take the Blue Pill, you will simply pass along to the next problem...

environ 5 ans il y a

A résolu


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

environ 5 ans il y a

A résolu


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

environ 5 ans il y a

Réponse apportée
Why does chi2gof rejects normal hypothesis when giving normal distributed data?
You need a even bigger sample size for achieving high p value. pd = makedist('Normal'); rng default; % for reproducibility x...

environ 5 ans il y a | 0

Réponse apportée
extract numbers from cells
s={'Gain=2M' 'Gain=500k' 'Gain=20M'}; n = length(s); g = zeros(n, 1); for i=1:n tmp = strrep(s{i}, 'Gain=', ''); ...

environ 5 ans il y a | 0

Réponse apportée
How to robustly parse string into output arguments, function handle and input arguments
It will be a challenging task. Hope the following can help t =mtree('[ out1, out2 ] = name_of_a_function(in1, in2, in3);') du...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How do I get back filtered data using 'filter' after after getting the digital filter from bandpass?
% load data data = randn(512, 1); fs = 24; figure % design filter, filter the data, plot the results bandpass(data,[1.9 4.1...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Choose the lowest value and jump into the correct if
A=1; B=2; C=3; z = [A, B, C]; % put variables in a vector [~, idx] = min(z); % idx tells which variable is the minimum ...

environ 5 ans il y a | 0

| A accepté

A résolu


matrix zigzag
Unfold a 2-D matrix to a 1-D array in zig-zag order, e.g., for matrix [ 1 2 3 ; 4 5 6 ; 7 8 9 ] the resulting 1-...

environ 5 ans il y a

A résolu


Back to basics 20 - singleton dimensions
Covering some basic topics I haven't seen elsewhere on Cody. Remove the singleton dimensions from the input variable (e.g. if...

environ 5 ans il y a

A résolu


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

environ 5 ans il y a

A résolu


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

environ 5 ans il y a

A résolu


Armstrong Number
Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-D...

environ 5 ans il y a

A résolu


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

environ 5 ans il y a

Charger plus