Réponse apportée
run a function with 2 outputs multiple times
for iLoop=1:100 [t,X] = SISep(adj, beta, gamma, nmax, I0); tSim(iLoop)=t; XSim(iLoop)=X; end

presque 9 ans il y a | 1

| A accepté

Réponse apportée
How to add a timestamp to array in simulink?
1. If you want to run the model as a regular user, you can set the cache folder to some folde other than C:\Windows... Example: ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Change font value of uitable headings in GUI
You should use HTML tags. ColumnNames = { .... '<html><center /><font face="verdana" size=3>Column Heading 1</font><...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to be able to control reading text in matlab
fid = fopen('letterabc.txt'); tline = fgetl(fid); while ischar(tline) YesOrNo = input('continue Reading [y/n]') if...

presque 9 ans il y a | 0

Réponse apportée
Error when I run a .bat file
Is there any reason why you dont use !abc.bat or dos('abc.bat')

presque 9 ans il y a | 0

Réponse apportée
How to control reading text character by character
fid = fopen('letterabc.txt'); tline = fgetl(fid); while ischar(tline) YesOrNo = input('continue Reading [y/n]') ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to get block handles instead of port handles in get_param?
Port handles are the handles of the ports(the small > at the border of the subsystem). These are NOT the outports' block handles...

presque 9 ans il y a | 0

Réponse apportée
How can i write from txt files to any array
use textscan function http://in.mathworks.com/help/matlab/ref/textscan.html

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Is there a way to count the number of signal paths from each inport to each outport?
You have to start from each outport, and then find the preceeding block. You can use 'PortHandles', or 'PortConnectivity' itera...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Access Summary report data of Simulink models
All model advisor apis are described here. https://in.mathworks.com/help/simulink/slref/simulink.modeladvisor.html

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Display information about the model at each level
>>saveas(get_param('FigX_model','Handle'),'FigX_model.pdf');

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Convert Simulink model to TargetLink model
tl_prepare_system

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How do I remove the first 3 lines from all of the .txt files in a directory?
You can start here ... https://in.mathworks.com/matlabcentral/fileexchange/42877-find-and-replace-in-files

presque 9 ans il y a | 0

Réponse apportée
How can the numbers appears on an excel sheet correctly and not as wierd letters?
1. Why do you write data twice? xlswrite('HISTOGRAM',data,'histogram'); xlswrite('HISTOGRAM',header2,'histogram'); xl...

presque 9 ans il y a | 0

Réponse apportée
How to input images into excel cells?
You should use activeX (https://in.mathworks.com/help/matlab/matlab_external/using-a-matlab-application-as-an-automation-client....

presque 9 ans il y a | 2

Réponse apportée
Creating Array in Simulink
The 1-D array will be put in a constant block. ANd using an index selector and timer logic, you can select each element in the c...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How do I change the block parameters in a Simulink model through matlab script?
two ways: 1. Create workspace variables in the m script. Refer the variables in the constant blocks instead of direct values. E...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Is it possible for the iterations of a loop to get faster as the loop progresses?
I think it depends on a lot of things (cache, compiled code, memory allocation etc). Due to one or more of the above reasons, y...

presque 9 ans il y a | 0

Réponse apportée
Calling the results from two scripts in one third script
script3.m script1;%Running script1.m a = res;%storing value of res in a script2;%Running script2.m b = res;%stor...

presque 9 ans il y a | 2

| A accepté

Réponse apportée
Is there a faster way to load large structures?
Try partial load using matfile.. <https://in.mathworks.com/help/matlab/import_export/load-parts-of-variables-from-mat-files.ht...

presque 9 ans il y a | 0

Réponse apportée
Unable to create text file for output
Are you closing the file (by calling the function with type = -1)?

presque 9 ans il y a | 0

Réponse apportée
How should I organize my MATLAB files?
As you have said, its all a personal preference. For my masters project, I used the following structure. It worked well. pr...

presque 9 ans il y a | 3

Réponse apportée
How to convert virtual bus to non virtual bus automatically?
You have to set the following properties in Simulink to the block that creates the bus (Bus creator) se...

presque 9 ans il y a | 0

Réponse apportée
How can i get this function to work with this spreadsheet
The xls file has values for Xc, Yc and Zc. You have to read it (using xlsread) and call your function. The other argument (R) yo...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Suppose I have a file folder in which I am adding files to it at specific interval, say per hour. Is there a way to automatically update a matlab program everytime I add files to the folder? Thank you.
The m script should monitor the folder continuously using directory functions like dir or what Whenever there is...

presque 9 ans il y a | 0

Réponse apportée
How Can I randomly select 20% of my array elements AND save their indices (row,column) ?
A = [230,30,40,40,80;40 40 30 80 230;40 40 40 230 80]; n=numel(A); B=reshape(A, 1, n); %1-D array p = randperm(n);%r...

presque 9 ans il y a | 0

Réponse apportée
Simulation time in simulink
https://in.mathworks.com/matlabcentral/answers/83028-simulation-time-unit-in-simulink

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to create a subsystem programmatically using a specified set of blocks ?
Which version of MATLAB you are using? Because in newer versions Simulink.BlockDiagram.createSubsystem is available as Simulink....

presque 9 ans il y a | 1

Réponse apportée
Sending an e-mail through MATLAB using Microsoft Outlook
If the "result of a function" is a number, you should convert it to a string and pass it (using num2str function)

presque 9 ans il y a | 0

Réponse apportée
Why is my script so slow? Eratosthenes
To the uninformed eyes, there seems to be an unnecessary for loop in the slower code that runs E*E times.

presque 9 ans il y a | 0

Charger plus