回答済み
Creating and naming arrays on the fly
If you have array names as string and want to create variables with the same name try *eval()* function. See >> doc eval...

14年以上 前 | 0

| 採用済み

回答済み
Regarding HDL Coder
You can use function command *_makehdl()_* for generating code from command line or from a m-file. Call this function in your G...

14年以上 前 | 1

| 採用済み

回答済み
Please urgent help
A more convinient way to access runtime simulink data by using *Simulink.RunTimeBlock* object or by using *event listener callba...

14年以上 前 | 1

回答済み
How to add Simulink icon to our own GUI.
To create & open a new 'untitled' simulink model, use below command in pushbutton callback function open_system(new_system)...

14年以上 前 | 0

| 採用済み

回答済み
How to create a new simulink model (untitled), without using 'sfnew' command?
% Create & open new model (without collecting handle) >> open_system(new_system); %Create new model, get handle & open...

14年以上 前 | 1

| 採用済み

回答済み
How do I add a column to a matrix?
Arr = rand(30,30); %Delete first column Arr(:,1) = []; NewCol = rand(30,1); %Add new column Arr = [...

14年以上 前 | 13

| 採用済み

回答済み
Take a vector calculated in one m-file into another
*If your m-files are scripts* then all the variables will be on base workspace. You can use variable directly in any scrip. *I...

14年以上 前 | 0

回答済み
Simulink Mask Icon Display
You can get some idea from example below. <<http://oi41.tinypic.com/2i8xavb.jpg>> Here a display (MyOwnDisplay/Subsystem/Dis...

14年以上 前 | 0

| 採用済み

送信済み


A custon display (like simulink display block) using masked subsystem.
A custon display (like simulink display block) using masked subsystem.

14年以上 前 | ダウンロード 1 件 |

0.0 / 5
Thumbnail

回答済み
How to load multiple indexed .txt tables at once using a loop?
for i=1:3 x{i}=load(sprintf('table%d.txt',i)); end Why you are using *_load()_* for reading text file ? You can do bette...

14年以上 前 | 0

| 採用済み

回答済み
selecting unique rows
Type >> doc unique on your command window

14年以上 前 | 0

回答済み
Customizing the Simulink User Interface
I think below links can help you, <http://www.mathworks.in/help/toolbox/simulink/ug/bqt2_v7-1.html Adding Items to Model Edit...

14年以上 前 | 0

回答済み
Simulink scope autoscale
Add below piece of code in your *'StopFcn'* callback function. When the simulation is completed, it will open and autoscale all ...

14年以上 前 | 0

回答済み
how to pass MACROS to embedded code generated
Define these MACROS as *Simulink.Parameter* object. Set the storage class of these parameters to *Custom|ImportFromFile* with h...

14年以上 前 | 1

回答済み
Meaning of the statement in Stateflow
Forward slash "/" is used in stateflow transitions to separate *TRANSITION ACTION* from the *CONDITION ACTION*. Basic notation...

14年以上 前 | 0

| 採用済み

回答済み
mouse click on simulink block
# Right-Click on the simulink block. # Select *Block Properties* # In the properties dialog select *Callback* tab # Select *O...

14年以上 前 | 3

回答済み
Simulink and GUI Interaction
You can export your simulink data to base workspace using 'To WorkSpace' blocks OR by using signal logging feature. Read this da...

14年以上 前 | 0

| 採用済み

回答済み
How to import multiple indexed .txt files using a loop?
While reading the file, you are opening the file again in 'write mode'. This will empty the files. Use *'r'* instead of *'wt'* ...

14年以上 前 | 1

| 採用済み

回答済み
function
You can only see the source of matlab functions which are implemented a program files. Most of the matlab functions are precompi...

14年以上 前 | 0

回答済み
Hiding model content
If you have RealTime workshop license then there are 2 ways of protecting you your model- * You can genearte a s-function fro...

14年以上 前 | 3

| 採用済み

回答済み
How can i send data to M-File with Simulink?
*Goto* and *from* blocks are just used for signal routing(Connection) Values to *ToWorkspace* will be available only after si...

14年以上 前 | 1

| 採用済み

回答済み
Simultaneous Equations Using MATLAB Function Block in Simulink
# *Tpo* and *Tso* are used for calculating *qdot* without defining and initializing them first. # *Tpo* and *Tso* are outputs ...

14年以上 前 | 0

| 採用済み

回答済み
Parsing one line data-set into array using textscan?
TraceArray = textscan(result,... '%f %s %f %*s %f %*s %f %s', 'delimiter', ' ', 'MultipleDelimsAsOne', 1)

14年以上 前 | 0

| 採用済み

回答済み
writing a file
Here there is one input in the code which is pathname and your final output is final_col2. So you can make a function as ...

14年以上 前 | 1

| 採用済み

回答済み
sharing data between forms
If 'differnt form' means 2 different GUIs, you can copy the figure handle of one form into other form in which you want to acces...

14年以上 前 | 0

| 採用済み

回答済み
textscan fopen
Considering the content of file are as AXY.P,20050101,09:35:01.202,quant,^ AXY.P,20050101,09:35:01.202,quant,w AXY.P,20...

14年以上 前 | 0

回答済み
d flipflop
Simulink Library Browser -> Simulink Extras --> Flip Flops

14年以上 前 | 0

回答済み
reading the file using input function
If your file contains data like this hello23,hi10 hello24,hi11 hello25,hi12 .... You can combine read and replacem...

14年以上 前 | 0

| 採用済み

回答済み
how to remove strings
As I understood, you want to remove the comma(,) from the string. You can do it by str='hello23,hi10'; newstr=strrep(str,'...

14年以上 前 | 0

| 採用済み

回答済み
Not getting proper output for if logic
What is constant *Kppo*, array or scalar? If you are passing Pr as array (not scalar), then comparison of all element must be t...

14年以上 前 | 0

| 採用済み

さらに読み込む