回答済み
Creating new variable using different row and column chunks from a matrix
D=rand(29,46); Training1_T= [D(1:14,17:21);D(15:29,32:36)]

2年以上 前 | 0

回答済み
Hello, I need help to resolve this error, please.
Simulink now supports "string" data type. At your Simulink model, press Ctrl+H to bring up the Model Explorer. Navigate to the c...

2年以上 前 | 0

回答済み
Unable to convert the 2021 mdl to 2009b mdl
You can do this, but of course, if there are blocks that are available in R2021b but not in R2009b, then there could be issues. ...

2年以上 前 | 0

回答済み
extract a number N of equally spaced rows within a matrix
M=repmat((1:100)',1,2); N=7; d=M(round(linspace(1,height(M),N)),:)

2年以上 前 | 0

| 採用済み

回答済み
Hello, could someone kindly assist me in resolving this error?
A Simulink model describes a "data flow". It is different than a "code flow", where "voltage_input" is just a variable stored in...

2年以上 前 | 0

| 採用済み

回答済み
Algebraic loop error, how to solve?
There is no algebraic loop here. Giving what ever value to DELTA_U(k), "f" can be calculated without problem. If you feed the o...

2年以上 前 | 0

| 採用済み

回答済み
Ramp rate %/min limiter in simulink
Feed constant value of 0.05 to "up" and -0.05 to "lo". If you want to prevent a value from increasing more than 5% per minute, t...

2年以上 前 | 0

回答済み
I want to access signal data in Subsystem from mask callback without using the base Workspace
Refer to this Q&A. https://www.mathworks.com/matlabcentral/answers/2003487-how-to-plot-simulation-results-in-a-gui-while-the-si...

2年以上 前 | 0

回答済み
Matrix Data Results Explanation
The code looks good and shows good programming flow to use logical index. It will be very lengthy to explain why the result show...

2年以上 前 | 1

| 採用済み

回答済み
Way to disable Simulink blocks at compile time using a variable in the workspace
This is the exact use case for Variant Subsystems. https://www.mathworks.com/support/search.html/videos/using-variant-subsystem...

2年以上 前 | 0

回答済み
How to use save in matlab function block ?
The MATLAB Function block will be executed at every simulation step, so if save() works, it will create many .mat files, each is...

2年以上 前 | 0

| 採用済み

回答済み
How to make Simulink read a MatLab variable every 5 seconds?
Use the "MATLAB Function" block to integrate your MATLAB algorithem directly into a Simulink model.

2年以上 前 | 0

回答済み
Multiple output in Switch block
Using your example, just specify the top input as constant [1, 2,3], the bottom input as constant [4,5,6]. The output will be a ...

2年以上 前 | 0

回答済み
graphical visualization of input parameters collected in a struct/array
Use the built-in variable editor is sufficient to visualize struct array. Just run this at the Command Window open params

2年以上 前 | 0

回答済み
How to get values of Scope and Port of "Data data" dialog box using API's?
open_system('sldemo_autotrans'); sf=sfroot; ch=sf.find('-isa','Stateflow.Chart'); d=Stateflow.Data(ch); d.Scope='Output'; d...

2年以上 前 | 0

| 採用済み

回答済み
Is there a specific standard for the rows and columns of a struct?
It is described in the Help document of struct(). The size of the resulted struct array is the same as the size of the cell arr...

2年以上 前 | 0

回答済み
How can I view under mask of the block "Orbit Propagator"
It does not seem to be a masked block. Double click the 'Attitude Profile (Nadir Pointing)' block, it opens the parameter dialo...

2年以上 前 | 0

| 採用済み

回答済み
How to plot simulation results in a GUI while the simulation is running?
https://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html https://www.mathworks.com/help/simulink/...

2年以上 前 | 1

| 採用済み

回答済み
Turn Off a Lamp Block after 10s
https://www.mathworks.com/help/stateflow/ref/after.html

2年以上 前 | 0

回答済み
I am working with Galois field. I obtained all the 256 values, and now i want to make the matrix form of the obtained values.
results = zeros(1,256); for x_gf = 0:255 e = conv(a, x_gf); f = conv(c, x_gf); h = e + b; j = f + d; ...

2年以上 前 | 0

回答済み
how to give initial condition to simulink function variables
A Simulink Function is like a Simulink model. Depending on the blocks that are used inside the Simulink Function, some blocks ha...

2年以上 前 | 0

回答済み
How do I plot lines with different line widths?
To plot two lines with different line widths, you can use either of these approaches. 1. Return the two “Line” objects as an out...

2年以上 前 | 19

| 採用済み

回答済み
How to programmitcally edit the "Goto Tag" in "From" block in simulink
get_param(PathToTheBlock,'GotoTag'); set_param(PathToTheBlock,'GotoTag','B')

2年以上 前 | 1

| 採用済み

回答済み
header files from simulink data dictionary
Use Simulink Data Dictionary API, open the SLDD, get the bus object, get the "headfile" property https://www.mathworks.com/help...

2年以上 前 | 0

回答済み
Open system mask parameters
If the block has been masked, the command to open the masked parameters is open_system(block)

2年以上 前 | 0

回答済み
function call with on off control in simulink
You could use the Pulse Generator block, instead of the Stateflow chart, to generate the "101010 signal graph".

2年以上 前 | 0

回答済み
Hot to get Signal path and block port number from Simulink model
open_system('f14'); lines=find_system('f14','FindALl','On','type','line','name','w'); get(lines(1),'SourcePort')

2年以上 前 | 0

回答済み
Can a stand alone version be used by anyone?
Yes. It says "royalty-free". MATLAB Compiler enables you to share MATLAB programs as standalone applications and web apps. With...

2年以上 前 | 0

回答済み
While importing a .mat file into simulink using the "From File" block, I lose the first data point.
The "From Workspace" block is used to import data into Simulink. It can specify sample time. The "To Workspace" block is usedd ...

2年以上 前 | 0

さらに読み込む