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

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

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

10 meses 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?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

11 meses 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, ....

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

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

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

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

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

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

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

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

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

11 meses ago | 0