Community Profile

# Michal Dobai

Active since 2017

All

#### Content Feed

View by

Solved

Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

plus de 4 ans ago

I want to take difference of column A (first column in sheet_1) and column B (also first column in sheet_2). Output should be file C in workspace.
So you have excel file containing two sheets. And you want to: * subtract numbers in column A in |sheet_2| from numbers in co...

plus de 4 ans ago | 0

| accepted

Solved

Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

plus de 4 ans ago

Solved

Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

plus de 4 ans ago

Solved

Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

plus de 4 ans ago

Solved

QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

plus de 4 ans ago

Solved

Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

plus de 4 ans 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...

plus de 4 ans 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...

plus de 4 ans ago

Solved

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

plus de 4 ans ago

Solved

Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

plus de 4 ans ago

Solved

Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

plus de 4 ans ago

Solved

Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

plus de 4 ans ago

Edit Field labels and edit field numeric loop
This might be one way to do it: First, you have to create new properties to hold handles of newly created controls: Typ...

plus de 4 ans ago | 2

How to two Y axies plot in app designer?
You can try this: plot(app.UIAxes,[1 2 3 4],[3 5 2 6],'-r'); hold(app.UIAxes); plot(app.UIAxes,[1 2 3 4],[4 6 3 7]...

plus de 4 ans ago | 0

What does 'imfuse' exactly do and how does it differ from 'imadd'?
*|<https://www.mathworks.com/help/images/ref/imfuse.html imfuse>|* can combine input images in several different ways. You can s...

plus de 4 ans ago | 0

| accepted

Solved

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

plus de 4 ans ago

Solved

The Glass Half Full
Identical glasses are placed in a triangular tower structure, such that the top level (L = 1) comprises one glass, the next leve...

plus de 4 ans ago

Solved

Van Eck's Sequence's nth member
Return the Van Eck's Sequence's nth member. For detailed info : <http://oeis.org/A181391 OEIS link> and <https://www.theguard...

plus de 4 ans ago

Solved

Write c^3 as sum of two squares a^2+b^2
write c^3 as sum of two squares a^2+b^2. a and b must be integer and greater than zero. For example 5^3 = 2^2 + 11^2 5...

plus de 4 ans ago

Solved

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

plus de 4 ans 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://...

plus de 4 ans ago

Solved

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

plus de 4 ans 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. ...

plus de 4 ans ago

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

plus de 4 ans 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...

plus de 4 ans ago

Import from Excel and exclude fully blank rows
Just change this: I = any(cellfun(@(x)... to this: I = all(cellfun(@(x)... Why? Let' have a closer look at your ...

plus de 4 ans ago | 0

| accepted

How to merge two images of different sizes ??
You can just index elements in bigger image and assign them values of smaller image. combinedImage = biggerImage; s = si...

plus de 4 ans ago | 3

| accepted

How to plot a surface-like plot when the data is not regularly spaced

plus de 4 ans ago | 1

| accepted

Vectors Must be the Same Length
It's a lot more clear to me now. Or at least I hope so |:)| _(reference to <https://www.mathworks.com/matlabcentral/answers/3721...

plus de 4 ans ago | 2

| accepted