Respondida
Coding philosophy : Is using global goto like using a global variable?
The simple answer is YES. What you see in C code is a code flow. The code is executed in sequence. What you see in Simulink is...

más de 5 años hace | 0

| aceptada

Respondida
Is there a way to limit automatic Y or X axis scaling?
ylim('auto')

más de 5 años hace | 0

Respondida
Loading a fig file without opening
f=openfig('power.fig','invisible') a=get(f,'Children') ... close(f) clear f

más de 5 años hace | 1

| aceptada

Respondida
Is there a way to define a new built-in function?
I would think NO but it does not really make any difference. If there is a way, you would have to modify some existing files in ...

más de 5 años hace | 1

Respondida
why do my output variables not update when I use the sim function
Here it goes again. Please see this. Mathworkers need to pay attention to this. This trap seems unreasonable. https://www.mathw...

más de 5 años hace | 0

Respondida
Sample Time and simOut Interaction
Usually it is because the fixed step size is too big for the model to simulate accurately. There are many solution to this. The...

más de 5 años hace | 0

| aceptada

Respondida
Simulink menu bar is missing Matlab R2020b,academic use
If you are taking about the conventional "File", "Edit" menu, yes, they are long gone. It is mapped to "Simulink Toolstrip" Lo...

más de 5 años hace | 0

| aceptada

Respondida
Create a value map from input signal in a Simulink block
1-D Lookup Table

más de 5 años hace | 0

| aceptada

Respondida
Why should a model not contain continuous states for production code generation?
On a model with continuous states, you can run a simulation with fixed step size using a solver, e.g. ode4. In fact, the simulat...

más de 5 años hace | 0

Respondida
Ideal Torque Source to Asynchronous Single phase Induction Motor
change the "Mechanical input" to be "Mechanical rotation port" for the motor

más de 5 años hace | 1

Respondida
Writing text in fraction in Mask in Simulink
Click "Help" in the Mask Editor to see the supported function for icon drawing. Search document for "Greek Letters and Special C...

más de 5 años hace | 0

Respondida
Programmatically initialize from source Model workspace
Try this: hws = get_param(bdroot, 'modelworkspace'); hws.DataSource = 'MAT-File'; hws.FileName = 'params'; hws.reload;

más de 5 años hace | 1

| aceptada

Respondida
Replacing multiple columns elegantly with a vector
You want to replace two columns but only provided one column of data. Provide the matching data. M(:,replace_column) =repmat(5,...

más de 5 años hace | 0

| aceptada

Respondida
Import data from Excel
xlsread() tries to be smart. It tries its best to give you the numerical data so it truncates the leading Nan. Run this to see ...

más de 5 años hace | 0

Respondida
only three pulse generation
Signal Builder block

más de 5 años hace | 1

| aceptada

Respondida
Issue with path is breaking some built-ins
Did you run "restoredefaultpath" to restore the path? Usually it should resove any problem related to the path. Run "which -al...

más de 5 años hace | 0

| aceptada

Respondida
How to generate complex signal in Simulink
Use the Exp block (https://www.mathworks.com/help/simulink/slref/mathfunction.html) with https://www.mathworks.com/help/simuli...

más de 5 años hace | 0

Respondida
RTW Programmatically Set Define Flag
That info is saved with your model, you can set it up set_param('ModelName','CustomDefine','-DBOOTLOADER')

más de 5 años hace | 0

| aceptada

Respondida
Convert cell of matrix into one matrix
cell2mat()

más de 5 años hace | 0

Respondida
Opening a simulink model through same instance : App designer
When you open a Simulink model, the model is always opened in the built-in, Mathworks' Simulink GUI. I don't think you can open ...

más de 5 años hace | 0

| aceptada

Respondida
How to run a .m file in MATLAB APP DESIGNER and load the parameters inside it in workspace.
evalin('base','YourMFile')

más de 5 años hace | 6

| aceptada

Respondida
How to integrate nested structures in C with Simulink?
myType1 would be a Simulink.AliasType, myStruct would be a Simulink.Bus Look in document for this objects and you should be ab...

más de 5 años hace | 1

Respondida
Add data type conversion block in simulink model using script
Do a loop, using these functions delete_line() add_block() add_line()

más de 5 años hace | 1

Respondida
Is it possible to converte ideal angular velocity source signal rad/s to rpm ?
Do the conversion using a Gain block or use this block https://www.mathworks.com/help/releases/R2019b/simulink/slref/unitconver...

más de 5 años hace | 0

Respondida
MATLAB Simulink 2007b Programmatic specification of Simulation Targets
Don't have R2007b no more. Tried this in R2011b. It seems to work. get_param(bdroot,'SimUserSources') get_param(bdroot,'SimCus...

casi 6 años hace | 0

Respondida
How can I merge 6 same-size vectors in simulink to obtain only one output?
The "Sum" block is all you need.

casi 6 años hace | 0

| aceptada

Respondida
how do i determine toolbox dependency when i try to uninstall toolbox ?
The best way is to go to Mathwork website, products, find the toolbox, scorll to the bottom, "view pricing and licensing", then ...

casi 6 años hace | 0

Respondida
How to use variables from Workspace in Simulink Function block ?
The "Simulink Function Block" defines a "function" that could be scoped and called multiple instances, so I think you have to us...

casi 6 años hace | 0

Respondida
Get block outport value
select that output signal line, right click, select "properties" See this: https://www.mathworks.com/help/simulink/gui/logging-...

casi 6 años hace | 0

| aceptada

Respondida
Absence of PV array in Simulink (Matlab2020a)
This is the link for R2020a. Do you have the toolbox installed and license" https://www.mathworks.com/help/releases/R2020a/phys...

casi 6 años hace | 0

Cargar más