I am a satellite communication engineer, specialising in spectrum and regulatory engineering, interference analysis and frequency coordination.

I have been programming since the mid-1970s (I used to be able to code by hand-punching Hollerith Cards!) but for the past 20-years or so I have really not done much coding at all. I'm trying to remedy that by learning MATLAB!

Solved

Duplicate a character

Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

2 dagar ago

Solved

Insert zeros into vector

Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

3 dagar ago

Solved

No Twins?

Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

5 dagar ago

Solved

Remove NaN ?

input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

6 dagar ago

Solved

Matlab Basics - Create a row vector

Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

8 dagar ago

Solved

Number of toolboxes?

Return a number equal to the number of toolboxes available to the Cody solvers.

8 dagar ago

Solved

Find out missing number from a vector of 9 elements

You are given a vector of size 9, x = [x1 x2 x3 x4 x5 x6 x7 x8 x9] Elements of x may be randomly selected without repeati...

8 dagar ago

Solved

Number of Circles in a Number

Given a number, return the number of closed 'circles' in the base 10 numerical representation. Note: the number 4 has no circ...

9 dagar ago

Solved

Compute the missing quantity among P, V, T for an ideal gas

Consider 100 mol of helium gas at a certain pressure (P), volume (V), and temperature (T). Assuming that the ideal gas law appli...

10 dagar ago

Solved

Phoneword Translator

Given an alphanumeric telephone number (Ex. 1-800-COLLECT), return the purely numeric phone number as a vector. This problem use...

11 dagar ago

Solved

English to Pig Latin Translator

Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the wikipedia entry for Pig Latin): ...

12 dagar ago

Solved

The Dark Side of the Die

It is well-known that opposite sides of a classic hexahedral die add to 7. Given a vector of dice rolls, calculate the sum of th...

12 dagar ago

Solved

Check to see if a Sudoku Puzzle is Solved

*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

12 dagar ago

Solved

Return 'on' or 'off'

When the input is true, return 'on', otherwise, return 'off'.

13 dagar ago

Solved

Trimming Spaces

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

13 dagar ago

Solved

surface of a spherical planet

you just discovered its circumference, that is the input.

13 dagar ago

Solved

Make a Palindrome Number

Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

13 dagar ago

Solved

Remove the two elements next to NaN value

The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

14 dagar ago

Solved

Output any real number that is neither positive nor negative

Output any real number that is neither positive nor negative

14 dagar ago

Solved

Flip the bit

Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

14 dagar ago

Solved

Pattern matching

Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

14 dagar ago