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

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

9 maanden ago

Solved

Reverse Boggle

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10 maanden ago

Solved

Integer sequence - 2 : Kolakoski sequence

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

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

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

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

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

10 maanden ago

Solved

Alternating sum

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

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

10 maanden 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),....

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

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

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

10 maanden ago | 0

Answered

Pacing option not active in external mode

When running external mode, the code from the Simulink model is running in real-time using target OS timers/threads. It is not ...

Pacing option not active in external mode

When running external mode, the code from the Simulink model is running in real-time using target OS timers/threads. It is not ...

10 maanden ago | 0

Answered

I want to write a MATLAB script that tests all test suites in Simulink with extension .mldatx?

https://www.mathworks.com/help/matlab/ref/matlab.unittest.testsuite.fromfolder.html

I want to write a MATLAB script that tests all test suites in Simulink with extension .mldatx?

https://www.mathworks.com/help/matlab/ref/matlab.unittest.testsuite.fromfolder.html

10 maanden ago | 0

Answered

Syntax error in simulink

The following variables need to be defined in the MATLAB workspace: I, g, b, m, l, M thetadot is missing a paren. It hsould ...

Syntax error in simulink

The following variables need to be defined in the MATLAB workspace: I, g, b, m, l, M thetadot is missing a paren. It hsould ...

10 maanden ago | 0

Answered

MATLAB Crashing while simulating C MEX S functions with Structure with array data members.

These types of errors are best resolved by using a debugger to step through the generated code. In the S-Function Builder GUI, ...

MATLAB Crashing while simulating C MEX S functions with Structure with array data members.

These types of errors are best resolved by using a debugger to step through the generated code. In the S-Function Builder GUI, ...

10 maanden ago | 0

| accepted

Answered

Error generating c/c++ code

Do any of the directories in your working directory path have any strange characters or spaces in it? If so, try moving to a di...

Error generating c/c++ code

Do any of the directories in your working directory path have any strange characters or spaces in it? If so, try moving to a di...

11 maanden ago | 0

Answered

Simulink repeated operations (for loop)

create a subsystem and use simulink blocks to create your equation inside the subsystem. The subsystem will have one input and ...

Simulink repeated operations (for loop)

create a subsystem and use simulink blocks to create your equation inside the subsystem. The subsystem will have one input and ...

11 maanden ago | 0

Answered

Block settings of "Code generation storage class" missed in Simulink R2020b

The use the "Code Mappings" dialog to set storage class. This can be found in the lower left-hand corner of the Simulink Canvas...

Block settings of "Code generation storage class" missed in Simulink R2020b

The use the "Code Mappings" dialog to set storage class. This can be found in the lower left-hand corner of the Simulink Canvas...

11 maanden ago | 0