--> atomsInstall("iodelay")
Tools for manipulation and frequency analysis of linear dynamical systems with input or output delays
Upload date : 2018-10-22 21:02:37 MD5 : 2573a53d0913853203415221a119d640 SHA1 : 1813b02e196ebb4bae7ac66241071b33d11c73d5 Downloads : 737
This version fixes a bug with bode, black and nyquist iodelay functions.
Upload date : 2018-10-22 21:03:54 MD5 : 77945e825e90b557e9a44e90e1c98d9b SHA1 : 8a6e836b674517b841bd0f53e2a892008739d0f6 Downloads : 20715
Comments argument now taken into account in bode, black, nyquist overlaoding functions
Hello, Problem with this toolbox for Scilab 6.1.? The macro "%rd_string" is not good for new Scilab. I propose a new version of this macro (%rd_string). regards // ==================================================================== // Copyright (C) - lucien.povy@free.fr. Carantec 2020. // This file must be used under the terms of the GNU GPL v2.0 licence. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // https://www.gnu.org/licenses/licenses.en.html // ==================================================================== // String output of iodelay systems matrices for scilab > 6.1.? // ==================================================================== function txt = %rd_string(H) r = H.H; d = H.iodelay; [m,n] = size(r); Sr = string(r)(:);//for systems without delay. Sd = string(-d)(:);//now the delays. w = "*exp("+Sd+"*"+varn(r)+")"; w(find(d==0)) = ""; for j = 2:3:3*m*n-1 Sr(j) = part("-",ones(1,length(Sr(j)))); end Srl = []; Stxt = []; for i = 1:m*n Srl = [Srl;[Sr(3*(i-1)+1:3*i);blanks(length(Sr(3*i)))]]; pw(i) = part("",1:length(w(i))); Stxt = [Stxt;[pw(i);w(i);pw(i);blanks(length(w(i)))]]; end tx = Srl+Stxt; txt = matrix(tx,size(tx,"*")/n,n); txt = blanks(4)+txt; endfunction