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

más de 1 año 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 ...

más de 1 año 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...

más de 1 año 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 ...

más de 1 año 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 ...

más de 1 año 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...

más de 1 año 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...

más de 1 año 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...

más de 1 año 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...

más de 1 año 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 ...

más de 1 año ago

Solved


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

más de 1 año 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...

más de 1 año 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...

más de 1 año 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....

más de 1 año 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...

más de 1 año ago

Solved


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

más de 1 año 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 ...

más de 1 año 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),....

más de 1 año 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. ...

más de 1 año 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...

más de 1 año 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 ...

más de 1 año 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

más de 1 año 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 ...

más de 1 año 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, ...

más de 1 año 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...

más de 1 año 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 ...

más de 1 año 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...

más de 1 año ago | 0

Answered
Variant Subsystem for code generation
Variant subsystems only support compile time selection of a variant subsystem via #ifdef macros inserted in the genearted code a...

más de 1 año ago | 0

| accepted

Answered
Simulation Pacing Raspberry Pi
The configuration parameter "Fixed-step size" units are seconds, so you need to set this parameter to 0.030 in order to get prop...

más de 1 año ago | 0

Answered
coder.extrinsic may not occur inside an expression. It may only occur at the top-level.
coder.extrinsic('jsonencode'); jdata - jsonencode(data);

casi 2 años ago | 0

Load more