Beantwortet
Why do I get the error message 'Dot indexing is not supported for variables of this type.' when performing range analysis while generating fixed-point code in MATLAB R2025a?
The issue is happening because of use of a struct whose fields are not used for any computation. Fixed-Point Converter is lookin...

30 Tage vor | 0

| akzeptiert

Frage


Why do I get the error message 'Dot indexing is not supported for variables of this type.' when performing range analysis while generating fixed-point code in MATLAB R2025a?
When generating fixed-point code, when passing a struct with empty fields as an argument, performing range analysis on this argu...

30 Tage vor | 1 Antwort | 0

1

Antwort

Beantwortet
How can I change the parameters of a Simulink model during simulation?
There are many ways to achieve it, depending on your use case: 1. Saving and restoring the simulation state as the 'SimState': T...

30 Tage vor | 0

| akzeptiert

Beantwortet
How to resolve the error “We’re sorry, something went wrong” when publishing a GitHub Release to File Exchange?
To resolve this:Connect using Default Branch firstPublish a new version and switch to GitHub Releases For more details on connec...

30 Tage vor | 0

| akzeptiert

Frage


How to resolve the error “We’re sorry, something went wrong” when publishing a GitHub Release to File Exchange?
I want to publish my project from GitHub to MATLAB File Exchange. When I select GitHub Releases as the connection option, I am r...

30 Tage vor | 1 Antwort | 0

1

Antwort

Beantwortet
Why are the results different when I run a Simulink model containing Simscape blocks with a variable-step solver vs. when I run the same model but with some blocks compartmentalized in a subsystem?
This discrepancy in the results occurs due to creating a subsystem in a model with a "Variable-step" solver type setting wi...

30 Tage vor | 0

| akzeptiert

Frage


Why are the results different when I run a Simulink model containing Simscape blocks with a variable-step solver vs. when I run the same model but with some blocks compartmentalized in a subsystem?
I am running a Simulink model containing Simscape blocks, with a variable-step and automatic selection solver setting. Why do I ...

30 Tage vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to unload Java libraries in MATLAB R2024b?
It is possible to unload Java libraries in MATLAB, but only if they are the dynamic path. In order to be on the dynamic path, th...

30 Tage vor | 0

| akzeptiert

Frage


How to unload Java libraries in MATLAB R2024b?
I have a custom Java library in MATLAB R2024b, more specifically a JAR file, that lives in Git. Anytime I switch Git branches, t...

30 Tage vor | 1 Antwort | 0

1

Antwort

Beantwortet
How do I include multiple C library headers with the same include guards in Simulink?
There are two ways to do this: 1) Encapsulate the C Function block in a model reference (see the screenshot below). This way one...

30 Tage vor | 0

| akzeptiert

Beantwortet
Can I include only specific MATLAB DLL files, like "MathWorks.MATLAB.Types.dll", in an external .NET application?
Only using specific MATLAB DLL files in an application without having MATLAB or MATLAB Runtime installed is not a supported work...

30 Tage vor | 0

| akzeptiert

Beantwortet
How do I Transmit to Multiple SPI Devices on the Same Module in Simulink on a C2000?
Each SPI Transmit block is only for use with one peripheral device. Not being able to change the chip select pin during use is i...

30 Tage vor | 0

| akzeptiert

Beantwortet
Why do I get "No Internet Connection" error when trying to run "demos" and "documentation" in MATLAB R2023a?
The "no internet connection" error that occurs when attempting to open external or internal windows for documentation and demos ...

30 Tage vor | 0

| akzeptiert

Beantwortet
Can I use the "help" function to display extensive function documentation in the R2025a MATLAB Command Window?
The update to the "help" function was introduced in R2024b, where the function now displays abbreviated help text in the Command...

30 Tage vor | 0

| akzeptiert

Beantwortet
How to ensure changes made by "Parameter Writer" block are retained after simulation in MATLAB R2024b?
The "Parameter Writer" block only modifies parameter values in memory during simulation. As a result, the actual values of the p...

30 Tage vor | 0

| akzeptiert

Beantwortet
Why are "Argument" parameters not exported in FMU 2.0 in MATLAB R2024b?
Some parameters may not be exported as FMU arguments if their value does not impact the simulation. This may happen if for examp...

30 Tage vor | 0

| akzeptiert

Frage


mwArray vs MATLAB Data API - Which API should I use when using MATLAB Compiler SDK?
When developing libraries with MATLAB Compiler SDK, I see most deployment targets generally have two paths for handling data exc...

30 Tage vor | 1 Antwort | 1

1

Antwort

Beantwortet
Embedded Coder が "memset" を使用してハードコード定数の代わりにするにはどうしますか?
"インライン不変信号" 最適化が有効になっていることを確認します。 https://jp.mathworks.com/help/rtw/ug/inlining-invariant-signals.html この設定は "memset" の使用と相互作用し、...

30 Tage vor | 0

| akzeptiert

Frage


Embedded Coder が "memset" を使用してハードコード定数の代わりにするにはどうしますか?
Embedded Coder が "memset" を使用してハードコード定数の代わりにするにはどうしますか? 定数ブロックに 100e3 要素の配列があります。"Use memset to initialize floats and doubles to...

30 Tage vor | 1 Antwort | 0

1

Antwort

Beantwortet
How can I run MATLAB code from within a GitHub Codespace?
Because a GitHub codespace runs inside of a Docker container (called a dev container), any feature of the MATLAB VS Code extensi...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How do I resolve 'Bundle' error messages?
Try the following steps to resolve Bundle errors in MATLAB/Simulink:Perform a clean installation of MATLAB as explained in ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Which "optimoptions" should be used for "fmincon" to optimize a cam-based transmission design using the Optimization Toolbox in MATLAB R2023b?
Here are the "optimoptions" that can be leveraged using "fmincon()" for the cam-based transmission design 1) Regarding sharing t...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why I am unable to read data into Simulink using "UDP Receive" blocks on my Windows PC?
When using UDP communication in your Simulink model running on a desktop PC, make sure to use the correct UDP Receive and UDP Se...

etwa ein Monat vor | 1

| akzeptiert

Beantwortet
How can I view device-specific properties in the code suggestions of a device in Image Acquisition Toolbox and MATLAB R2024b?
As of MATLAB R2024b, this is expected behavior. Since device-specific properties vary for each device, these properties are unkn...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How to resolve Simulink Error Message "Derivative of state '1' in block at time 0.0 is not finite..."
This problem occurs when an operation in the model that causes an "Inf" or "NaN" output. This can happen if an "Integrator" is p...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Why do I get a "Failed to compute constant value for nontunable property" error while generating code using a MATLAB System Object?
MATLAB Coder is limited to only adding nontunable parameters for system objects like 'trackerGNN' by creating them as compi...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I create a heterogenous array using 'arrayfun' in MATLAB R2024b?
In MATLAB R2024b, 'arrayfun' cannot directly create a heterogenous array. However, you can accomplish this using 'horzcat' or an...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How do I open multiple windows of MATLAB R2024b with matlab-proxy in Docker?
"matlab-proxy" does not allow simultaneous access to the same instance of MATLAB through multiple browser tabs. This is by desig...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can the CompuMethods in a generated A2L file have a TAB_VERB conversion method in MATLAB R2023b?
You can create and add a custom CompuMethod using the workflow described in this documentation example about customizing an ASAP...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How can I Interface MATLAB R2022b with TI Radar Kits and a DCA1000EVM Evaluation Board without a Hardware Support Package?
As of MATLAB R2024b, the Radar Toolbox Support Package for Texas Instruments mmWave Radar Sensors supports setting up and c...

etwa ein Monat vor | 0

| akzeptiert

Mehr laden