Community Profile

photo

Mark McBroom


Last seen: Today

MathWorks

309 total contributions since 2012

Contact

Mark McBroom's Badges

  • Commenter
  • Promoter
  • CUP Challenge Master
  • 6 Month Streak
  • Knowledgeable Level 3
  • Revival Level 3
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
FMU Import Script for Simulink
If you set the FMUName property then you should not get prompted. YOu can do this either by adding additional arguments to the ...

circa 8 ore ago | 0

Solved


Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...

8 giorni ago

Solved


Find state names that start with the letter N
Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

8 giorni ago

Answered
How to connect bus signal with different data size using multiport switch?
I made a number of changes to your model, most importably was to remove mux blocks. Mux blocks should not be used. Use Vector/...

13 giorni ago | 0

| accepted

Answered
How to connect bus signal with different data size using multiport switch?
On the Multi-port switch block, on the Signal Attirbutes tab, check the box "Allow different data input sizes".

17 giorni ago | 0

Solved


Scrabble Scores - 6
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

23 giorni ago

Solved


Scrabble Scores - 5
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

23 giorni ago

Solved


Scrabble Scores - 4
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

23 giorni ago

Solved


Scrabble Scores - 3
This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

23 giorni ago

Solved


Reverse Boggle
*Description* In the classic Parker Brothers game <http://en.wikipedia.org/wiki/Boggle Boggle>, players find words from a 4x4...

23 giorni ago

Answered
How to Suppress Mixed Expressions for Pooled Parameter in generated Autocode?
Change the "Shared code placement" option to "Shared location" and then the option for "Generate shared constants" will no longe...

24 giorni ago | 0

Answered
Problem synchronization between a Simulink publisher and subscriber
Simulink does not simulate in real-time, so there will always be variation in the execution speeds of Simulink models. You can ...

24 giorni ago | 0

Answered
sendmail function in simulink
You should be able to do this inside a MATLAB Function block that is placed into the Simulink model. You will have to designate...

24 giorni ago | 0

Answered
Time dependent variable during simulation
The sim() command doesn't return until the simulation is complete. An easy way to accomplish what you want to do is to use the ...

24 giorni ago | 0

Answered
Communicate Signals Between Two Simulations on the Same Computer?
The UDP/TCP blocks can be used to share data between two different Simulink models running in different MATLAB instances on the ...

24 giorni ago | 0

Answered
Constant block only outputs a single data point
What is the sample time for the constant block? The default is "inf" which indicates constant sample time. Change this to -1 o...

24 giorni ago | 0

Answered
Unkown error in stateflow simulink
It looks like you are attempting to access P1 and P2 in multiple state machines. You have defined P1 and P2 as global variables...

circa un mese ago | 0

| accepted

Answered
How to set default value for instance parameters/Simulink.Parameter?
You will need to configure the parameter as a model argument and then specify values for each isntance of the model block. It i...

circa un mese ago | 1

Answered
How do I make a device driver block that outputs data from a global array?
You will need create the matrix in your MATLAB function and then pass it to your C Function as an argument, encapsultated in teh...

circa un mese ago | 0

Solved


Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

circa 2 mesi ago

Solved


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

circa 2 mesi ago

Solved


Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...

circa 2 mesi ago

Solved


"Look and say" sequence
What's the next number in this sequence? * [0] * [1 0] * [1 1 1 0] * [3 1 1 0] * [1 3 2 1 1 0] This a variant on the w...

circa 2 mesi ago

Solved


Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

circa 2 mesi ago

Solved


Golomb's self-describing sequence (based on Euler 341)
The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

circa 2 mesi ago

Solved


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

circa 2 mesi 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 ...

circa 2 mesi ago

Solved


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

circa 2 mesi ago

Solved


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

circa 2 mesi ago

Answered
Accessing MATLAB System workspace while running a Simulink model on external mode
The best way to debug a Simulink model while it is running on the target system is to put the Simulink model in External mode an...

2 mesi ago | 0

Load more