Solved

Find the next state of a JK Flip-Flop

Find the next state (NS) of a JK Flip-Flop based on previous state (PS), inputs. Learn more about JK Flip-Flop theory here: ...

5 months ago

Solved

Find the starting index of a consecutive condition

Given a logical vector |v|, and a positive integer |n|, return the smallest index |i| that satisfies: all( v(i : i+n-1) ) =...

5 months ago

Solved

Sum the entries of each column of a matrix which satisfy a logical condition.

Given a numeric matrix A and a logical array L of the same size as A, return a row vector S containing the columnwise sums of th...

5 months ago

Solved

Track Logic

A sensor produces either a hit (1) or a miss (0) for a given target once per scan. The sensor is also equiped with a tracker whi...

5 months ago

Solved

Knights and Knaves (part 3)

_This is a Matlab adaptation of the_ <http://en.wikipedia.org/wiki/Knights_and_Knaves Knights and Knaves> _logical puzzles_. ...

5 months ago

Solved

Knights and Knaves (part 2)

_This is a Matlab adaptation of the_ <http://en.wikipedia.org/wiki/Knights_and_Knaves Knights and Knaves> _logical puzzles_. ...

5 months ago

Solved

Knights and Knaves (part 1)

This is a Matlab adaptation of the <http://en.wikipedia.org/wiki/Knights_and_Knaves Knights and Knaves> logical puzzles. You ...

5 months ago

Solved

Lights Out 13 - 5x5, three stages, x moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 12 - 5x5, three stages, <7 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 15 - 5x5, broken buttons I

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 14 - 5x5, four stages, x moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 11 - 5x5, with wrapping, x moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 10 - 5x5, with wrapping, 6 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 5 - 5x5, 10 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 9 - 5x5, light-only solution? II

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 8 - 5x5, light-only solution? I

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 7 - 5x5, x moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 6 - 5x5, 13 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 4 - 5x5, 8 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 3 - 5x5, 6 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 2 - 5x5, 4 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Lights Out 1 - 5x5, 3 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

6 months ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

6 months ago

Solved

Successive zeros

Suppose n is the number of digits a number contains. Now, 12032 - is a valid n=5 digit number. But 10023 - is defined as i...

6 months ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

6 months ago

Solved

Convert a vector into a number

This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

6 months ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

6 months ago

Solved

Successive zeros (harder)

The problem is from Problem 45436, <https://www.mathworks.com/matlabcentral/cody/problems/45436-successive-zeros> Suppose n i...

6 months ago

Answered

Creating a C from from a Script

Hi Jucimar, MATLAB Compiler will let you package your application with a GUI as described by Kojiro above. However, if you n...

Creating a C from from a Script

Hi Jucimar, MATLAB Compiler will let you package your application with a GUI as described by Kojiro above. However, if you n...

2 years ago | 1