Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

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

circa 3 anni fa | 0

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

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

circa 3 anni fa | 0

Risposto
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=', ''); ...

circa 3 anni fa | 0

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

circa 3 anni fa | 0

| accettato

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 0

| accettato

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Risolto


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

circa 3 anni fa

Carica altro