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)

environ 14 ans il y a | 1 réponse | 0

1

réponse

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

environ 14 ans il y a | 0

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

environ 14 ans il y a | 2

| A accepté

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

environ 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
appending to a file
fid=fopen('mongiss.lib','a')

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 1

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

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
summation
A=rand(5); As=sum(sum(A));

plus de 14 ans il y a | 1

Réponse apportée
Trimming structure of Arrays
Data=structfun(@(x) ( x(6:end) ), Data,'UniformOutput', false);

plus de 14 ans il y a | 1

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

plus de 14 ans il y a | 1

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 1

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 1 réponse | 1

1

réponse

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

plus de 14 ans il y a | 0

Réponse apportée
reding specific elements from .txt file
StartRow=1; EndRow=6; StartCol=1; EndCol=8; if(StartRow>EndRow || StartCol>EndCol || any([StartRow EndRow Sta...

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 3

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

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

Charger plus