Beantwortet
Speeding up Simulation with Higher Order Transfer Function
The simulation runs in the order of e-8 seconds for a model containing a transfer function of 7th order in Simulink R2021a. If t...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Polyspace Code Prover User Program Error: No functions available that are out of class scope to call with -main-generator-calls option
This error indicates that the "-main-generator-calls" is defined as 'none'. This results in no function being called and the sub...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I create a Cap Simscape block for Isothermal Liquids (IL)?
Here are some next steps for you:As you rightly observed, there is no "Cap (TL)" equivalent for isothermal liquids (ILs), howeve...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why do I receive the error "Unable to find the 'CUDA_PATH' environment variable" when using the GPU Coder function "coder.checkGpuInstall"?
GPU Coder uses environment variables to locate the necessary tools, compilers, and libraries required for code generation. If yo...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How do I control the execution of class-based unit tests using the coder.runTest function?
There is a way you can do this using the coder.runTest function. See the steps below. This answer uses the same file names used ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Is it possible to use createpde for an 'electromagnetic' model in R2019b?
As mentioned in the Release Notes: https://www.mathworks.com/help/pde/release-notes.html The structured workflow for 2D electrom...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I identify and remove missing (and not needed) dependencies from a Simulink project (in R2018a)?
In R2020b, we introduced a feature in the Dependency Analyzer where you can locate the individual blocks and lines of code that ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
What are the different types of "operating point" features in Simulink?
In Simulink, there are three different features which are referred to as "operating points". The three "operating point" feature...

etwa ein Monat vor | 1

| akzeptiert

Beantwortet
How do I use External Mode from the command line?
It depends on how you are going to deploy your Simulink model onto the target. There are three options outlined below.Using a Ha...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I append custom macro names to generated code in Embedded Coder?
You can append the custom macro name in the generated code using Memory Sections. The documentation on how to achieve this can b...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why do I get the error 'Too many input arguments', when executing 'tx(data,fc)'?
The function call should be modified as tx(data) instead of tx(data, fc), as specified in this example: http...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
When do I use Stateflow subcharts/atomic subcharts?
Subcharts/atomic subcharts can be thought of as Stateflow's version of subsystems/atomic subsystems. In this way, they mirror in...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How do I change the Python version used by "mwpython"?
The reason that "mwpython" invokes Python 2.7 is because this is the default Python installation provided on Mac computers. If ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How do I navigate to a block in my model from the command line without using "gcb"?
You can do this using the "hilite_system" command. For more information on the "hilite_system" function and how to use it, pleas...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I create easily readable XML files with clear indentation and newlines?
The XML file can be made more readable, rather than compact, in a couple of ways depending on your workflow. You may be using ei...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I retrieve the output if I execute an INSERT query with an OUTPUT clause with the Database Toolbox?
You should use the 'fetch' command directly with your SQL query, rather than using the 'exec' function. For example: % conn = d...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Quadratic constraint handling slow with transpose operator in 'prob2struc'
This is an expected behavior of the 'prob2struc' function. When using column vectors to define constraints, the function slows d...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How does Simscape Multibody decide how to interpret XML files?
The XSD files available at the following link most directly describes how Simscape Multibody interprets XML imports: https://www...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Linear indexing for multi-dimensional struct array in C++ API
Linear indexing can be achieved using the 'matlab::data::TypedIterator<T>'. This is a templated C++ class which provides r...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Is it possible to keep an AppDesigner GUI always on top?
Starting in R2021a, you can use the 'WindowStyle' property to create UI figures that remain in the foreground. To keep a specifi...

etwa ein Monat vor | 3

| akzeptiert

Beantwortet
How can I obtain the Simulink Test Manager test assessment results programmatically in MATLAB R2021a?
The reason the code snippet does not work in release R2021a is that in MATLAB R2022b, "dataset" is a "Simulink.SimulationData.Da...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I obtain the output of iterative test cases using the Simulink Test Manager programmatically?
If there are iterations under a test case, the "TestCaseResult" object itself does not run the verification anymore. Instead, it...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why does the code generated following "Generate C++ Classes from MATLAB Classes Using MATLAB Coder" differ from the code shown in the video?
This is due to an optimization setting for inlining user functions introduced in MATLAB R2020b after this video was created in M...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why does adding/removing a scope block from my Simulink model affect code coverage results in R2021a?
In Simulink, when one switch block is upstream from another switch block, Simulink performs Conditional Branch Optimization.&nbs...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How to access external helper functions in apps created using App Designer?
For calling  'helperscript1.m' and 'helperscript2.m' functions from the app, the functions have to be on the MATLAB pa...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why Simscape variables are hard-coded in the generated code?
The variables listed in the "Variables" settings are automatically configured as "Run-time" tunable if they are associated with ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why is there a violation on MISRA-C:2012 Rule 8.7 with Polyspace Bug Finder R2021a?
The MISRA-C:2012 8.7 violation on "FlushDataCache" is a true positive in Polyspace Bug Finder R2021a. To work around this issue...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Can an S-Function builder input be symbolic?
S-Function Builder in R2021a does not currently support symbolic dimensions. If you want to continue down the route of using S-F...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why does my Polyspace Code Prover Analysis only show coding standards results in the Dashboard and no Code Prover results?
There are two reasons why this might happen. 1. In the configuration pane under Code Prover Verification -> Precision, check ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How is the building and terrain material defined in the Longley-Rice propagation model used by Antenna Toolbox?
Both building and terrain materials default to concrete. You cannot change the building and terrain material in the Longley-Rice...

etwa ein Monat vor | 0

| akzeptiert

Mehr laden