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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 1

| accettato

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

circa 14 anni fa | 1

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 1

| accettato

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

circa 14 anni fa | 13

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

| accettato

Inviato


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

circa 14 anni fa | 1 download |

0.0 / 5
Thumbnail

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

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

circa 14 anni fa | 1

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 3

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 1

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 3

| accettato

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

circa 14 anni fa | 1

| accettato

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 1

| accettato

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

| accettato

Carica altro