回答済み
Variable Naming in code generation
Take ert.tlc for example, under Code Generation, Identifiers, there are settings that you can change to adjust the Auto-generate...

3ヶ月 前 | 2

| 採用済み

回答済み
How to get 'gcb' information including a 'for each' index
The "InitFcn" runs only once before each simulation. Whatever info got set to the block is static. The "index" of the "for each"...

3ヶ月 前 | 0

回答済み
How to create an ExportedDefine global variable in Simulink for Code Generation?
Create a Simulink.Parameter, specify the storage class as "Define".

3ヶ月 前 | 0

| 採用済み

回答済み
Simulink Error/Warning: "Signal with under-specified data types" in Motor Control Blockset blocks
set the "Output data type" of that "Data Type Conversion" block to be 'single', instead of leaving it as default.

3ヶ月 前 | 0

| 採用済み

回答済み
Trubleshooting system model IEEE 906
Both this error message and the popup window indicate that European_LV_graph_1segment.m is not found. The file is listed in the ...

3ヶ月 前 | 0

回答済み
Using Signal Logging for Test Harness to Matlab Workspace
doc matlab.unittest.TestResult help matlab.unittest.TestResult

3ヶ月 前 | 0

回答済み
Model Advisor configuration fails to save
Make sure to click "Apply" on that check. Save to a .json file. Close and then Open the .json file.

3ヶ月 前 | 2

| 採用済み

回答済み
Importing data to a 2-D Lookup Table Simulink
The data is not in the right shape to do this. There are too many duplicated (x,y) pairs. For the dupicated (x,y) pairs, the z ...

3ヶ月 前 | 0

回答済み
Remove postcodegencommand from Simulink model
https://www.mathworks.com/support/search.html/answers/109355-call-and-execute-matlab-script-function-post-real-time-workshop-bui...

3ヶ月 前 | 0

| 採用済み

回答済み
Assigning mask parameters to protected models
You need to follow this. https://www.mathworks.com/help/simulink/ug/parameterize-referenced-models.html

3ヶ月 前 | 0

回答済み
what happens behind "/"
help /

3ヶ月 前 | 0

回答済み
create cell from array with specified size
num2cell(mymatrix)

3ヶ月 前 | 0

回答済み
Configure signal logging programmatically (Simulink)
You could re-set all those 200 signal loggings and then set what you want to log programingly. lh=find_system(ModelName,'FindAL...

3ヶ月 前 | 0

回答済み
Convert date data in datetime
You could treat the last two digits as duration. Code below is not optimized but gives the correct result. load Data.mat; date...

3ヶ月 前 | 1

回答済み
How to configure set_param() per instance for arrays
This is "For Each Subsystem". You need to know how to use it. See the document and examples. https://www.mathworks.com/help/sim...

3ヶ月 前 | 0

| 採用済み

回答済み
SOC Estimator (Coulomb Counting) gives values above 1 because of current profile. How can I limit this to 1, but descent whenever the current is discharging?
SOC is the integration of current. The "Coulomb Counting" block does not have an option to saturate so your options are limited....

3ヶ月 前 | 1

| 採用済み

回答済み
How can I assamble n identical blocks in a simscape simulation automathically?
It is possible. Use add_block() to construct the blocks, but repeating 100 times in one model doesn't sound reasonable. Because...

3ヶ月 前 | 0

| 採用済み

回答済み
How to take out temperature data of one battery cell from battery pack to use it for controller design?
Use the Selector block. The dialog might be intimidating to some. For your case, change the "Inport port size" from "3" to "25",...

4ヶ月 前 | 0

| 採用済み

回答済み
open .m file GUI in GUIDE
It depends. If the existing tool is developed using GUIDE and the GUI components are saved in a .fig file, then you can use GUID...

4ヶ月 前 | 0

回答済み
Simulink equivalent of inputname () or genvarname() for logging
Not sure if you are aware, the MATLAB Function block is typically executed at every simulation step. So even if inputname() and ...

4ヶ月 前 | 1

| 採用済み

回答済み
Set default font settings for Simulink annotation (comments)
I don't think there is a way to pre-set the default font. But you can do a quick and easy post-processing like this. It will cha...

4ヶ月 前 | 1

| 採用済み

回答済み
Integrate C Code by Using the MATLAB Function Block in matlab 2015b
The online document for R2015b is not available. The oldest available is below. Notice the "R2018b" in the http address https:/...

4ヶ月 前 | 1

回答済み
How do I use Individual license for Matlab and Simulink, but Network License for Simscape?
"Note: In the license file locations, MATLAB will search for a license.dat first and then any .lic in alphabetical order." Easi...

4ヶ月 前 | 0

| 採用済み

回答済み
How to add blocks and lines to Simulink subsystem upon model initialization?
"I would like to add these blocks programmatically upon model initialization". What is your definition of "model initialization"...

4ヶ月 前 | 0

回答済み
How to add several forced line breaks inside a table cell, when I try to generate a Microsoft word report using Matlab?
I tried and the line break in a cell in an Excel file is char(10). I think it is likely the same in Word. In MATLAB, newline is...

4ヶ月 前 | 0

| 採用済み

回答済み
Run functions before Simulink starts
The PreLoadFcn or InitFcn callback. https://www.mathworks.com/help/simulink/ug/model-callbacks.html

4ヶ月 前 | 0

回答済み
where i can get MISRA AC SLSF 2023 documentation or pdf or Quotation to buy?
https://misra.org.uk/product/misra-ac-slsf2023/

4ヶ月 前 | 0

回答済み
Why does argmin index of NaN array have a value of 1 and not NaN?
Maybe the index is indeed returned by matching the min value to the input vector. Why does it matter? What is the significance i...

4ヶ月 前 | 0

回答済み
Standalone code generation is not supported for model
It sounds like that you can't do standalone code generation on this "component model". You have to create another "main" model, ...

4ヶ月 前 | 0

回答済み
Modify or adding data in SimulationOutput
"Caching the results of the first simulation run. Perform the second simulation run." If you can do both of the above, then you...

4ヶ月 前 | 0

さらに読み込む