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
Which ethical metrics is expected from an academic who is the owner or the creator of the instrument? The measurement tool will be applied to adults as an online form and a snowball sample will...
01 February 2021 9,188 3 View
hi my name is syahida. may i know the accurate concentration of lpg gas?? is it 250 ppm consider as dangerous gas in household? can you guide me to do the project of lpg gas detector system...
23 January 2021 9,425 4 View
Hi Researchers, How to measure the reliability of the method for filling missing time series streamflow data such as ARIMA model and interpolation?
12 January 2021 2,725 7 View
We are working on a P-97 puller and we are using it to do whole cell recording in DRG. We have 2 types of pipettes (borosilicate glass ID: 1.1 OD: 1.5 and ID: 0.86 OD: 1.5 ) as it showed in the...
04 January 2021 2,112 6 View
I am an undergraduate in university. I am new to scientific research and would like to know how to make my paper more professional. Thanks in advance.
04 January 2021 264 12 View
I've recently started writing a thesis report based on my research paper. And I'm very confused about writing the chapter of the literature review because we already discusse everything in the...
03 January 2021 6,028 8 View
In the case of SEM (scanning electron microscopy) of Fasciola gigantica, some white spots/substances were found but what are the causes for these?
03 January 2021 8,525 3 View
Suppose a survey was conducted with a lower sample size (less than 100) for factor analysis of the items (less than 20). Now would a larger sample size increase the inter-item correlation? What...
27 December 2020 1,722 3 View
I am looking forward to finding the best way to transfer Latex files to word format. I found some technical ways but they do not work perfectly for some sections such as tables and formulas....
06 December 2020 6,530 5 View
I am doing my undergrad thesis on gender integration in architecture and could use a few views from people with different perspectives.
03 December 2020 8,378 11 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
Dear Dr. Cai, my name is Simone Prospero and I work in the team of Phytopathology at the Swiss Federal Institute for Forest Snow and Landscape Research (WSL;...
01 March 2021 1,133 1 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View
I have input and output data set for "ANFIS modeling in MATLAB", and I am getting some negative predicted values of output in testing. However, the predicted values of output in training are...
28 February 2021 3,459 3 View
Good day to all, I have no experience with light emitting diodes. I am building a glass mini flume to demonstrate the photo degradation of Methylene Blue in water running over self cleaning...
26 February 2021 4,026 5 View
I am required to learn about Flyback converters and I got stuck not knowing to full design of the power supply flyback converter Based USB Charger Model using Simulink, especially the design model...
25 February 2021 5,435 2 View
Has anyone ever tried to deliver CO2 with a CGA 300 regulator? I know that a CGA 320 regulator is standard for CO2. The issue is that I currently do not have any free CGA 320 regulators. I also...
25 February 2021 3,292 3 View
I do need the Matlab code of Fractal Discrete Cosine Transform (FDCT). Can anyone who has already implement this code, help me with the implementation of this transform?
24 February 2021 5,602 2 View
Hi Hope you are well. Can you please share your code for D2D implementation in Matlab. I want to implement D2D in Matlab based Vienna simulator and struggling to deploy D2D. Thanks
24 February 2021 9,378 3 View
Hi, I am having trouble with a problem, in the field of Optimal Control and the generation of optimal time-series. Let's consider a system, whose dynamics are represented by dx/dt =...
24 February 2021 9,105 2 View