Software Engineer, robotics enthusiast, electronics hobbyist

Solved

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

oltre 2 anni ago

Solved

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

oltre 2 anni ago

Solved

5 Prime Numbers

Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...

oltre 2 anni ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

oltre 2 anni ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

oltre 2 anni ago

Solved

Pentagonal Numbers

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

oltre 2 anni ago

Answered

java.lang.ClassNotFoundException in matlabR2014a

The culprit is likely the contents of the clipboard. Anything that's been copied while running the Jetbrains IDEs results in a s...

java.lang.ClassNotFoundException in matlabR2014a

The culprit is likely the contents of the clipboard. Anything that's been copied while running the Jetbrains IDEs results in a s...

oltre 2 anni ago | 14

| accepted

Solved

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 ago

Solved

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 ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

circa 3 anni ago

Solved

Pernicious Anniversary Problem

Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

circa 3 anni ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

circa 3 anni ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

circa 3 anni ago

Solved

Energy of a photon

Given the frequency F of a photon in giga hertz. Find energy E of this photon in giga electron volts. Assume h, Planck's ...

circa 3 anni ago

Solved

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 ago

Solved

How to subtract?

* Imagine you need to subtract one number from another using MATLAB. * You will not be using eval for this task. * Given two A...

circa 3 anni ago

Solved

The Hitchhiker's Guide to MATLAB

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

circa 4 anni ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

circa 4 anni ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

circa 4 anni ago

Question

Installing simulink support packages on MacOSX

I'm trying to install the simulink support packages for raspberry pi, arduino, etc and am running into a major hurdle. The inst...

oltre 5 anni ago | 0 answers | 0