Beantwortet
Convert Simulink to m file
It is not possible to convert a .SLX file into a .M file directly. You can only generate C, C++, or HDL / VHDL from Simulink mod...

7 Monate vor | 0

| akzeptiert

Beantwortet
i keep geting this error Unable to resolve the name 'looptuneGoal.StepTracking'. Error in PID (line 18) TR = looptuneGoal.StepTracking(RefSignals, Measurements, 0.05, 0);
Hi, I understand that you want to pass Design Goals, i.e., a TuningGoal object, into the "looptune" function. To create this Tu...

7 Monate vor | 0

Beantwortet
How to fit a sine curve with only the maximum and minimum values
Hi Particia, Fitting a piecewise cubic Hermite ("pchip") curve might help with this use case. Here is an example of the same %...

8 Monate vor | 0

Beantwortet
Error on opening MATLAB Function block in Simulink
Hi Tirthankar, I encountered a similar problem previously. In my case, the error occured because the path to the Simulink model...

8 Monate vor | 1

| akzeptiert

Beantwortet
How to delay an output signal by milliseconds
Hi, As a workaround, you can convert the input signal from 'bool' to 'double' using the Data Type Conversion Block and then pas...

8 Monate vor | 0

| akzeptiert

Beantwortet
Set a custom stoping criteria for Simulated Annealing
To set a stopping criteria for the "simulannealbnd" function, you can use the "MaxStallIterations" option. By setting it to 1000...

8 Monate vor | 0

| akzeptiert

Beantwortet
Why do I get iradon error saying THETA does not match the number of projections?
Hi Tevin, I understand that the projection data i.e. 'sinogram' is made up of 400x500 projections. Therefore, 'theta' value sho...

8 Monate vor | 0

| akzeptiert

Beantwortet
How do I change my graph output from the standard Cartesian look to one that resembles a map?
Hi Ritisha, To change the colours in the plot, you can utilize 'colormap'. You can create a custom colormap programatically or...

8 Monate vor | 0

Beantwortet
how to convert structure variables into a simulink.parameter object
To convert the variables stored in the 'targetStruct' structure into a 'Simulink.Parameter' object, you can modify your code as ...

8 Monate vor | 0

Beantwortet
Derivative of state '1' in block PV Array at time 0.0 is not finite error
Hi Nishant, This error occurs when some operation in the model returns "Inf" or "NaN" output. To debug this error, open Configu...

8 Monate vor | 0

| akzeptiert

Beantwortet
sltest.harness.create function input 'source' can't be set 'Signal Builder' in parameter pairs in matlab 2022b
Hello, I believe that Simulink is moving away from Signal Builder and therefore the harness support has been restricted. For re...

8 Monate vor | 0

Beantwortet
Simulink real time desktop : I get the following error gmake: *** [coder_posix_time.o] Error 1, when trying to build "Run in real time" in "run in kernel"
Hey, I encountered a similar issue while trying to calculate simulation time. I found that the function "clock_gettime" is not ...

8 Monate vor | 0

Beantwortet
C2000 Simulink:Error(s) encountered while building
Hi Brian, I assume you're running the simulation in external mode or have previously done so. As evident in the error log, the...

8 Monate vor | 2

Beantwortet
本地启动opc服务器,通过代码可正常读写数据,但simulink的opc模块找不到该服务器
Hi Liang, There are different commands for connecting an OPC Server and an OPC UA Server, namely 'opcserverinfo' and 'opcuaserv...

8 Monate vor | 0

Beantwortet
GPU Memory for dlconv
Hi David, The memory usage of MATLAB during training can be influenced by various factors, including the size of the input data...

8 Monate vor | 0

Beantwortet
Can I open a MATLAB Animation block programmatically?
Hello William, I assume you are using the MATLAB Animation block from the Aerospace Blockset, which allows you to create six-d...

9 Monate vor | 0

Beantwortet
本地集群怎么设置 MATLAB 的 worker数量呢?
Hi, I understand that you want to increase the default number of workers in the local cluster. Here's a step-by-step guide to h...

9 Monate vor | 0

Beantwortet
Error executing command "touch -c /home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/codegen/exe/MyNetJetson/*.*;make -f MyNetJetson_rtw.mk all MATLAB_
Hello, From the ouput log, I understand that you are using MATLAB R2019b and cuDNN version 8.0. The error "undefined reference ...

10 Monate vor | 0

Beantwortet
mean square error as genetic algorithm cost fuction
Hi Antonio, To specify a custom cost function for the ga() function in MATLAB, you can define a function that takes the decisio...

10 Monate vor | 0

| akzeptiert

Beantwortet
Xilinx RFSoC Device - HDL Workflow Advisor
Hi Sudantha, The error appears to be a result of an incompatibility issue between the MATLAB Release version and the Xilinx Vi...

10 Monate vor | 1

| akzeptiert

Beantwortet
[Simulink] Create chirp signal in trigger subsystem block
Hi Nguyen, Thank you for providing your model and the output to explain your case. As you correctly identified, the ‘Chirp S...

10 Monate vor | 0

| akzeptiert

Beantwortet
How to Communicate PCI 6341 with BNC 2120 or 2110 in Simulink Desktop Real Time?
Hello Muhammad, NI MAX (Measurement and Automation Explorer) should recognize your NI device (PCIe-6341) when it's properly in...

10 Monate vor | 0

Beantwortet
Why am I getting an : Error using sym/subsasgn (line 1058) Invalid indexing or function definition. Indexing must follow MATLAB indexing. Function arguments must be symbolic
Hello Hazel, This error occurs when using a symbolic variable as both a summation index for the "symsum" function and an index ...

10 Monate vor | 0

Beantwortet
Error occurred when calling NLP solver "fmincon".
Hello Subhasritam, Usually, the first part of the error i.e.: Unexpected Standard exception from MEX file. What() is:bad allo...

10 Monate vor | 0

Beantwortet
How to control Simulink Find&Relace by M-Script Code
Hi Yong, I recently came across a way to programatically rename data in Stateflow charts using a .M script. Refer to the exampl...

10 Monate vor | 0

Beantwortet
axtoolbar cannot create some buttons
I could reproduce this issue in MATLAB R2021b. It seems like the 'datacursor' button is available from MATLAB R2023a onwards in ...

10 Monate vor | 0

Beantwortet
desidero scrivere uno script che, data una matrice a, restituisce il nome di ciascuna colonna come segue : a1 = a(: , 1); ecc. ecc.
Hi Luigi, You can achieve the desired functionality by using the "eval" function in MATLAB. Here's an example of the same: num...

11 Monate vor | 0

Beantwortet
Using Multiple Simulations tool in Simulink
Hi Andy, The detailed explanation and the model were a big help. I was able to reproduce the error and debug it. When giving th...

11 Monate vor | 0

| akzeptiert

Beantwortet
Configure AUTOSAR swAddrMethod for global variables automatically generated
Hi Elisa, Enabling the 'Generate separate internal data per entry-point function' in the model's config settings allows for ass...

11 Monate vor | 0

Beantwortet
How to connect to an USB Test and Measurement (IVI) device in MATLAB
Hi, In order to use "ividevlist", there are three required dependecies: A supported vendor VISA library. Instrument Control ...

11 Monate vor | 0

Mehr laden