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

casi 3 años ago

Answered

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

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

casi 3 años 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...

casi 3 años 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...

casi 3 años 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 = ...

casi 3 años 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...

casi 3 años 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...

casi 3 años 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...

casi 3 años 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...

casi 3 años ago

Solved

Extract leading non-zero digit

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

casi 3 años 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...

casi 3 años 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 ...

casi 3 años 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...

casi 3 años ago

Answered

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

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

casi 3 años ago | 1

Answered

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

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

casi 3 años ago | 0

Answered

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

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

casi 3 años ago | 0

| accepted

Solved

Basic electricity in a dry situation

⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ &#...

casi 3 años 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...

casi 3 años 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...

casi 3 años 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...

casi 3 años ago

Solved

I Plead the Fifth

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

casi 3 años 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://...

casi 3 años 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...

casi 3 años 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. ...

casi 3 años 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...

casi 3 años 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...

casi 3 años ago

Answered

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

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

casi 3 años ago | 0

| accepted

Answered

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

casi 3 años ago | 3

| accepted

Answered

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

How about this? [xi,yi] = meshgrid(0:0.01:10, 0:0.01:10); zi = griddata(demodata(:,1),demodata(:,2),demodata(:,3),xi...

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

How about this? [xi,yi] = meshgrid(0:0.01:10, 0:0.01:10); zi = griddata(demodata(:,1),demodata(:,2),demodata(:,3),xi...

casi 3 años ago | 1

| accepted

Answered

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

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

casi 3 años ago | 2

| accepted