home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk1.iso / answers / matlab-faq < prev    next >
Internet Message Format  |  1993-11-23  |  36KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!gatech!swrinde!elroy.jpl.nasa.gov!netline-fddi.jpl.nasa.gov!csi.jpl.nasa.gov!nobody
  2. From: mwette@mr-ed.jpl.nasa.gov (Matt Wette)
  3. Newsgroups: comp.soft-sys.matlab,comp.answers,news.answers
  4. Subject: comp.soft-sys.matlab FAQ (Frequently Asked Questions)
  5. Followup-To: comp.soft-sys.matlab
  6. Date: 23 Nov 1993 09:31:34 -0800
  7. Organization: Jet Propulsion Laboratory
  8. Lines: 937
  9. Approved: news-answers-request@MIT.Edu
  10. Message-ID: <2cthdm$40v@mr-ed.jpl.nasa.gov>
  11. Reply-To: mwette@csi.jpl.nasa.gov
  12. NNTP-Posting-Host: mr-ed.jpl.nasa.gov
  13. Summary: This article includes product notes and answers to frequently asked
  14.          user questions about the matrix-oriented environment MATLAB, by The
  15.          MathWorks, and products and tools based on or related to MATLAB.
  16. Xref: senator-bedfellow.mit.edu comp.soft-sys.matlab:3103 comp.answers:2776 news.answers:15030
  17.  
  18. Archive-name: matlab-faq
  19. Last-modified: 1993/11/23
  20. Version: $Id: FAQ.in,v 1.2 1993/11/23 17:24:16 mwette Exp $
  21.  
  22. This FAQ is maintained by Matt Wette <mwette@csi.jpl.nasa.gov>.
  23. The latest version can be retrieved via anonymous ftp from
  24.  
  25.      csi.jpl.nasa.gov [128.149.29.4]  as  /pub/matlab/FAQ.text (plain text)
  26.                                       or  /pub/matlab/FAQ.html (HTML format)
  27.  
  28. Contributions, corrections and suggestions are welcomed.
  29.  
  30.  
  31. Last update: Tue Nov 23 09:26:35 PST 1993
  32.  
  33.  
  34.  
  35.                 MATLAB Frequently Asked Questions
  36.                 =================================
  37.  
  38.  
  39.                             SYNOPSIS
  40.  
  41.  
  42.  General
  43.  =======
  44.  1) What is MATLAB?
  45.  2) What is the charter for the comp.soft-sys.matlab group?
  46.  3) What commercially available MATLAB-type environments are sold?
  47.  4) What non-commercial MATLAB-type environments exist?
  48.  5) Are there any standards for MATLAB-type tools?
  49.  6) How can I join a MATLAB user group?
  50.  7) Are there any software archives?
  51.  8) Are there any publications related to MATLAB?
  52.  
  53.  MATLAB/SIMULINK Product Information
  54.  ===================================
  55.  9) What's new in MATLAB 4.0?
  56.  10) How does MATLAB perform on machine X?
  57.  11) What is SIMULINK (alias Simulab)?
  58.  12) What toolboxes are currently available from The MathWorks?
  59.  13) Can I use C and Fortran programs with MATLAB?
  60.  14) How do I contact The MathWorks about MATLAB via email?
  61.  
  62.  MATLAB User Questions
  63.  =====================
  64.  15) How can I change the default window size, colors, etc. in MATLAB 4?
  65.  16) How can I import MATLAB graphics into my Framemaker, TeX, etc. document?
  66.  17) Is there a topical help function, like `apropos'?
  67.  18) Why am I finding all these undocumented functions (like COMET) in MATLAB?
  68.  19) Has anybody any information about the matlab function `system_dependent'?
  69.  20) How can I get the parser to accept a dummy reference without an error?
  70.  21) How do I get the plot command to cycle through line-types?
  71.  22) Can I use `dbup' and `dbdown' within a function?
  72.  23) Is there a GNU emacs editing mode for MATLAB?
  73.  24) What is the sign convention used in MATLAB's FFT routines?
  74.  25) Is there any MATLAB software for wavelets?
  75.  26) Is there any MATLAB software for fuzzy logic?
  76.  27) Is there any MATLAB software for communications?
  77.  28) Is there a MATLAB interface to Mathematica?
  78.  29) Why was `fsolve' removed from MATLAB Version 4?
  79.  30) Are there any published books on, or relating to, MATLAB?
  80.  
  81.  Quick Little MATLAB Hacks
  82.  =========================
  83.  31) How can I initialize a this low rank matrix easily?
  84.  32) How can I load-from or save-to a file whose name is in a string variable?
  85.  33) How can I store the result of `!ls *.dat' in a variable?
  86.  34) How can I make a variable global from within a function?
  87.  
  88.  MATLAB on the PC
  89.  ================
  90.  35) What can I do when MATLAB tells me there is not enough environment space?
  91.  
  92.  Xmath / MatrixX Product Information.
  93.  ====================================
  94.  36) What is Xmath?
  95.  37) Are there any publications related to MatrixX?
  96.  38) Are there any e-mail addresses related to MatrixX/Xmath?
  97.  39) What other modules are available from ISI?
  98.  
  99.  Xmath User Questions
  100.  ====================
  101.  40) Is it possible to derive new classes in XMath?
  102.  
  103.  
  104.  
  105.  
  106.                              General
  107.                              =======
  108.  
  109. 1) What is MATLAB?
  110.  
  111.      MATLAB is the name used to refer to the class of matrix cal-
  112.      culator  environments derived from the first, called MATLAB.
  113.      MATLAB was developed by Cleve Moler in the late 1970s at the
  114.      University  of  New  Mexico and other locations with support
  115.      from the National  Science  Foundation.   Since  then,  many
  116.      work-a-likes  have been developed or are in development com-
  117.      mercially, in government and university labs, and so forth.
  118.  
  119.      The  name  of  the  product  available  from  MathWorks   is
  120.      "MATLAB",  not Matlab, Pro-MatLab, etc.  Note that MathWorks
  121.      holds a registered trademark on  the  uppercase  version  of
  122.      MATLAB.
  123.  
  124.      In this document, Matlab may refer to the collective set  of
  125.      MATLAB-based environments or it may refer to the current im-
  126.      plementation developed by MathWorks, Inc.  In general, these
  127.      MATLAB-based  environments  are not source-language compati-
  128.      ble.
  129.  
  130. 2) What is the charter for the comp.soft-sys.matlab group?
  131.  
  132.      The newsgroup 'comp.soft-sys.matlab' is a forum for discuss-
  133.      ing issues related to the use of MATLAB, the scientific cal-
  134.      culation and visualization package from MathWorks Inc.  This
  135.      includes  discussion  of similar software packages which are
  136.      also derived from the original  `Classic  MATLAB',  such  as
  137.      Xmath from Integrated Systems Inc.
  138.  
  139.      Appropriate discussion in the group will include  both  gen-
  140.      eral Matlab issues and platform-specific questions, and dis-
  141.      cussion comparing MATLAB to other systems.
  142.  
  143. 3) What commercially available MATLAB-type environments are sold?
  144.  
  145.      In alphabetical order:
  146.  
  147.      `CLAM' from Scientific Computing Associates, Inc.
  148.  
  149.          246 Church Street, Suite 307
  150.          New Haven, CT  06510
  151.          Tel: 203-777-7442
  152.          Fax: 203-776-4074
  153.  
  154.      `Ctrl-C' from Systems Control Technology, Inc.
  155.  
  156.          CAE Systems Department
  157.          2300 Geng Road
  158.          Palo Alto, CA 94303
  159.          Tel: 800-227-1910
  160.          Tel: 415-494-2233
  161.          Fax: 415-496-6595
  162.  
  163.      `MATLAB' from The MathWorks, Inc.
  164.  
  165.          Cochituate Place
  166.          24 Prime Park Way
  167.          Natick, MA 01760
  168.          Tel: 508-653-1415
  169.          Fax: 508-653-2997.
  170.          Email: info@mathworks.com
  171.  
  172.      `O-MATRIX' from Harmonic Software, Inc.
  173.  
  174.          12223 Dayton Avenue North
  175.          Seattle, WA 98133
  176.          Tel: 206-367-8742
  177.          Fax: 206-367-1067
  178.          Email: harmonic@world.std.com
  179.  
  180.      `Xmath' from Integrated Systems, Inc.
  181.  
  182.          3260 Jay St.
  183.          Santa Clara, CA  95054-3309
  184.          Tel: (408) 980-1500
  185.          Fax: (408) 980-0400
  186.          Email: xmath-info@isi.com
  187.  
  188. 4) What non-commercial MATLAB-type environments exist?
  189.  
  190.      In alphabetical order:
  191.  
  192.      `Caesy'    is    being    developed    by     Matt     Wette
  193.      (mwette@csi.jpl.nasa.gov)  at the Jet Propulsion Laboratory.
  194.      This will be released to COSMIC soon.  It will provide  data
  195.      structures,  conversion  to C-code, and many other features.
  196.      See
  197.  
  198.          M.Wette, "Caesy: A Computer-Aided Engineering System"
  199.          Proc. 1992 Symp. on Computer-Aided Control System Design
  200.          Napa, CA, March 1992
  201.  
  202.      `Mat/C' developed at  Lawrence  Livermore  National  Labora-
  203.      tories by Don Gavel.  This is not publically available.
  204.  
  205.      `Matcalc', by M.Gerberg and E.J. Moore,  University  of  New
  206.      South  Wales,  Australia.  It is available via anonymous ftp
  207.      from
  208.  
  209.          draci.cs.uow.edu.au  in  /netlib/matcalc/
  210.          csi.jpl.nasa.gov  in  /pub/matlab/matcalc/
  211.  
  212.      `MaTX', an interpreter and compiler, developed at Tokyo  In-
  213.      stitute of Technology.  See
  214.  
  215.          M. Koga and K. Furuta, "MaTX: A High-Performance Programming
  216.          Language (Interpreter and Compiler) for Scientific and
  217.          Engineering Computation," Proc. 1992 Symp. on Computer-Aided
  218.          Control System Design, Napa, CA, March 1992
  219.  
  220.      `MEDAL' developed at the University of Waterloo by  Grantham
  221.      Pang  (pang@excel2.uwaterloo.ca).  This has the same command
  222.      language as MATLAB, but includes  a  knowledge-based  expert
  223.      system  development  facility.  It is available for academic
  224.      and research users via anonymous.  You'll need to get a pro-
  225.      gram  password from the author to operate it (no sources in-
  226.      cluded).  It's available via anonymous ftp from
  227.  
  228.          excel2.uwaterloo.ca [129.97.86.13]  in  /pub/
  229.  
  230.      See
  231.  
  232.          Pang, G.K.H.,"Knowledge-based Control System Design", in Recent Advances
  233.          in Computer-Aided Control Systems Engineering, Jamshidi, M and  Herget,
  234.          C.J. (ed.), Elsevier Science Publishers, 1992.
  235.  
  236.          Pang, G.K.H., "A Knowledge Environment for an Interactive Control System
  237.          Design Package", Automatica, Vol. 28. No. 3, pp. 473-491, May 1992.
  238.  
  239.      `Octave',   written   at    the    University    of    Texas
  240.      (jwe@che.utexas.edu), is available via anonymous ftp from
  241.  
  242.          ftp.che.utexas.edu  as  /pub/octave/octave-?.?.tar.Z
  243.  
  244.      `RLaB', written by Ian  Searle  (ians@eskimo.com),  is  free
  245.      software  (in  the  GNU  copyleft  sense).   It is currently
  246.      available via anonymous ftp from
  247.  
  248.          csi.jpl.nasa.gov  in  /pub/matlab/RLaB
  249.          evans.ee.adfa.oz.au  in  /pub/RLaB
  250.  
  251. 5) Are there any standards for MATLAB-type tools?
  252.  
  253.      There is an IFAC/IEEE-CSS Working Group developing standards
  254.      and guidelines for these tools.  A proposed standard command
  255.      language was developed, is described in the  document  "Com-
  256.      mand  Language Standard for CACSD Software" and is available
  257.      from
  258.  
  259.          Magnus Rimvall
  260.          Control Systems Laboratory, GE-CRD
  261.          Schenectady, NY 12301
  262.  
  263. 6) How can I join a MATLAB user group?
  264.  
  265.      To join the user group, send your name, affiliation and  ad-
  266.      dress to:
  267.  
  268.          matlab-users-request@mcs.anl.gov
  269.  
  270.      For European user groups, contact:
  271.  
  272.          France:        Alain Baron
  273.                         phone: 33/1 45 34 23 91
  274.                         fax: 33/1 45 07 08 06
  275.          Germany:       Dr. Ingrid Bausch-Gall
  276.                         phone: 49/89 323 2625
  277.                         fax: 49/89 323 1063
  278.          Sweden:        Svante Littmarck
  279.                         phone: 46/8 15 30 22
  280.                         fax: 48/8 15 76 35
  281.                         email: info@comsol.se
  282.  
  283.          Switzerland:   Carl Bergstrom
  284.                         phone: 031/961 70 11
  285.                         fax: 031/961 12 82
  286.                         email: comsol@clients.switch.ch
  287.  
  288.          UK:            Peter Campbell
  289.                         phone: +44-223-421920
  290.                         fax:   +44-223-421921
  291.  
  292. 7) Are there any software archives?
  293.  
  294.      Yes. MATLAB User Group software archive contains  more  than
  295.      1MB  of  user-contributed  code.  This archive is located on
  296.      NETLIB server of Oak Ridge National Laboratories.  To  learn
  297.      more, send following message:
  298.  
  299.          send index
  300.          send index from matlab
  301.      to:
  302.  
  303.          netlib@ornl.gov
  304.  
  305.      For access from Europe,  try  the  duplicate  collection  in
  306.      Oslo:
  307.  
  308.          Internet:       netlib@nac.no
  309.          EARN/BITNET:    netlib%nac.no@norunix.bitnet
  310.          X.400:          s=netlib; o=nac; c=no;
  311.          EUNET/uucp:     nac!netlib
  312.      For the Pacific, try netlib@draci.cs.uow.edu.au  located  at
  313.      the University of Wollongong, NSW, Australia.
  314.  
  315.      The MathWorks maintains the archive  on  the  anonymous  ftp
  316.      server  ftp.mathworks.com  [144.212.100.10].  This site con-
  317.      tains a "best of" copy of the NETLIB archive as well as oth-
  318.      er  user-contributed, and MathWorks contributed software and
  319.      documentation.  If you are interested in submitting software
  320.      to the archive pick up the file README.incoming from the ar-
  321.      chive or send e-mail to drea@mathworks.com
  322.  
  323.      There   is   a   renegade   archive   at    csi.jpl.nasa.gov
  324.      [128.149.29.4],  in  /pub/matlab.   This  is  stocked with a
  325.      mish-mash of stuff you may not find on  the  other  archives
  326.      (e.g., free MATLAB-look-a-likes).
  327.  
  328. 8) Are there any publications related to MATLAB?
  329.  
  330.      Yes, Math Works Inc. publishes a quarterly  magazine  called
  331.      MathWorks  Newsletter,  giving  info.  on products (new ver-
  332.      sions, releases, toolboxes), matlab user group, matlab short
  333.      courses, related texts etc.  To subscribe to the newsletter,
  334.      send   email   with   your    snail    mail    address    to
  335.      subscribe@mathworks.com.
  336.  
  337.  
  338.  
  339.                MATLAB/SIMULINK Product Information
  340.                ===================================
  341.  
  342. 9) What's new in MATLAB 4.0?
  343.  
  344.      from John Little ...
  345.  
  346.      Here's the "high-level" summary of the major new additions:
  347.  
  348.          * Object-based graphics facility
  349.          * 3-D color scientific visualization abilities
  350.          * Animation
  351.          * Sound output capability
  352.          * M-file debugging facilities
  353.          * Low-level file I/O functions
  354.          * Graphical user interface controls (GUI widget set)
  355.          * Sparse matrix support
  356.          * An improved help system
  357.          * Interpreter and graphics speed improvements
  358.          * A new External Interface library (MEX-files, engine, MAT-files)
  359.          * Better documentation (in the eyes of the beholder, I imagine :-) )
  360.          * Lots of other smaller improvements..
  361.  
  362. 10) How does MATLAB perform on machine X?
  363.  
  364.      LINPACK benchmarks in MATLAB (reported by The MathWorks):
  365.  
  366.          machine                  KFLOPS (LINPACK)
  367.          =======                  ================
  368.          Macintosh (8MHz 68000)                  3
  369.          PC/AT (6.0MHz/80286/EGA)               15
  370.          PC/XT (4.7MHz/8088/CGA)                17
  371.          AT&T 6300 (8MHz/8086)                  29
  372.          Macintosh II (68020/68881)             85
  373.          MicroVAX II (VMS/D_floating)          140
  374.          Macintosh IIcx (68030/68882)          168
  375.          HP 9000/Series 350                    190
  376.          80386/80387 (20MHz, 386-MATLAB)       232
  377.          Macintosh IIci (25MHz 68030/68882)    239
  378.          VAXstation 3100 (VMS/D_floating)      365
  379.          HP 9000/400 (68030)                   500
  380.          80486-based PC (33M Hz)              1300
  381.          HP 9000/425 (68040 chip)             1400
  382.          Macintosh Quadra 700                 1500
  383.          Sun SPARCstation 1                   1500
  384.          DECstation 3100                      1600
  385.          SGI Indigo                           2400
  386.          Sun SPARCstation 2                   2900
  387.          Convex C1                            3700
  388.          IBM RS/6000                          7000
  389.          HP 9000/700                          7400
  390.          Cray X-MP                           71000
  391.          Cray X-MP on a 500-by-500 matrix   135000
  392.  
  393.      Other numbers (reported by users):
  394.  
  395.          80486-DX2 PC @66MHz                  3121  (k.hari@ieee.org)
  396.  
  397. 11) What is SIMULINK (alias Simulab)?
  398.  
  399.      SIMULINK is an interactive system for the nonlinear  simula-
  400.      tion  of  dynamical systems. It is a graphical, mouse-driven
  401.      program that allows systems to  be  modelled  by  drawing  a
  402.      block  diagram  on  the  screen.  It can handle linear, non-
  403.      linear, continuous-time, discrete-time,  multivariable,  and
  404.      multirate  systems.   SIMULINK runs on workstations using X-
  405.      windows, under MicroSoft Windows on the PC,  and on the  Ma-
  406.      cintosh.   It  takes full advantage of windowing technology,
  407.      including pull-down windows and mouse interactions. SIMULINK
  408.      is  fully  integrated with MATLAB, and, together with MATLAB
  409.      and the Control System Toolbox,  forms  a  complete  control
  410.      system design and analysis environment.
  411.  
  412. 12) What toolboxes are currently available from The MathWorks?
  413.  
  414.      The following list includes toolboxes currently  offered  by
  415.      The MathWorks.  For more info check
  416.  
  417.          ftp.mathworks.com  in  /pub/product-info
  418.  
  419.      Signal Processing Toolbox.
  420.  
  421.      This is a toolbox for digital signal processing (time series
  422.      analysis).    It  includes  functions  for  the  design  and
  423.      analysis of digital filters, like Butterworth, Elliptic, and
  424.      Parks-McClellan,  and for FFT analysis (power spectrum esti-
  425.      mation).  It also includes some  2-dimensional  signal  pro-
  426.      cessing capabilities.
  427.  
  428.      Control System Toolbox.
  429.  
  430.      This is a toolbox for control system  design  and  analysis.
  431.      It   supports   transfer   function  and  state-space  forms
  432.      (continuous/discrete time, frequency domain).  Function  for
  433.      step,  impulse,  arbitrary input responses, as well as Bode,
  434.      Nyquist, and Nichols plots.  Design with  root-locus,  pole-
  435.      placement, and LQR optimal control.
  436.  
  437.      System Identification Toolbox.
  438.  
  439.      This is a  toolbox  for  parametric  modelling.   Identified
  440.      models  are in transfer function form (either z-transform or
  441.      Laplace transform) and state-space form (e.g.,  ARMA  models
  442.      or Box-Jenkins models).
  443.  
  444.      Optimization Toolbox.
  445.  
  446.      This is a toolbox for linear and nonlinear optimization  and
  447.      supports   unconstrained   and   constrained   minimization,
  448.      minimax,  nonlinear  least  squares,  multi-objective,   and
  449.      semi-infinite  optimization,  linear  programming, quadratic
  450.      programming and the solution of non-linear equations.
  451.  
  452.      Spline Toolbox.
  453.  
  454.      This is a toolbox for working with splines and is  typically
  455.      used  for  curve fitting, solution of function equations and
  456.      functional approximation.
  457.  
  458.      Robust-Control Toolbox.
  459.  
  460.      This is a toolbox for robust control system design and  sup-
  461.      ports  LQG/loop  transfer  recovery, H2, H0, and mu- control
  462.      synthesis, singular  value  frequency  response,  and  model
  463.      reduction.
  464.  
  465.      Neural Net Toolbox.
  466.  
  467.      This is a toolbox for designing and simulating  neural  net-
  468.      works and supports implementation of the perceptron learning
  469.      rule, the Widrow-Hoff rule, and several  variations  of  the
  470.      backpropagation  rule.  Transfer functions included are hard
  471.      limit, linear, logistic & hypertangent sigmoid.
  472.  
  473.      Delta Toolbox.
  474.  
  475.      This is a toolbox for analysis using the delta transform, an
  476.      approach  to unifying continuous and discrete systems theory
  477.      without use of the Z-transform.  It  is  available  free  to
  478.      purchasers of "Digital Control and Estimation: A Unified Ap-
  479.      proach," by Graham Goodwin and Rick Middleton.
  480.  
  481.      Image Processing Toolbox.
  482.  
  483.      The Image Processing Toolbox provides an environment for im-
  484.      age   processing   and   analysis.    Images   are  matrices
  485.      (surprised?).   Functions  include  linear   and   nonlinear
  486.      filtering;   image  restoration;  image  enhancement;  image
  487.      analysis and statistics; color, geometric, and morphological
  488.      operations 2-D transforms; and 2D FIR filter design and fre-
  489.      quency response.
  490.  
  491.      Symbolic Math Toolbox.
  492.  
  493.      The Symbolic Math Toolbox contains  functions  for  symbolic
  494.      algebra,  exact linear algebra, variable precision arithmet-
  495.      ic, equation solving, and  special  mathematical  functions.
  496.      Its  underlying computational engine is the kernel of Maple.
  497.      The Extended Symbolic Math Toolbox augments the functionali-
  498.      ty to include Maple programming features and specialized li-
  499.      braries.
  500.  
  501.      Statistics Toolbox.
  502.  
  503.      The Statistics Toolbox provides statistical  data  analysis,
  504.      modeling,  and  Monte  Carlo simulation; building-blocks for
  505.      creating your own special-purpose statistical tools; and GUI
  506.      tools  for  exploring fundamental concepts in statistics and
  507.      probability.  Functionality covers descriptive, inferential,
  508.      and  graphical  statistics, and linear models as well as in-
  509.      teractive graphics for dynamic visualization  of  functions,
  510.      data, and probability distributions.
  511.  
  512. 13) Can I use C and Fortran programs with MATLAB?
  513.  
  514.      MATLAB's MEX-file facility allows user to use C and  Fortran
  515.      subroutines  as  MATLAB  m-files. It is also possible to use
  516.      MATLAB as a computational engine for C/Fortran subroutines.
  517.  
  518. 14) How do I contact The MathWorks about MATLAB via email?
  519.  
  520.      Here you go ...
  521.  
  522.          * support@mathworks.com     technical support
  523.          * suggest@mathworks.com     product enhancement suggestions
  524.          * bugs@mathworks.com        bug reports
  525.          * doc@mathworks.com         documentation error reports
  526.          * register@mathworks.com    user and product registration
  527.          * subscribe@mathworks.com   subscribing user registration
  528.          * info@mathworks.com        sales, pricing, general info.
  529.          * netlib@ornl.gov           software archive contact
  530.          * digest@mcs.anl.gov        user group
  531.  
  532.  
  533.  
  534.                       MATLAB User Questions
  535.                       =====================
  536.  
  537. 15) How can I change the default window size, colors, etc. in MATLAB 4?
  538.  
  539.  
  540.      from serr15@liverpool.ac.uk ...
  541.  
  542.      Try something like the following in your `startup.m' file:
  543.  
  544.          set(0,'DefaultFigurePosition',[5 5 505 405])
  545.          set(0,'DefaultFigureColor',[0,0,0])  %%  N.B this has side effects.
  546.          set(0,'DefaultAxesFontName','times')
  547.          set(0,'DefaultTextFontName','times')
  548.          set(0,'DefaultAxesFontSize',12)
  549.          set(0,'DefaultTextFontSize',12)
  550.  
  551. 16) How can I import MATLAB graphics into my Framemaker, TeX, etc. document?
  552.  
  553.      The MATLAB (version 4) print command provides a "-deps"  ar-
  554.      gument which provides a Encapsulated PostScript file of your
  555.      plot.  Some people have reported  various  problems  getting
  556.      this stuff to work.  Some suggestions:
  557.  
  558.      Removing the last line "%%EOF" from the eps-file.
  559.  
  560.      Use   the   the   pstoepsi   filter   from   Doug    Crabill
  561.      (dgc@cs.purdue.edu).
  562.  
  563.      Use "bbps" and ghostscript.  "bbps.shar"  is  available  via
  564.      anonymous  ftp  on  "csi.jpl.nasa.gov".   You'll need to get
  565.      GhostScript from your nearest GNU ftp site.
  566.  
  567.      [This area needs more work :).  ed.]
  568.  
  569. 17) Is there a topical help function, like `apropos'?
  570.  
  571.      Yes.  The function  you're  looking  for  is  `lookfor'  (in
  572.      MATLAB 4).
  573.  
  574.          >> lookfor fourier
  575.  
  576.          FFT     Discrete Fourier transform.
  577.          FFT2    Two-dimensional Fast Fourier Transform.
  578.          IFFT    Inverse discrete Fourier transform.
  579.          IFFT2   Two-dimensional inverse discrete Fourier transform.
  580.          FOURIER Graphics demo of Fourier series expansion.
  581.          DFTMTX  Discrete Fourier transform matrix.
  582.  
  583.          >>
  584.  
  585. 18) Why am I finding all these undocumented functions (like COMET) in MATLAB?
  586.  
  587.      from Cleve Moler ...
  588.  
  589.      Almost everything in the "demos" directory is not  described
  590.      in  the  User's Guide.  There are lots of goodies there.  In
  591.      4.0, the demos are best place  to  see  examples  of  Handle
  592.      Graphics.
  593.  
  594.      There are other undocumented functions in directories  other
  595.      than  demos.   Some  of them are "worker" functions that are
  596.      unlikely to be used directly; they are simply called by oth-
  597.      er  functions.   A few, like COMET and COMET3, were actually
  598.      written after the User's Guide had been sent to the printer.
  599.  
  600. 19) Has anybody any information about the matlab function `system_dependent'?
  601.  
  602.      from John Little (w/editing) ...
  603.  
  604.      `system_dependent' is an unpublished function that  is  used
  605.      for  a  variety  of  crufty  things.  It will most certainly
  606.      change from time to time and possible even go away complete-
  607.      ly.   For  anybody curious about it, here is what it does in
  608.      MATLAB 4.0 on SPARCstations:
  609.  
  610.  
  611.          system_dependent(1)    deals with the MATLAB-ACSL interface.  ACSL
  612.                                 is a simulation language that MATLAB can talk
  613.                                 to.  See ACSL.M for more information.
  614.  
  615.          system_dependent(2,0)  turns off command-line editing.
  616.          system_dependent(2,1)  turns it back on.
  617.  
  618.          system_dependent(3)    is unused.
  619.  
  620.          system_dependent(4,i,j) is used to program the command-line editing
  621.                                 keys.  See CEDIT.M for more information.
  622.  
  623.          system_dependent(5)    enables core dumps in the event of seg faults.
  624.                                 Normally MATLAB tries to catch seg faults and
  625.                                 "continue".
  626.  
  627.      system_dependent does different things  in  MATLAB  3.5  and
  628.      other platforms.
  629.  
  630. 20) How can I get the parser to accept a dummy reference without an error?
  631.  
  632.      Adopted from post by Jim Tung ...
  633.  
  634.      MATLAB parses code to look  for  syntax  errors.   When  the
  635.      parser  encounters a name with 2 or fewer arguments, it lets
  636.      them pass since they might be a variable with  indices.   If
  637.      it  encounters a name with 3 or more arguments, MATLAB knows
  638.      it cannot be a variable, so the error message  is  returned.
  639.      If  you  don't want the parser to snag the function, specify
  640.      one with 2 or fewer arguments.
  641.  
  642. 21) How do I get the plot command to cycle through line-types?
  643.  
  644.      From Chuck Packard <cpackard@mathworks.com> ...
  645.  
  646.      MATLAB v4.1 has a an axis property LineStyleOrder for  this.
  647.      Monochrome  users  can tell MATLAB to always use white lines
  648.      and cycle through their favorite line styles with  the  com-
  649.      mands:
  650.  
  651.          set( 0, 'DefaultAxesColorOrder', [1 1 1] )
  652.          set( 0, 'DefaultAxesLineStyleOrder', '-|:|--' )
  653.  
  654.      These commands can be put in your startup.m to  always  give
  655.      you styled lines.
  656.  
  657. 22) Can I use `dbup' and `dbdown' within a function?
  658.  
  659.      Derived  from   post's   of   lara@mrisun.med.yale.edu   and
  660.      jlittle@mathworks.com ...
  661.  
  662.      MATLAB wasn't designed to be used this  way.   But,  if  you
  663.      don't  reference  any variables between your calls to `dbup'
  664.      and `dbdown' (i.e., you just use `save', `who', `dir', etc),
  665.      it  should work.  Otherwise, you may well run into problems.
  666.      If you `dbup' while in a function, you change the  workspace
  667.      context while continuing execution of the original function.
  668.      This means that subsequent references to variables  will  be
  669.      bound  to  variables  in  a  different workspace.  Since the
  670.      internal p-code uses integers as variable  identifiers,  you
  671.      will  get  a random attachment to these different variables.
  672.      At best, you'll get random results.  At worst you might  seg
  673.      fault if you exceed the number of available identifiers.
  674.  
  675. 23) Is there a GNU emacs editing mode for MATLAB?
  676.  
  677.      A GNU emacs `matlab-mode' is  available  via  anonymous  ftp
  678.      from
  679.  
  680.          csi.jpl.nasa.gov  as  pub/matlab/util/matlab-mode.el
  681.  
  682. 24) What is the sign convention used in MATLAB's FFT routines?
  683.  
  684.      The FFT in MATLAB is defined as sum(x(i)*exp(-j*i*k/N))  and
  685.      not sum(x(i)*exp(j*i*k/N)).  The first version is tradition-
  686.      ally used by engineers, the  second  version  by  mathemati-
  687.      cians.   Since  MATLAB was written by an engineer (John Lit-
  688.      tle), the engineering approach was used.
  689.  
  690. 25) Is there any MATLAB software for wavelets?
  691.  
  692.      Contact Carl Taswell <taswell@sccm.stanford.edu> is  working
  693.      on a wavelet toolbox.  The toolbox and associated papers are
  694.      available via anonymous ftp from
  695.  
  696.          simplicity.stanford.edu  in  /pub/taswell
  697.  
  698.      A newer version should be available soon.
  699.  
  700.      Also, Jeff Kantor <jeffrey.kantor@nd.edu> is distributing  a
  701.      wavelet toolbox.  It is available via anonymous ftp from
  702.  
  703.          control.cheg.nd.edu  in  /pub/wavelets/wavetools1_1.tar
  704.  
  705.      The toolbox, rice-wlet-tools-1.1,  a  collection  of  MATLAB
  706.      "mfiles"  and  "mex"  files  for  twoband  and M-band filter
  707.      bank/wavelet analysis, is available via anonymous ftp from
  708.  
  709.          cml.rice.edu  in  /pub/dsp/{software,papers}
  710.  
  711.      Contact Ramesh Gopinath <ramesh@dsp.rice.edu>.
  712.  
  713. 26) Is there any MATLAB software for fuzzy logic?
  714.  
  715.      A.Lotfi  <lotfia@s1.elec.uq.oz.au>  has  developed  a  Fuzzy
  716.      Inference  Systems  Toolbox.   It is available via anonymous
  717.      ftp from
  718.  
  719.          ftp.mathworks.com  as  /pub/contrib/misc/fuzzy_inference_systems.sh
  720.                             or  /pub/contrib/misc/pc_fuzzy_inference_systems.sh
  721.  
  722.      A Fuzzy-Control  Toolbox  has  been  developed  by  Bernhard
  723.      Kaemmpf  <kaempf@ifr.luftfahrt.uni-stuttgart.de>.   Send him
  724.      email if you  are  interested  in  obtaining  the  software.
  725.      (Sounds like he is willing to give it away.)
  726.  
  727.      Jyh-Shing Roger Jang <jang@diva.berkeley.edu> has provided a
  728.      few  routines  for  demonstrating  parameterizing membership
  729.      functions (MF)  and  learning  in  fuzzy  inference  systems
  730.      (FIS).   The  file fuzzdemo.tar.Z is available via anonymous
  731.      ftp from
  732.  
  733.          csi.jpl.nasa.gov  in  /pub/matlab/contrib/
  734.  
  735. 27) Is there any MATLAB software for communications?
  736.  
  737.      Mehmet  Zeytinoglu  <mzeytin@ee.ryerson.ca>  has  written  a
  738.      MATLAB  toolbox  for  communications.  It  is  available via
  739.      anonymous ftp from
  740.  
  741.          ftp.mathworks.com  as  /pub/contrib/misc/comm_tbx.tar
  742.  
  743. 28) Is there a MATLAB interface to Mathematica?
  744.  
  745.      Yes.  WRI has developed a free MATLAB-Mathematica interface.
  746.      It is available via anonymous ftp from
  747.  
  748.          mathsource.wri.com  as  /pub/WhatsNew/matlab2math.tar.Z (Unix)
  749.                              or  /pub/WhatsNew/matlab2math.sea.hqx (Mac)
  750.                              or  /pub/WhatsNew/matlab2math.zip (Windows) ?
  751.      or via email via "send 0205-951" to mathsource@wri.com.
  752.  
  753. 29) Why was `fsolve' removed from MATLAB Version 4?
  754.  
  755.      The algorithms used by  fsolve  were  not  numerically  well
  756.      behaved.  MathWorks  did  not feel that it met the standards
  757.      require for approved software.  The version of FSOLVE in the
  758.      Optimization  Toolbox  is recommended.  If your site doesn't
  759.      still have the 3.5 version, you can get it via anonymous ftp
  760.      from
  761.  
  762.          ftp.mathworks.com  as  /pub/contrib/optim/fsolve35.tar
  763.  
  764. 30) Are there any published books on, or relating to, MATLAB?
  765.  
  766.      There is a list of published book  available  via  anonymous
  767.      ftp from
  768.  
  769.          csi.jpl.nasa.gov  as  /pub/matlab/matlab-books
  770.  
  771.  
  772.  
  773.                     Quick Little MATLAB Hacks
  774.                     =========================
  775.  
  776. 31) How can I initialize a this low rank matrix easily?
  777.  
  778.      Here's "Tony's trick", attributed to Tony Booer  of  Schlum-
  779.      berger:
  780.  
  781.      To initialize a matrix with values "a" in the first row  and
  782.      values "b" in the second row, do the following:
  783.  
  784.          [a(1,ones(1,m)) ; b(1,ones(1,m))]
  785.  
  786. 32) How can I load-from or save-to a file whose name is in a string variable?
  787.  
  788.  
  789.          name = 'xyz.mat';
  790.          eval(['save ', name]);
  791.          eval(['load ', name]);
  792.  
  793. 33) How can I store the result of `!ls *.dat' in a variable?
  794.  
  795.  
  796.          [stat, list] = unix('ls *.dat');
  797.      The variable `stat' contains the return status, the variable
  798.      `list' contains the output.
  799.  
  800. 34) How can I make a variable global from within a function?
  801.  
  802.      You can in MATLAB 4.  The following hack is from Laura  Nee-
  803.      dles     <lohrah@csi.jpl.nasa.gov>    and    Mike    Kantner
  804.      <rainbow@csi.jpl.nasa.gov>.    Define   the   script    file
  805.      `mkglobal.m', containing
  806.  
  807.          function [] = mkglobal(var)
  808.          % MKGLOBAL      mkglobal(var) - make var a global variable
  809.          if ~exist('mkglobal_var'), mkglobal_1; end;
  810.          mkglobal_var = var; mkglobal_2
  811.  
  812.      Define the script file `mkglobal_1.m' as
  813.  
  814.          global mkglobal_var
  815.  
  816.      Define the script file `mkglobal_2.m' as
  817.  
  818.          eval(['global ', mkglobal_var]);
  819.  
  820.  
  821.  
  822.                         MATLAB on the PC
  823.                         ================
  824.  
  825. 35) What can I do when MATLAB tells me there is not enough environment space?
  826.  
  827.      This usually happens if  in  the  matlab  path  you  include
  828.      greater that 4 or 5 paths.  One solution is to increase your
  829.      environment space by adding the following  command  in  your
  830.      config.sys file:
  831.  
  832.          shell=c:\dos\command.com /e:nnnnn /p
  833.  
  834.      where nnnnn is the number of bytes you use  for  environment
  835.      memory.  It  varies from 256 bytes to 32768 bytes(32Kbytes).
  836.      Usually, 5000 bytes can solve your problem.  (The /p command
  837.      is  used  so  that  the autoexec.bat file runs when you boot
  838.      your computer.)
  839.  
  840.  
  841.  
  842.               Xmath / MatrixX Product Information.
  843.               ====================================
  844.  
  845. 36) What is Xmath?
  846.  
  847.      from mesaros@isi.com ...
  848.  
  849.      Xmath is an interactive mathematics, scripting, and graphics
  850.      environment  for  X  Window  workstations.   It has features
  851.      which represent a  significant  improvement  on  matlab-type
  852.      software tools, including:
  853.  
  854.          * Object-oriented scripting language.
  855.          * "Point-and-click" color graphics.
  856.          * Visual debugging tool.
  857.          * LNX and C-callable libraries.
  858.          * Programmable MOTIF GUI layer.
  859.  
  860.      Xmath from Integrated Systems Inc. is available on  the  In-
  861.      ternet via FTP from isi.com.  If you would like to down-load
  862.      Xmath to view the Xmath Interactive demo, do the following:
  863.  
  864.          From the UNIX/Shell environment, type:
  865.          ftp isi.com  (if the host is unknown, try ftp 192.73.222.1)
  866.          When asked for name/user, type:
  867.          anonymous
  868.          When asked for the password, simply type your e-mail address.
  869.  
  870.      Once your e-mail address is accepted,  and  if  the  maximum
  871.      number  of ftp clients has not been exceeded, the connection
  872.      will be made and a list of instructions will appear.  Simply
  873.      follow that list of instructions to transfer a copy of Xmath
  874.      to your system.
  875.  
  876. 37) Are there any publications related to MatrixX?
  877.  
  878.      Yes, ISI publishes a  quarterly  magazine   called  Response
  879.      Times  that  gives  information on products (new ver- sions,
  880.      releases, modules), user conference, classes, and a  Techni-
  881.      cal Support Corner where they answer user questions.
  882.  
  883.      Also, ISI has an annual  Users  Conference.   The  viewgraph
  884.      presentations  from this conference are available.  The next
  885.      conference in March 15-17, 1993.
  886.  
  887. 38) Are there any e-mail addresses related to MatrixX/Xmath?
  888.  
  889.      Yes. Some are:
  890.  
  891.          * support@isi.com           tech support for ISI MatrixX products
  892.                                       (408)980-1590 ext. 321
  893.          * info@isi.com              product literature requests
  894.          * kate@isi.com              contributions to Response Times Mag
  895.  
  896. 39) What other modules are available from ISI?
  897.  
  898.  
  899.          * MatrixX/XMath
  900.          * Robust Control Module
  901.          * Optimization Module
  902.          * Model Reduction Module
  903.          * Digital Signal Processing Module
  904.          * System Identification Module
  905.  
  906.          * System_Build
  907.          * RT/Expert System Block
  908.          * RT/Fuzzy Logic Block
  909.          * Interactive Animation
  910.          * AutoCode (C,FORTRAN, Ada)
  911.          * Automatic Documentation Generation
  912.  
  913.      3rd Party Packages
  914.  
  915.          * ADAPTx Automated System Identification Software
  916.  
  917.      Real Time Execution
  918.  
  919.          * AC-100 Product for Hardware in the Loop Simulations
  920.  
  921.      ISI recently merge with the Software  Component  Group  that
  922.      makes  and  sells  the  PSOS+ real time operating system and
  923.      development tools.
  924.  
  925.  
  926.  
  927.                       Xmath User Questions
  928.                       ====================
  929.  
  930. 40) Is it possible to derive new classes in XMath?
  931.  
  932.      From Alexandra Schmidt <aliki@isi.com> ...
  933.  
  934.      Xmath does not currently allow you  to  'derive'  new  subc-
  935.      lasses  from  the built-in ones (dynamic systems, parameter-
  936.      dependent matrices, strings and string  matrices,  polynomi-
  937.      als,  "special  matrices",  etc.)   However, a number of our
  938.      users have used the list object to create  compound  objects
  939.      containing  different  kinds  of built-in objects, then used
  940.      the resulting list-based object for more complex data model-
  941.      ing.  Your question echoes a request we've heard a number of
  942.      times and is a high priority for our future development,  so
  943.      keep an eye out. . .
  944.  
  945.  
  946.          $Id: FAQ.in,v 1.2 1993/11/23 17:24:16 mwette Exp $
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.