Thank you for such a wonderful video sir. I definitely learned MATLAB implementation of discrete systems today.
@shaktikumarshiledar50402 жыл бұрын
Really sir its great to implement the paper results in MATLAB..if possible in future sir please make a session on the DTSMC for MIMO process.... What is the value of x in sgn function it is e1(k) ...get the error in line 16 Index exceeds the number of array elements (1)...
@tellikhaled2 жыл бұрын
Keep going , you doing well
@joelmawanza2 жыл бұрын
Good day, Prof. Nasir. Thank you very much for the insightful videos. May you please do a video on fault-tolerant control systems. 🙏🙏🙏🙏🙏 Thank you
@cset2 жыл бұрын
Thank you for your kind words. I have a small video. maybe it will get you started kzbin.info/www/bejne/oqSkmo2pi5iEpdk
@joelmawanza2 жыл бұрын
@@cset Thank you, Prof. But what l am looking for is not covered in the video tutorial.
@rahul_writes20062 жыл бұрын
big thanks to you sir, very informative
@mohamedcamilbelhadjoudja90652 жыл бұрын
Thank you very much !
@rameshkhamari40552 жыл бұрын
Thank you for such wonderful video sir. I have some doubt related to SMC implementation in one paper. They have designed the control input where the state matrix A which is 3*3 matrix and input matrix (3*1) is multiplied with other signal in the control input. So how can we implement that as we can calculate the control signal only for 3 instances/values only.
@cset2 жыл бұрын
Thank you for the kind remarks. If your system is a discrete one, then it can be implemented using a for a loop. In your case, if there are only three instances, then the for loop will run only three times. I assume that your system is something like x(k+1) = Ax(x) + Bu(k)
@rameshkhamari40552 жыл бұрын
@@cset Sir, control input is given as u(t)=〖EB〗^(-1) [Ex ̇-EAx ̂+EF(e ̇-Ae)+K/M(S) ×sign(S)] where E is 1*3 matrix and F is 3*3 matrix and also x ̇(t)=Ax(t)+Bu(t) where A is 3*3 matrix and B is 3*1 matrix. As we can implement 'for' loop for only 3 instances, we are unable to get the desired output. If you want, I will send the paper. I am facing difficulties in that part of implementation.
@cset2 жыл бұрын
@@rameshkhamari4055 This looks like a continuous-time system to me. You will be needing to use the ode function in MATLAB. Please refer to the following video for an example case kzbin.info/www/bejne/d5KTZYZpeMxgjMU in your case (comparing with the above video, you will use the equation of u in your problem instead of u = -kx in the video. I have many videos of complex continuous-time control law implementation on my channel. I encourage you to explore those as well to get a feeling of how to simulate feedback control systems
@rameshkhamari40552 жыл бұрын
@@cset Thank you sir for your reply. I have gone through the videos of your channel. This control input is the control signal of SMC taken by the author in the paper "Huaicheng Yan, Member, IEEE, Xuping Zhou, Hao Zhang, Fuwen Yang, Senior Member, IEEE, and Zheng-Guang Wu, “A Novel Sliding Mode Estimation for Microgrid Control with Communication Time Delays” IEEE Transactions on Smart Grid, Vol. 10, no. 2, pp. 1509-1520, March 2019." If you have time, please go through the paper and kindly suggest me to solve this problem if possible. Thank you.
@niuniu73592 жыл бұрын
thank you
@ajaisingh91292 жыл бұрын
Sir the sig function that you have used in line 12 of your code is not a default function in Matlab. I referred to the paper but the definition is a bit confusing. Can you please let me know if the second term given in the paper is the absolute function or is the euclidean norm?
@cset2 жыл бұрын
Thank you for asking this question. I will add the code for the sig function in the description of the video. It is absolute value
@ajaisingh91292 жыл бұрын
@@cset Thank you sir, I really appreciate for taking the time to reply to our queries.
@aayushibhatt21942 жыл бұрын
I am still getting an error for that function could you please help me ?
@cset2 жыл бұрын
@@aayushibhatt2194 Please copy the error statement here. Also, please note that the sig function should be saved in a separate file. So there will be a total of three files out of which you will only run the script file that calls the ode45 function.
@ajaisingh91292 жыл бұрын
@@aayushibhatt2194 what's the error?
@saleemriaz57602 жыл бұрын
Sir the sig function that you have used in line 12 of your code is not working in Matlab. I referred to the paper but the definition is a bit confusing. I have the same problem as Ajai Singh asked. Please help to explain it further. JazakAllah
@cset2 жыл бұрын
Thank you for asking this question. I will add the code for the sig function in the description of the video
@Poonamsharma-ec3vg Жыл бұрын
i am not getting plot here 12 line is showing error please help me
@cset Жыл бұрын
Please make sure that you define the sig function in a separate file. Here is the code for the "sig" function (I forgot to explain it in my video) function y = sig(x,a) y = sign(x)*abs(x)^a; This function is described in the paper just below equation (21).
@mohammedyaqoob91542 жыл бұрын
Salam dear and thank you so much for your videos, I really have a problem when I rewrite your code and then apply it, I have replesed sig by ( sign(e1(k)+h*e2(k))) *abs(e1(k) +h*e2(k)) ^alpha) but I don't det the same figures as your, please, can you tell me why?
@cset2 жыл бұрын
Please create a separate sig function. There could be many reasons why the plots are not the same in your case. A small typo could be anywhere in the code.
@mohammedyaqoob91542 жыл бұрын
@@cset thank you so much for your reply Dr, It is working good, good luck dear
@mohammedyaqoob91542 жыл бұрын
I'm so sorry to bother you again, I tried to change sin signal to unit step so, I put xr(k+1) =200*(k>=1) and xr_dot = 200*(k==1) because the drevitive of step is impulse but the second drivtive I don't know what will be so, I used xr_ddot= dirac(2,xr(k+1)) and I get the same reference as result not the same as in the paper, then is that okay or I don't use a wrong things? My God save you!!
@cset2 жыл бұрын
@@mohammedyaqoob9154 The derivative of step is impulse only for some specific purposes. Here, if the xr is a constant, then its derivative and second derivative are zero please.
@mohammedyaqoob91542 жыл бұрын
Thanks Doctor for your reply, yes I agree with you that that I used a step by doing 200(k>=0) and this was found in some references, but I understand from you this will be a constant not step signal!!?
@mohsenrivaz59952 жыл бұрын
thank you sir can you simulate adaptive sliding mode based on neural network for 2dof robot manipulator on matlab ?
@mohammadabdollahzadeh2682 жыл бұрын
Thanks for your impressive tutorial Professor I have a petition Please simulate a discrete sliding mode control for a boost converter I have considered many sliding surfaces but they have not worked please help me Im looking forward to hearing from you Sincerely mohammad
@mohammadabdollahzadeh2682 жыл бұрын
Thanks for your impressive tutorial Professor I have a petition Please simulate a discrete sliding mode control for a boost converter I have considered many sliding surfaces but they have not worked please help me Im looking forward to hearing from you Sincerely mohammad