Scripting Guide > Data Structures > Matrices in JSL Scripts > Build Your Own Matrix Functions
발행일 : 03/10/2025

Build Your Own Matrix Functions

You can store your own JSL operations in macros. See Maximize and Minimize Functions. Similarly, you can create custom matrix functions. For example, you can make your own matrix operation called Mag() to find the magnitude of a vector:

mag = Function( {x},
	Sqrt( x` * x )
);

Similarly, you could create a function called Normalize to divide a vector by its magnitude:

normalize = Function( {x},
	x / Sqrt( x` * x )
);
더 많은 정보를 원하십니까? 질문이 있습니까? JMP 사용자 커뮤니티에서 답변 받기 (community.jmp.com).