98 total contributions since 2019

DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks

Answered

How to make Embedded coder use isnan C-API than implementing custom code?

I believe Code Replacement Customization can be the possible solution. To implement that, you could develop a code replacement ...

How to make Embedded coder use isnan C-API than implementing custom code?

I believe Code Replacement Customization can be the possible solution. To implement that, you could develop a code replacement ...

8 months ago | 0

Answered

How do I find the lowest values in one array that are greater than each value from another array?

Hello Liam, Can you try if the following code helps with the problem you have? z=zeros(1,0); %defining an array z to store out...

How do I find the lowest values in one array that are greater than each value from another array?

Hello Liam, Can you try if the following code helps with the problem you have? z=zeros(1,0); %defining an array z to store out...

9 months ago | 0

Answered

How to make a diamond with asterisks?

Hello Juan, I believe a question similar to yours has been answered in this MATLAB Answers thread. Check and see if it helps wi...

How to make a diamond with asterisks?

Hello Juan, I believe a question similar to yours has been answered in this MATLAB Answers thread. Check and see if it helps wi...

9 months ago | 0

| accepted

Answered

coder.checkGpuInstall() error

Hello Xabier, Can you check if the gpu build details you want is returned by the gpuDevice command?

coder.checkGpuInstall() error

Hello Xabier, Can you check if the gpu build details you want is returned by the gpuDevice command?

9 months ago | 0

Answered

I want to plot a graph as shown below, For that non linear system, i have written a Matlab script but i can't really identify how do i plot such graph.

Hello Yash, If issue you are facing is in plotting the graphs in one figure, you can use the hold command while plotting. And...

I want to plot a graph as shown below, For that non linear system, i have written a Matlab script but i can't really identify how do i plot such graph.

Hello Yash, If issue you are facing is in plotting the graphs in one figure, you can use the hold command while plotting. And...

9 months ago | 0

| accepted

Answered

Please help! Trying to convert greyscale image back to rgb. error "rbg" not defined when using conversion code.

I think it is saying 'rbg' not found becuase it seems to be a typographical error. Try 'imshow(rgb)' and see if it solves the is...

Please help! Trying to convert greyscale image back to rgb. error "rbg" not defined when using conversion code.

I think it is saying 'rbg' not found becuase it seems to be a typographical error. Try 'imshow(rgb)' and see if it solves the is...

9 months ago | 0

Answered

How to start code generation programmatically

Hello Christer, Check and see if these documentation links help: Embedded coder MATLAB coder Simulink coder Also you can us...

How to start code generation programmatically

Hello Christer, Check and see if these documentation links help: Embedded coder MATLAB coder Simulink coder Also you can us...

9 months ago | 0

Answered

How to plot A Curve That Connects The Highest Values in Y-Axis

Hello Yaser, I believe the issue you are facing can be solved in two steps: Find the maximum value corresponding to each value...

How to plot A Curve That Connects The Highest Values in Y-Axis

Hello Yaser, I believe the issue you are facing can be solved in two steps: Find the maximum value corresponding to each value...

9 months ago | 0

| accepted

Answered

Can I fix the figure(plot size) with axis limit changed?

Hello Soonwoo, I think the issue you are describing can be bypassed by fixing the figure size. You can visit this MATLAB Answer...

Can I fix the figure(plot size) with axis limit changed?

Hello Soonwoo, I think the issue you are describing can be bypassed by fixing the figure size. You can visit this MATLAB Answer...

9 months ago | 0

Solved

Scrabble Scores

Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

10 months ago

Solved

Counting Sequence

Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

10 months ago

Solved

Maximum running product for a string of numbers

Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

10 months ago

Solved

Duplicates

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

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

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

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

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

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

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

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

10 months ago

Solved

Find the alphabetic word product

If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

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

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

10 months ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

10 months ago

Solved

Return a list sorted by number of occurrences

Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

10 months ago

Solved

Pascal's Triangle

Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

10 months ago

Solved

Quote Doubler

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

10 months ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

10 months ago

Answered

Change units of colorbar

Hello Andres, What I understood from your question is that you just want to change the X-axis labels. Since you said that you a...

Change units of colorbar

Hello Andres, What I understood from your question is that you just want to change the X-axis labels. Since you said that you a...

10 months ago | 0

Answered

Help "Page not found" after installing a new version

Hello Michael, As far as I could understand a similar question has been posted on MATLAB Answer. You can see the thread here an...

Help "Page not found" after installing a new version

Hello Michael, As far as I could understand a similar question has been posted on MATLAB Answer. You can see the thread here an...

10 months ago | 0