Roy Mathew
MathWorks
Followers: 0 Following: 0
Statistics
RANK
5.695
of 294.347
REPUTATION
8
CONTRIBUTIONS
0 Questions
4 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
2
RANK
of 20.105
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
How to Share Buffer Between C Function Code (C Caller, C Function, S Functions)?
For the C caller block, if you are using a shared header to specify static globals, the objects would be shared by all C Callers...
ongeveer een jaar ago | 0
Solved
Cricket - Sort Batters by Distance Run
Given a string vector of batters' names, a vector of the total number of runs they scored, a vector of the number of 4s they sco...
bijna 2 jaar ago
MATLAB Embedded Coder C-Caller Block: Custom type function variable arguments
C Caller directly calls the function from Simulink. So, the inputs to the function must be simulink compatible. If any of the in...
bijna 3 jaar ago | 0
"Custom" C Code with embedded Coder and TI C2000
C Function block needs the function prototype defined either in the Simulation target or for code generation only, in the C Func...
meer dan 3 jaar ago | 2
| accepted
C caller block: parse the function with no parameters and return values (usage of external functions inside)
You can do this in R2020b. See the documentation page for the parameter that enables this setting:Enable custom code globals as ...
ongeveer 4 jaar ago | 0
Solved
Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...
ongeveer 9 jaar ago
Solved
Produce a cosine wave
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>
ongeveer 9 jaar ago
Solved
Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];
meer dan 11 jaar ago
Solved
Encoding Google Maps Polylines
This problem is based on the Google Polyline Encoder algorithm. This is how Google Maps encodes a line for display on a map. You...
bijna 12 jaar ago
Solved
Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...
bijna 12 jaar ago
Solved
Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...
ongeveer 12 jaar ago
Solved
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
ongeveer 12 jaar ago
Solved
Is X a Fibonacci Matrix?
In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...
meer dan 12 jaar ago
Solved
Subset Sum
Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...
meer dan 12 jaar ago
Solved
Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
meer dan 12 jaar ago
Solved
It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more <http://www.snopes.com/language/apocryph/cambridge.asp here>) asserted that readers are re...
meer dan 12 jaar 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...
meer dan 12 jaar ago
Solved
Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...
meer dan 12 jaar ago
Solved
Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provide...
meer dan 12 jaar 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...
meer dan 12 jaar ago
Solved
Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...
meer dan 12 jaar ago
Solved
Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...
meer dan 12 jaar 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...
meer dan 12 jaar 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...
meer dan 12 jaar ago
Solved
Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...
meer dan 12 jaar ago
Solved
Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...
meer dan 12 jaar ago
Solved
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
meer dan 12 jaar ago
Solved
Greed is good - Simple partition P[n].
Find a simple partition P[n]. E.g. P[10] = 4 + 3 + 2 + 1. # There are many solutions, compute just one set. # Don't repeat ...
meer dan 12 jaar ago
Solved
Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...
meer dan 12 jaar ago
Solved
Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...
meer dan 12 jaar ago