Community Profile

# Michal Dobai

95 2017 年以降の合計貢献数

#### Michal Dobai's バッジ

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

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

| 採用済み

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

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

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

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

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

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

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

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

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

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

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

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

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

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

| 採用済み

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

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

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

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

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

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

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

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

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

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

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

| 採用済み

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

| 採用済み

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

| 採用済み

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

| 採用済み