Question


Insert Date, Time, Created By, Modified by... etc file properties in m-file
Is it possible to insert the file proprties automatically in m-file (Ofcourse in commented form)

14 years ago | 1 answer | 0

1

answer

Answered
Problem opening a Simulink file
Currently I dont have access to Windows 7, but probably this may work- Right Click on File -> Select *Open With* -> Select *C...

14 years ago | 0

Answered
Reload/Update constants in Simulink
Your question is little bit unclear. If you want to change the value in a *Constant Block*, you can change it run time from its...

14 years ago | 2

| accepted

Answered
Simulink: create struct with signal names
Do you want the output values at each time step or just final simulation value ?. You can feed your bus output to a embedded ma...

14 years ago | 1

| accepted

Answered
outputting bus using 'To Workspace' block
Simulink does not alloew a matrix signal to be feed as input to bus. One of your input comming to the bus is *matrix*. You ...

14 years ago | 0

| accepted

Answered
appending to a file
fid=fopen('mongiss.lib','a')

14 years ago | 0

| accepted

Answered
String with csv in matlab
Text={'2011-08-18,00:10:00,600,1.56188,3.33684,4.328568,2.03864';'2011-08-18,00:20:00,600,7.26988,7.23684,0.328568,8.03864'}; ...

14 years ago | 0

| accepted

Answered
set_param and callback argument
Where you want to put 'StartFcn' callback function, either for a *block* or for a whole *simulink model* ? *For StartFcn of a b...

14 years ago | 0

| accepted

Answered
Link to Simulink Model File from m-file
What is output of your m-file which you want connect with model? If you want to access variables (data) of your m-file from m...

14 years ago | 0

Answered
determine range within an array
Considering last column of 'type' stored in a cell array, you can find number of 'good' and 'bad' in each cycle with below code ...

14 years ago | 0

| accepted

Answered
insert a value into an array after it's created
Please give example of source array and result array which you want. It is not possible to enter the element in between existing...

14 years ago | 1

Answered
Using global variables in Embedded Matlab function in simulink
Hi Muthappa Make sure that you are ensuring following steps while using global variables with embedded matlab. <http://www.mat...

14 years ago | 1

| accepted

Answered
Run a simulink/script from a pushbutton
*From workspace* block reads wariable from base workapace. If you are defining and writing P1 variable from pushbutton callba...

14 years ago | 1

| accepted

Answered
summation
A=rand(5); As=sum(sum(A));

14 years ago | 1

Answered
Trimming structure of Arrays
Data=structfun(@(x) ( x(6:end) ), Data,'UniformOutput', false);

14 years ago | 1

Answered
Sending input to an embedded block in simulink only at a particular condition
Place your source of 'value' in *'Enabled Subsystem'* and enable this susystem when your condition is satisfied. Find at *Lib...

14 years ago | 1

Answered
Error : Action subsystem have more than one sample time
All blocks in an Action Subsystem *must run at the same rate* as the driving block. You can achieve this by setting each block's...

14 years ago | 0

| accepted

Answered
use comma as decimal seperator
May be this can help you <http://www.mathworks.com/matlabcentral/newsreader/view_thread/241400>

14 years ago | 0

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
I dont know someone have already pointed it or not, Currently *'comments'* have only option to *delete*. It shold also be allo...

14 years ago | 1

Answered
use S-function
You can use 'Embedded MATLAB Function' block in your model for embedding MATLAB code with simulink. This block is available at ...

14 years ago | 0

| accepted

Answered
reding specific elements from .txt file
ReadCol=7; ReadStartRow=4; fh=fopen('test.txt'); txtcell=textscan(fh,'%s','delimiter','\n'); RowInFile=length(...

14 years ago | 0

| accepted

Question


Why eval() and evalin() are not recommended?
I have read so many times that functions *eval()* and *evalin()* are not recommended. What is the reason? I have a situation...

14 years ago | 1 answer | 1

1

answer

Answered
take the real data type of parameters from the Simulink model
hhmmm...... Answer is in you question itself (See comment). gcs specifies the currently selected system or subsystem. Take han...

14 years ago | 0

Answered
reding specific elements from .txt file
StartRow=1; EndRow=6; StartCol=1; EndCol=8; if(StartRow>EndRow || StartCol>EndCol || any([StartRow EndRow Sta...

14 years ago | 0

Answered
saveas throws "Invalid Simulink object handle" error
hist not returns the figure handle. See 'help hist'. Try h2=figure(2); hist(variable1(:,2),50);

14 years ago | 0

Answered
take the real data type of parameters from the Simulink model
You may using parameter name in the 'Constant value' field of constant block. Try CBlks_ValStr=get_param(CBlks,'Value')...

14 years ago | 0

Answered
take the real data type of parameters from the Simulink model
Your question is still not clear. What is 'corresponding block ' If you mean 'constant' blocks and you want output datatype of ...

14 years ago | 0

Answered
Is deleting threads helpful in this forum?
I am agree with Deniel. Deleting a post should be allowed only for question that is unanswered and not commented. As author d...

14 years ago | 3

Answered
manipulating text files
fi=fopen('YourFile.txt','r'); fo=fopen('outfile.txt','w'); txtcell=textscan(fi,'%s','delimiter','\n'); Str1Idx=1; Str2...

14 years ago | 0

| accepted

Answered
is it possible to make command window scroll bar being in position of it self even by runnig a m-file and not going end of wondow?
I don't think it is possible. There is no such command line function.

14 years ago | 0

Load more