Answered
Why do I receive an error "Can't index into an empty array" when calling my C++ MEX function in MATLAB?
This error is occurring because the memory for the output is not being allocated before assigning the output value. In order to ...

2 years ago | 1

| accepted

Answered
Why does MATLAB have issues handling the large numbers and logical operations over 2^53 in R2020b?
MATLAB uses double-precision floating-point representation for numerical calculations, which can result in precision limitations...

2 years ago | 0

| accepted

Answered
Why is my initial working folder not being set properly in MATLAB R2020b?
This could be because at startup MATLAB is adding a different directory to the search path than the one you have specified in yo...

2 years ago | 0

| accepted

Answered
How can I use MATLAB to find the location of a file or folder?
You can use the Find Files Tool in MATLAB, which is accessed by clicking the Find Files button in the File section of the Home t...

2 years ago | 0

| accepted

Answered
Why is 'arduinosetup' an unrecognized function even though I have installed the Arduino Support Package?
Uninstalling and reinstalling the support package may fix the issue. To uninstall the support package:Navigate to the MATLAB Too...

2 years ago | 0

| accepted

Answered
Why am I unable to run a subfunction from outside its main function or as a callback function?
The reason MATLAB returns the "Undefined function or variable" error is that the subfunction is not in scope when you try to run...

2 years ago | 0

| accepted

Answered
Why is my Simulink Real-Time "File Scope" missing samples in logged data (R2020a and earlier)?
There is a section in our documentation that explains how and why data loss can happen in a File Scope when Autorestart is on: T...

2 years ago | 0

| accepted

Answered
How to get best image quality of detailed Simulink models in a report
For high-quality images in DOCX reports, use the SVG (Scalable Vector Graphics) format for the image. Microsoft provided support...

2 years ago | 0

| accepted

Answered
Why do I receive an error when saving a Simscape model as a previous version and trying to compile it in that version?
Exporting a model to a format used by an earlier version (Simulation > Save > Previous Version) is not supported for model...

2 years ago | 0

| accepted

Answered
Why do I receive the error "Invalid Signal" when using "getsignal" from Simulink Real-Time in R2020a and earlier?
The SimulinkRealTime.target.getsignal function accepts either a signal ID or a SLRT signal name (block path) as the input. In th...

2 years ago | 1

| accepted

Answered
Why is there additional white space at the bottom of table cells when creating a Word document using MATLAB Report Generator R2019b?
The main "problem" here is that when you create a Table without explicitly applying a Template Style, i.e., you do not use: t =...

2 years ago | 0

| accepted

Answered
Cannot access HERE HD Live Maps
Based on the credentials sent, you can reproduce the error, which provides the following URL in the workspace: https://here-hdma...

2 years ago | 0

| accepted

Answered
How to add AUTOSAR Parameter programmatically to the AUTOSAR dictionary, and get its properties?
You can refer to examples of working with the API by executing the following command in MATLAB R2019b: >> web(fullfile(do...

2 years ago | 0

| accepted

Answered
How can I debug code generated using MATLAB Coder that crashes or gives incorrect results?
Note: this distinguishes between MEX function generation (used in MATLAB) and standalone code generation (source code, static li...

2 years ago | 0

| accepted

Answered
How do I make Polyspace Bug Finder ignore source files?
Polyspace Bug Finder has an option called "-do-not-generate-results-for", which provides Polyspace with a list of files or folde...

2 years ago | 0

| accepted

Answered
How can I use batch files to create an executable for a model which has model references?
Starting in R2020b, a new API has been introduced called 'codebuild' which can successfully generate a CMakeLists.txt for the co...

2 years ago | 0

| accepted

Answered
How can I let MATLAB use all physical memory from my system?
In order to do this, you can increase the System Swap Space. To learn how this can be done, execute the following command in the...

2 years ago | 0

| accepted

Answered
What is the benefit of using the "DiscreteState" property attribute?
The "DiscreteState" property attribute serves primarily an organizational role in order to let MATLAB know which properties of t...

2 years ago | 0

| accepted

Answered
How to use "wget" command in Linux?
You can call the “wget” command from MATLAB using the bang (!) operator: The exclamation point character (!), sometimes called b...

2 years ago | 0

| accepted

Answered
How to use the same startup.m file for multiple MATLAB installations on a shared network?
Please try the following workflow to address the issue: 1) Set the "userpath" for all the MATLAB installations to a network fold...

2 years ago | 0

| accepted

Answered
What are the use case scenarios for SPI blocks when developing a Simulink application for a TI C2000 platform?
There are 3 different blocks supported as part of SPI module support under the TI C2000 Support Package: SPI Master Transfer blo...

2 years ago | 2

| accepted

Answered
Why is my ROS node running slower than expected when deployed?
In some cases, increasing the "Length of the subscribe callback queue" parameter on the Subscribe block may resolve the issue. S...

2 years ago | 0

| accepted

Answered
Why is a password asked in Git Source Control when there is an SSH key?
As it can be seen in the 'remote.origin.url' above, the URL is on HTTP protocol and for SSH authentication, you need an SSH URL....

2 years ago | 0

| accepted

Answered
How to set different solvers for multiple sub-models in Simulink?
You can set different solvers for a "Top Model" and a "Referenced Model", as long as you adhere to the following considerations ...

2 years ago | 0

| accepted

Answered
What encoding is used by the file I/O functions such as 'fileread'?
Starting in MATLAB R2020a, the "fileread" function along with many other high-level and low-level IO functions use automatic cha...

2 years ago | 0

| accepted

Answered
How do I calculate the binary cross entropy loss directly from logits in a deep net?
For R2019b and older versions, there is no built-in function to calculate Binary Cross Entropy Loss directly from logits. If you...

2 years ago | 1

| accepted

Answered
External changes in script files not updated when run
This is due to the way the "run" function caches files. From the documentation for the "run" function: If a script is not on th...

2 years ago | 0

| accepted

Answered
Simulink Real-Time Data Logging with File Scope
In the File Scope, specify the full path of the data logging file, e.g. 'D:\data.dat'. If only the file name is entered, the fil...

2 years ago | 0

| accepted

Answered
How can I add additional linker flags to the generated makefile?
You can add link options to the model build information by using the "addlinkflags" function. To learn more, please run the foll...

2 years ago | 1

| accepted

Answered
是否可以访问MATLAB Function模块编程API?
从 MATLAB R2019b 开始,可以使用这个 API,请参考: Please run the following command in the command window of MATLAB R2019b to access the release...

2 years ago | 0

| accepted

Load more