A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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, ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
coder.extrinsic may not occur inside an expression. It may only occur at the top-level.
coder.extrinsic('jsonencode'); jdata - jsonencode(data);

plus de 5 ans il y a | 0

Réponse apportée
Unable to Build Simulink model with embedded coder
It looks to me like the minGW make command is having a problem with the directory name "ruhi.phulbandhe". My suggestion would be...

plus de 5 ans il y a | 0

Réponse apportée
Does Simulink support CORBA?
MathWorks does not provide CORBA capability and I am alson not aware of any third party add-on support for CORBA. MathWorks d...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Use struct data from MATLAB workspace in Stateflow
Added 19b version.

plus de 5 ans il y a | 0

Réponse apportée
Use struct data from MATLAB workspace in Stateflow
In Stateflow, define your struct A as a Parameter. See attached example.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Passing bus signals through a switch block
Are you using Simulink Bus Objects to define the child buses? If not, try creating a Simulink.Bus object and setting the dataty...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Generate Parameters as input to step function
I don't believe this is possible for C++ code gen, but is possible for C code generation. You have to place the parameters in t...

plus de 5 ans il y a | 0

Réponse apportée
Interface/communicate data between SIMULINK and a C-program running on the same computer
If you have the source code for the C program, the best approach is to create a new Simulink block that contains your C code mod...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Vacuum and Radiative Heat Model
You should be able to use the Simcape Thermal library. The vacuum would be modeled with ~zero convection https://www.mathwor...

plus de 5 ans il y a | 0

Réponse apportée
Circuit Analysis using MATLAB
https://www.mathworks.com/help/symbolic/solve-differential-equations-using-laplace-transform.html

plus de 5 ans il y a | 0

Réponse apportée
Simulink. Is it possible to get the area's position by programming?
handle = find_system(gcs, 'FindAll', 'on', 'type', 'annotation', 'AnnotationType', 'area_annotation', 'selected', 'on') get_par...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to compile simulink models with variables of big size in the simulink workspace?
The problem is that the array is so big it causes the visdual studio compiler to fail due to lack of heap space. You can try to...

presque 6 ans il y a | 0

Réponse apportée
SIMULINK Datatype mysmatch error
In Shift Arithmetic block, make sure the "Binary points to shift" is set to zero.

presque 6 ans il y a | 0

Charger plus