Réponse apportée
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...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
Please urgent help
A more convinient way to access runtime simulink data by using *Simulink.RunTimeBlock* object or by using *event listener callba...

environ 14 ans il y a | 1

Réponse apportée
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)...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
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 = [...

environ 14 ans il y a | 13

| A accepté

Réponse apportée
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...

environ 14 ans il y a | 0

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

environ 14 ans il y a | 0

| A accepté

A soumis


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

environ 14 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

Réponse apportée
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...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
selecting unique rows
Type >> doc unique on your command window

environ 14 ans il y a | 0

Réponse apportée
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...

environ 14 ans il y a | 0

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

environ 14 ans il y a | 0

Réponse apportée
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...

environ 14 ans il y a | 1

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

environ 14 ans il y a | 0

| A accepté

Réponse apportée
mouse click on simulink block
# Right-Click on the simulink block. # Select *Block Properties* # In the properties dialog select *Callback* tab # Select *O...

environ 14 ans il y a | 3

Réponse apportée
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...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
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'* ...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
function
You can only see the source of matlab functions which are implemented a program files. Most of the matlab functions are precompi...

environ 14 ans il y a | 0

Réponse apportée
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...

environ 14 ans il y a | 3

| A accepté

Réponse apportée
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...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
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 ...

environ 14 ans il y a | 0

| A accepté

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

environ 14 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 14 ans il y a | 0

Réponse apportée
d flipflop
Simulink Library Browser -> Simulink Extras --> Flip Flops

environ 14 ans il y a | 0

Réponse apportée
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...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
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,'...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 14 ans il y a | 0

| A accepté

Charger plus