Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 1

Respondida
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)...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 1

| aceptada

Respondida
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 = [...

más de 14 años hace | 13

| aceptada

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

Enviada


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

más de 14 años hace | 1 descarga |

0.0 / 5
Thumbnail

Respondida
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...

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 1

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 3

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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'* ...

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 3

| aceptada

Respondida
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...

más de 14 años hace | 1

| aceptada

Respondida
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 ...

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

Respondida
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 ...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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,'...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

| aceptada

Cargar más