(current-namespace (make-namespace)) ;; fresh-namespace, emacs-specific (require (lib "develop.ss" "matlab-interface")) ;; ATTENTION: make sure that the following definitions in 'info.ss' ;; are correct: ;; - matlab-include-directory ;; - matlab-link-libraries ;; - devhome ;; test and developement -------------------------------------------------- ;; after editing primitive.c, compile, link and load it ;; with an automatically generated name. (install-load) ;; import the module-definitions (require primitive) ;; test if it works (print-matlab-array-info) ;; test pre-compiled behaviour -------------------------------------------- ;; remove primitive.dll, then type: (require (lib "primitive.ss" "matlab-interface")) (print-matlab-array-info) ;; test communication with matlab (require (lib "highlevel.ss" "matlab-interface")) (engine-open) (newline) (display (engine-eval "magic (3)")) (array->matrix (engine-apply "magic" (list (object->array 3)))) (engine-close) ;; package ---------------------------------------------------------------- ;; before packaging, remove any but the developer-version ;; otherwise, the wrong version might get packaged (package "c:/lab/src/plt/collects/")