I want to learn how to imlement any optimization algorithm that is not in the Matlab Toolbox in the S-Function block in Simulink.I want to do this with matlab codes, not in languages like C, C ++. (So I want to do it with the first type S-function).
Check user define function in simulink.
https://www.mathworks.com/help/simulink/ug/creating-an-example-model-that-uses-a-matlab-function-block.html
Thank you very much for your reply. However, I want to do the control with the S-Function block, not with the matlab function block.
Dear Hasan,
I suggest you to see links and attached files on topic.
https://ww2.mathworks.cn/help/simulink/sfg/debugging-c-mex-s-functions.html
https://www.fsd.lrg.tum.de/wp-content/uploads/Training_TUM_GS_Simulink_14b.pdf
https://www.uiam.sk/~cirka/vyuka/matlab/files/sfunctions.pdf
https://www.mathworks.com/matlabcentral/answers/1015-pso-in-simulink
http://sadalahsadalah.e-monsite.com/medias/files/simulink-0607.pdf
Best regards
I want to make 100 ml of MWCNT/distilled water mixture at a volume fraction of % 0.1. MWCNT density is 2100 kg/m3. I will add gum arabic as surfactant. If I add surfactant at a 1:1 ratio, will the...
19 July 2024 8,494 0 View
Could anyone suggest me what is effect of electron donating and withdrawing group on fluorecence emission or intersystem crosssing. Thank you
22 June 2024 2,656 2 View
I submitted my journal and got some comments, I have answered and corrected all the comments from the reviewer but I don't understand how to answer this question. any expert researcher help me to...
20 June 2024 3,802 1 View
Syria has been suffering from a senseless, devastating war for more than 14 years, in which the combatants did not respect any sanctity of humans, trees, animals, cities, archaeological,...
19 June 2024 8,496 3 View
I want to add my certificates of participant, achievement in my profile to save it for later. Can I do it?
13 June 2024 7,162 0 View
Hello, does anyone knows why I am getting M+75 adduct in maldi-tof? (hints: my molecules have iodide ion, reaction media also DMF.
05 June 2024 1,920 4 View
I want to measure a protein in serum using an ELISA kit. This kit allows serum samples to be diluted 200 to 3200 times, but I want to use this kit to titrate higher concentrations of protein. Can...
03 June 2024 4,937 0 View
What does the XRD peak at 43 signify in PVDF-HFP? I want to know which phase I have from this XRD report, but I don't understand why the 43 peak is showing.
18 May 2024 5,079 1 View
One of my papers was submitted in Springer journal on 16th July 2023. After two months later, the status changed to "UNDER REVIEW" on 19th Sept. 2023. The status changed to "UNDER REVIEW" twice...
18 May 2024 4,971 0 View
Hello dear professors I intend to do a doctoral dissertation with the title "Identification and Validation of Inspirational Coordinates of Teachers Based on Global and Local Perspectives" and the...
14 May 2024 8,986 3 View
In order to show people the beauty of control and enhance enthusiasm for learning control theories, are there any good simple systems or platforms to recommend?
05 August 2024 10,034 1 View
Hi guys If anyone is currently working on aging cells, you guys would like to give me some advice. I'm testing against biomarker (SA-beta-Gal), I encountered a false positive in the control group...
02 August 2024 6,735 1 View
I am currently researching the impact of environmental toxins on children's health and would greatly appreciate insights from experts in the field. If you are an expert or researcher working on...
02 August 2024 4,474 2 View
I have seen plenty of existing works on applied Reinforcement Learning (RL) policies for optimized scheduling in IoT networks including Q-learning, DQNs, and the newer ones including PPO for...
01 August 2024 8,754 2 View
We have a lateral flow test on Sartorius 140 NC. The conjugate is gold-monoclonal antibody. Using different control lines (GAM, protein A, protein G) we get a very strong leading edge with reduced...
31 July 2024 4,510 3 View
I am new to Micromechanics and having similar problem with understanding the implementation of the formula's. I would appreciate if anyone can guide me on how to go about getting a scalar value...
30 July 2024 969 0 View
Please, what is the memory consumption of the Matlab function quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I?
27 July 2024 5,455 2 View
Hello, I am a research scholar currently working on a project involving image segmentation, and I am interested in using differential evolution for this purpose . I would greatly appreciate it if...
25 July 2024 9,926 1 View
Hello!!! I want to implement the Swerling characteristics functions (CF) directly in MATLAB without using its Fourier integral pairs...the Swerling CFs are actually Laplace Transform of the signal...
23 July 2024 4,925 1 View
Currently I need to calculate detection probabilities (PD) from radar cross section (RCS) data. Beta distribution parameters for this RCS data are calculated and will be used in Swerling0...
22 July 2024 868 0 View