Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

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

14 years ago | 1

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 13

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Submitted


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

14 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
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 years ago | 0

| accepted

Answered
selecting unique rows
Type >> doc unique on your command window

14 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 1

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

14 years ago | 0

| accepted

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

14 years ago | 3

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
function
You can only see the source of matlab functions which are implemented a program files. Most of the matlab functions are precompi...

14 years ago | 0

Answered
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 years ago | 3

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

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

14 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
d flipflop
Simulink Library Browser -> Simulink Extras --> Flip Flops

14 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Load more