回答済み
Create a value map from input signal in a Simulink block
1-D Lookup Table

約5年 前 | 0

| 採用済み

回答済み
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...

約5年 前 | 0

回答済み
Ideal Torque Source to Asynchronous Single phase Induction Motor
change the "Mechanical input" to be "Mechanical rotation port" for the motor

約5年 前 | 1

回答済み
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...

約5年 前 | 0

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

約5年 前 | 1

| 採用済み

回答済み
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,...

約5年 前 | 0

| 採用済み

回答済み
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 ...

約5年 前 | 0

回答済み
only three pulse generation
Signal Builder block

約5年 前 | 1

| 採用済み

回答済み
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...

5年以上 前 | 0

| 採用済み

回答済み
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...

5年以上 前 | 0

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

5年以上 前 | 0

| 採用済み

回答済み
Convert cell of matrix into one matrix
cell2mat()

5年以上 前 | 0

回答済み
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 ...

5年以上 前 | 0

| 採用済み

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

5年以上 前 | 6

| 採用済み

回答済み
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...

5年以上 前 | 1

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

5年以上 前 | 1

回答済み
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...

5年以上 前 | 0

回答済み
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...

5年以上 前 | 0

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

5年以上 前 | 0

| 採用済み

回答済み
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 ...

5年以上 前 | 0

回答済み
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...

5年以上 前 | 0

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

5年以上 前 | 0

| 採用済み

回答済み
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...

5年以上 前 | 0

回答済み
Double to Logical convertion in Simulink
Change the settings of the "From File" block. Do not do interpolation or extrapolation. The boolean data type could be saved wi...

5年以上 前 | 0

| 採用済み

回答済み
Problem with Simscape variable visibility
If I remember it correctly, all you need to do is to give sim() a return variable. Just try it result=sim('threePhaseDiodeRecti...

5年以上 前 | 0

| 採用済み

回答済み
Is it possible to "turn off" parts of a model?
Try to utilize the "Initialize Function" block from Simulink/User-defined functions library

5年以上 前 | 0

| 採用済み

回答済み
How to change Simulink Block properties from Command Window
set_param('YourBlockPath','TorqueActuationMode','ComputedTorque')

5年以上 前 | 0

| 採用済み

回答済み
save to. mat after reshape to [50 x1x12]
save('FileName','Varname')

5年以上 前 | 0

| 採用済み

回答済み
Cell array row deletion
c={'a',1,2;'b',3,4} index=strcmp(c(:,1),'a') c(index,:)=[]

5年以上 前 | 1

回答済み
Removing jumps from data when plotting a graph
In your case, since you have enough data, I think you can use symbol in plot() to remove the "jump". If your old way is plot(x,...

5年以上 前 | 0

さらに読み込む