Respondida
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....

4 meses hace | 1

| aceptada

Respondida
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...

4 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

Respondida
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 meses hace | 1

| aceptada

Respondida
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 meses hace | 1

| aceptada

Respondida
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 meses hace | 1

Respondida
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 meses hace | 0

| aceptada

Respondida
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"...

5 meses hace | 0

Respondida
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...

5 meses hace | 0

| aceptada

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

5 meses hace | 0

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

5 meses hace | 0

Respondida
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...

5 meses hace | 0

Respondida
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, ...

5 meses hace | 0

Respondida
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...

5 meses hace | 0

Respondida
How to add multiple "display" block to multiple subsystems in a simulink file programmatically
Yes you can do it programmingly. see help for find_system() and do something like this: AllSys=find_system(ModelName, 'SearchDe...

5 meses hace | 0

Respondida
How to fix the problem of fetching the simulink block from the customized library in the matlab app designer using matlab app designer code?
It is because your customized library is not set up as "simulink/mylib". It is unlikely you can add your library to underneath "...

5 meses hace | 0

Respondida
How to import constant data from an Excel sheet into Simulink
Use Constant blocks to specify these values in the Simulink model. Use Variables to specify the value for those Constant blocks....

5 meses hace | 1

| aceptada

Respondida
How to "Create new data" for a custom library block
Create a Mask for your customized library block, then when you double click the block, you will have a dialog to specify that pa...

5 meses hace | 1

Respondida
How can I overlay Simulink curves obtained when model parameters are changed?
Not on the Scope block, but these days you can utilize the Simulink Data Inspector (SDI). Run simulation multiple times and then...

5 meses hace | 1

| aceptada

Respondida
Data Object Wizard Usage - Does Base Workspace encompass Model Workspace?
"If you create the signal object in a model workspace, you must set the Storage class parameter to Auto.", from https://www.mat...

5 meses hace | 0

Respondida
how can I fix this error "Illegal use of reserved keyword "end"."
It seems that you have an extra line of "end". Just delete that line

5 meses hace | 0

Respondida
Input signal as vector with time in simulink
u1 = [Data(:,1) Data(:,2)], u2 = [Data(:,1) Data(:,3)] and u3 = [Data(:,1) Data(:,4)] The way you construct the data for "From ...

5 meses hace | 0

Respondida
How to set "Argument" property of a Simulink.Parameter programmatically ?
See below, A Simulink.Parameter object does not have a property called "Argument". a=Simulink.Parameter Update after the disc...

5 meses hace | 0

Respondida
Matlab Function Block in a Simulink Model
You can't expect to achieve your goal by doing this. The sequence of the MATLAB Function block can be simplified as this, read ...

5 meses hace | 0

| aceptada

Respondida
Simulink - Input Dialog box while saving the model
Utilize the 'PreSaveFcn' callback of the model, where you can launch a dialog window, ask the user to input a new version number...

5 meses hace | 1

| aceptada

Respondida
how find idx string deleted
a={'aa','bb','cc','aa'}; [b,ida,idb]=unique(a,'stable') setdiff(1:numel(a),ida)

5 meses hace | 0

| aceptada

Respondida
How Simulink handles calls to discrete blocks
That is right. Read this. For every integration step, the derivative function needs to be called between 4 times (for RK4) and 6...

5 meses hace | 0

Respondida
How do you search for a number in a cell array containing different length arrays?
a=[{[2 5 8 9]} {[1 2 4 5 7 10]} {[3 5 6 7 8 9 10]} {[1 2 3 5 8 9 10]} {[1 2 4 6 8 9]},... {[1 3 4 5 6 8]} {[1 2 4]} {[4 5 7...

5 meses hace | 0

Respondida
Simulink crashes very often during normal work
It seems like a Simulink issue due to software bug or system/installation. You can further check to see if the same problem happ...

5 meses hace | 1

Cargar más