HDTenEightyP/NetNews huggingface dataset:
From: little@mathworks.com (John Little)
Newsgroups: comp.soft-sys.matlab
Subject: Re: New to 4.0?
Date: 26 Jan 93 23:57:12 GMT
Organization: The MathWorks, Inc.
X-Useragent: Nuntius v1.1

In article <1993Jan24.182644.20817@unvax.union.edu> Joseph C. Pallante,
pallantj@unvax.union.edu writes:
>Sorry for asking such a stupid question.  But....
>
>What major improvements are there in Matlab 4.0 over version 3.5?
>
>Thank You!
>
>Joe


Here's the "high-level" summary of the major new additions:

- Object-based graphics facility
- 3-D color scientific visualization abilities
- Animation
- Sound output capability
- M-file debugging facilities
- Low-level file I/O functions
- Graphical user interface controls (GUI widget set)
- Sparse matrix support
- An improved help system
- Interpreter and graphics speed improvements
- A new External Interface library (MEX-files, engine, MAT-files)
- Better documentation (in the eyes of the beholder, I imagine :-) )
- Lots of other smaller improvements..


This sounds like a FAQ-like question....

John Little
Newsgroups: comp.soft-sys.matlab
From: jeff@control.nd.edu (Jeffrey C. Kantor)
Subject: Matlab4.0 versus Framemaker3.1.1
Reply-To: jeff@control.nd.edu
Organization: University of Notre Dame
Date: Fri, 22 Jan 1993 20:24:55 GMT

I find myself unable to import eps files generated by Matlab 4.0 into
Framemaker.  I get a frame, but no graphics either on the printer or
the screen.

The Mathworks says the postscript generation is improved in 4.0A, but
that didn't directly answer my question of whether this particular problem
will be fixed. 

Does anyone else know?

---
Jeffrey C. Kantor                   Email: Jeffrey.Kantor@nd.edu
Dept. of Chemical Engineering       Voice: 219 631 5797
University of Notre Dame              Fax: 219 631 8366
Notre Dame, IN 46556
From: little@mathworks.com (John Little)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Parser bugs
Date: 26 Jan 93 23:23:18 GMT
Organization: The MathWorks, Inc.
X-Useragent: Nuntius v1.1

In article <1993Jan18.155531.4025@tdb.uu.se> Peter Haegglund,
peterh@tdb.uu.se writes:
>: Hi,
>: 	Just curious whether a couple of parser bugs/quirks have been fixed
>: in version 4.0.  Two such quirks that come to mind are:
>: 
>: 1)
>: >> 4 * -1	% this will result in an error
>: >> 4 * (-1)	% this will work
>: 
>: 2)
>: >> [1 + 2 * 3, 4]	% how many elements in this matrix?
>: 
>: This handling of unary operators is just a little unintuitive --
usually
>: mere nuisance value.

The first of these "quirks" is a reasonable suggestion and I'll see that
it is added to our "wish list" for possible inclusion into a future
version of MATLAB.

The second of these two "quirks" has been "improved". As several other
people point out, spaces are significant inside brackets.  This is
a "nice" feature in that it allows statements like

   a = [a b; c d]
   a = [1 2 3 4 5 6]

rather than requiring commas between matrix elements. However using 
MATLAB 3.5 the statement

   a = [1 + 2 * 3, 4]
   
gives you

   a = 1  6  4

because the "+" is treated as the sign on the 2. Using MATLAB 4.0 this 
now returns an answer that is more likely to be what you intended:
   

   a  =  7   4
   
We noticed too that if there are spaces around the operator then it
is unambiguous what you want.


John Little
little@mathworks.com
From: dhampton@carson.u.washington.edu (David Hampton)
Newsgroups: comp.soft-sys.matlab
Subject: Saving a filename
Date: 22 Jan 1993 21:57:39 GMT
Organization: University of Washington
NNTP-Posting-Host: carson.u.washington.edu

I have prompted a user for a data filename using 
   filename=input('Data file to read: ', 's');
and now I need to do some manipulations on the file to break it
into matrices for Matlab to load.  This is most easily done with
shell commands from my m-file, but I have to pass the string in 
"filename" to the shell so that I can manipulate the selected file
(Matlab wont export variable values to shell commands).
One way might be to save the filename as
  save tmp_file filename -ascii
but this just saves digits for the letters of the filename.  Is there
a way to save the actual ascii text to a file?

  -- Dave Hampton
From: ellert@v32.uh.cwru.edu ()
Newsgroups: comp.soft-sys.matlab
Subject: Re: List of filenames
Date: 25 Jan 1993 14:58:46 GMT
Organization: Image Analysis Center, Univ. Hospitals of Cleveland
Distribution: world
Reply-To: ellert@nu1.uh.cwru.edu
NNTP-Posting-Host: max.uh.cwru.edu


In article <1993Jan22.163358.10283@nic.funet.fi>, Tero Siili <Tero.Siili@fmi.fi> writes:
>Question: I have a text lines (all of the same length) in a text file.  
>How can I read those text lines into Matlab string variables?  I tried
>using load, but to no avail and I was unable to find other alternatives 
>based on the documentation.

A long time ago I wrote a bunch of MEX functions which allow direct file
manipulation based on the C routines fopen, etc.  These routines have been
used by our facility for close to 3 years and have been pretty well debugged
by now.  Your problem would be easily solved by using the mfgets call to
read each line in your file.

There is a catch; technically the routines belong to our facility and without
permission I cannot post them.  Supposedly matlab v4.0 has similar file
manipulation capabilities.  For these reasons I haven't bothered to get
permission to post them, however, if there is sufficient interest I'll see
what I can do.

Ed Ellert
ellert@nu1.uh.cwru.edu
Newsgroups: comp.soft-sys.matlab
From: Tero Siili <Tero.Siili@fmi.fi>
Subject: List of filenames
X-Xxmessage-Id: <A785ECE00A013289@barsoom.fmi.fi>
X-Xxdate: Fri, 22 Jan 93 18:26:40 GMT
Organization: Ilmatieteen laitos / Finnish Meteorological Institute
X-Useragent: Nuntius v1.1.1d17
Date: Fri, 22 Jan 93 16:33:58 GMT

Question: I have a text lines (all of the same length) in a text file.  
How can I read those text lines into Matlab string variables?  I tried
using load, but to no avail and I was unable to find other alternatives 
based on the documentation.

Tero Siili
Finnish Meteorological Institute
Tero.Siili@fmi.fi
From: wang@nyquist.usc.edu (Weizheng Wang)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Are .m files available on ftp-sites?
Date: 27 Jan 1993 06:26:30 -0800
Organization: University of Southern California, Los Angeles, CA
NNTP-Posting-Host: nyquist.usc.edu

In article <1k5d64INNiek@shelley.u.washington.edu> newsman@stein.u.washington.edu (Christian Ricci) writes:
>Do any of you amateur matlab programers put you .m creations on some site
>somewhere?  Thanks!
>
>Chris
>

To answer the question, I am enclosing a post I read from comp.dsp a few 
months ago. Hopefully, this may lead a new trend -- exchange .m files and
documentation by package. I did succesfully down load the following 
"communication toolbox".

------enclosure-----
 
           *******************************************
           *      MATLAB Communications toolbox      *
           *******************************************
 
Thanks to Phillip Musumeci who allowed his site to be used 
the MATLAB communications toolbox together with the manual, 
figures and sample sound files is now available for downloading 
by anonymous ftp.   
 
I am still trying to upload the package to the NETLIB 
(research.att.comm), and I will announce on the net when that
process is accomplished.   But until then here is the information:
 
FTP SITE:
    evans.ee.adfa.oz.au
 
DIRECTORY:
    pub/matlab/comms
      or
    pub/dsp/matlab/comms
 
FILES:
    README   (size: 10551 bytes  )
    commtbx  (size: 1991508 bytes )
 
FORMAT:
    both files are in ASCII
 
INSTALLATION:
    Follow the instructions provided in the README file.  For your
    information the file "commtbx" is tar-archived, compressed
    and uuencoded.
 
Regards,
 
=========================================================================
Dr. Mehmet Zeytinoglu                  Voice:  (416) 979-5000 ext. 6479
Department of Electrical Engineering   Fax:    (416) 979-5280
Ryerson Polytechnical Institute        E-mail: mzeytin@ee.ryerson.ca
350 Victoria Street                            
Toronto, Ontario
CANADA, M5B 2K3
=========================================================================

____end enclosure_______

W.Wang
Newsgroups: comp.soft-sys.matlab
From: jnicolas@image.mit.edu (Julien Nicolas)
Subject: Purpose of %%BeginPreview ... %%EndPreview in eps files
Organization: Massachusetts Institute of Technology, Cambridge, USA
Date: Sat, 23 Jan 1993 05:16:08 GMT


Eps files generated with 'print -deps' are huge. Unecessarily so it
seems. They contain, at least under 4.0, a section with no information:

%%BeginPreview: 560 420 1 420
%ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
...
%%EndPreview

Can this 'feature' be disabled, turned off, short of having to remove it
by hand?


Julien Nicolas.

Newsgroups: comp.soft-sys.matlab
From: moler@sccm.Stanford.EDU (Cleve Moler)
Subject: MATLAB Student Edition
Summary: Limitations of Student Edition
Organization: Scientific Computing/Computational Mathematics (SCCM), Stanford U.
Date: Sun, 24 Jan 1993 21:44:01 GMT

Some recent postings have had conflicting information about the
limitations in the Student Edition.

The Student Edition of MATLAB is published by Prentice-Hall and
is available to students in college bookstores for the price of a
typical textbook.  It is essentially MATLAB 3.5, limited to
vectors or matrices with 1024 elements -- that's a 32-by-32 matrix,
not 10-by-10.  The PC version uses the math coprocessor if it
is present, but does not require it.  The Mac version has two
executable images, for with and without math coprocessor.  Hard
copy output is limited to screen dump -- there is no graphics
post processor.  The User's Guide alone, without any software,
is also available for students who have access to MATLAB in
campus labs, but don't have their own personal machines.

  -- Cleve Moler
  moler@mathworks.com



Newsgroups: comp.soft-sys.matlab
From: wkn@leland.Stanford.EDU (Ken Neighbors)
Subject: Re: What is simulink?
Followup-To: comp.soft-sys.matlab
Summary: was Simulab
Keywords: simulink
Organization: DSG, Stanford University, CA 94305, USA
Date: Tue, 26 Jan 93 00:49:47 GMT

In article <1k1ossINNe3n@shelley.u.washington.edu> chuckb@stein.u.washington.edu (Charles Bass) writes:
>I am somewhat new to this group but have experience with Matlab
>and Simulab.  I haven't heard of Simulink.  Is it a dynamic
>simulation package like adams or imp?     

It's Simulab.  They (Mathworks) had to change the name.

For those who haven't used Simulab, Simulink is
    "a program for simulating dynamic systems.  As an extension to
    MATLAB, SIMULINK adds many features specific to dynamic systems
    while retaining all of MATLAB's general purpose functionality."

[From the SIMULINK User's Guide.  Hope this little quote doesn't violate
    anything :)]

Ken Neighbors
wkn@leland.stanford.edu
From: ah@cs.tu-berlin.de (Andreas Helmcke)
Newsgroups: comp.soft-sys.matlab
Subject: any information on system_dependent ?
Date: 21 Jan 1993 15:42:36 GMT
Organization: Technical University of Berlin, Germany
NNTP-Posting-Host: chimera.cs.tu-berlin.de
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit


Hello,

has anybody any information about the matlab funktion 'system_dependent' ?
As far as i figured out, you can switch the history on/off using 
system_dependent(2).
I think, system_dependent can do some more usefull work and I would like
to know about it.

Greetings Andreas
-- 
Andreas Helmcke | UUCP: ah@opal.cs.tu-berlin.de  ..!{unido,pyramid}!tub!opal!ah
                | BITNET: ah%tubopal@DB0TUI11.BITNET    
Steinbach's Guideline for Systems Programming
   Never test for an error condition you don't know how to handle
Newsgroups: comp.soft-sys.matlab
From: jw7348@norway.medtronic.com (Jeff Wilkinson)
Subject: Re: Combining vectors
Organization: Medtronic, Inc., Minneapolis, MN
Date: Wed, 27 Jan 1993 21:35:33 GMT

In article <1993Jan26.182616.11550@vax.oxford.ac.uk> reese@vax.oxford.ac.uk writes:
>
>
>I want to take two vectors and combine them, e.g.
>[ a b c d e]  and [ f g h i j ] 
>become  [ a f b g c h d i e j ]
>
>Does anyone know a quick and easy way to do this, and the reverse of
>it?  Thanks in advance for your help!
>
>Jason


Jason,

Try this for 2 equal length input vectors:

>> v1 = [1 2 3];                  % create a vector for each
>> v2 = [4 5 6];                  %  operand
>> inx = 1:length([v1,v2]);       % create an indexing vector equal
>> inx = rem(inx,2);              %  to the summed length
>> result = zeros(size(inx));     % allocate the result vector
>> result(inx) = v1;              % put the v1 at odd indices
>> result(~inx) = v2;             % fill in the even with v2
>> result

result =
     1    4    2    5    3    6

>> result(inx)                    % retrieve v1

result =

     1    2    3

>> result(~inx)                   % retrieve v2

result =

     4    5    6


Hope this helps,

------------------------------------------------------------------------
Jeff Wilkinson                          Internet: wilk@medtronic.com
Medtronic, Inc.                         Voice +1-612-574-3770
7000 Central Ave NE                     FAX   +1-612-574-4306
Minneapolis, MN  55432  
Newsgroups: comp.soft-sys.matlab
From: vaitken@dres.dnd.ca (Vic Aitken)
Subject: Re: Matlab 4.0 Time table?
Reply-To: vaitken@dres.dnd.ca
Organization: Defence Research Establishment Suffield
Distribution: na
Date: Thu, 28 Jan 1993 14:28:58 GMT

We have still not received our upgrade from MatLab 3.5 to 4.0
for the Sun (Sparc), however I see that many of you are talking
about 4.0 on Sun platforms. Any other Sun users still
waiting for their 4.0 upgrade?

-- 
Vic Aitken, vaitken@dres.dnd.ca, (403) 544-4726, 
Defence Research Establishment Suffield (DRES)
Box 4000, Medicine Hat, Alberta, Canada, T1A 8K6
(OPINIONS ARE MY OWN, NOT THOSE OF DRES)
Newsgroups: comp.soft-sys.matlab
From: pallantj@unvax.union.edu (Joseph C. Pallante)
Subject: New to 4.0?
Organization: Union College, Schenectady, NY
Date: Sun, 24 Jan 1993 18:26:44 GMT

Sorry for asking such a stupid question.  But....

What major improvements are there in Matlab 4.0 over version 3.5?

Thank You!

Joe

Newsgroups: comp.soft-sys.matlab
From: wayne@econ.yale.edu (Kevin Wayne)
Subject: Enumerating Combinations
Organization: Economics Department, Yale University, New Haven, Ct.
Date: Sat, 23 Jan 1993 21:44:52 GMT

I want to enumerate all combinations of n items taken p at a time for
arbitrary n, p<=n.

(i.e., for (n,p)=(5,3) generate a sequence of vectors:
	[1 2 3], [1 2 4], [1 2 5], [1 3 4], [1 3 5], [1 4 5],
	[2 3 4], [2 3 5], [2 4 5], [3 4 5] )

Obviously, the computational effort will increase exponentially, but I only
need to use it for relatively small n.

If anyone has written such code, please send e-mail. Thanks in advance.
Newsgroups: comp.soft-sys.matlab
From: kol@hal.nta.no (Karl Olav Lillevold TFS)
Subject: Re: Matlab4.0 versus Framemaker3.1.1
Organization: Norwegian Telecom Research
Date: Mon, 25 Jan 93 14:48:55 GMT



I wrote my Master's Thesis using MATLAB 4.0 and FrameMaker 3.1.1,
and I also experienced your problem. However, I solved it using
the following technique:
save in ps-format from MATLAB (print [filename] -dps)
convert from ps to epsi using a program called pstoepsi.
This epsi-figure is importable in Frame, and can be
seen on the screen, and the size can be manipulated etc. etc.
I'm afraid I don't know where you can find this pstoepsi
since it was installed on our system by someone
other than me. You can try archie, perhaps.


CYCLE to work  \    Karl Olav Lillevold           \        __o    
 work to eat    \    Norwegian Telecom Research    \     _`\<,_    
  eat to live    \                                  \---(*)/ (*)--    
   live to CYCLE! \___Image Sequence Compression_____\-------------
From: mapmh@sunlab1.bath.ac.uk (Mark Hagger)
Newsgroups: comp.soft-sys.matlab
Subject: On-line help
Date: 27 Jan 93 11:55:06 GMT
Organization: School of Mathematics, University of Bath, UK

Does anyone else think that it would be _very_ useful if the inbuilt
matlab functions had some kind of topic help option, something like
the apropos (or man -k) option in UNIX.  On a general basis I run
matlab without having a manual in front of me (the university only has
3 copies so they are very restricted) so when I have no idea what the
command is but have a good idea what I want it to (and that the
command exists) its very annoying as I have to wander around the dept
to find the manual.

Of course knowing my luck this is probably a version 4.0 option.

Mark
Organisation: European Space Technology Centre (E.S.T.E.C)
Date: Saturday, 23 Jan 1993 19:07:44 CET
From: <PMORTENS@ESTEC.BITNET>
Newsgroups: comp.soft-sys.matlab
Subject:    SOURCE: vector cross product

.gf cross1 m
Maybe this is trivial but here it is: a function returning the cross
product of two vectors.


function c=CROSS(a,b);
%****************************************************************************
%* FORMAT  : c=CROSS(a,b);                                                  *
%* This function returns the crossproduct of a and b. The returned vector   *
%* is a column vector                                                       *
%****************************************************************************

%****************************************************************************
%*         European Space Research and Technology Centre (ESTEC)            *
%*        Earth Observation Preparatory Programme Division (EOPP)           *
%*                         Solid Earth Section (OPS)                        *
%*                          Peter Mortensen                                 *
%*                                                                          *
%*    Programme for optimal signal estimation, ARISTOTELES.                 *
%*    File: CROSS.M   VRS: 1.0                                              *
%*                                                                          *
%* CREATED : PM 24.04.1992                                                  *
%* UPDATED :                                                                *
%*                                                                          *
%* This function returns the crossproduct of its 2 argument vectors         *
%* M-files in use: None                                                     *
%****************************************************************************
c=[ a(2)*b(3)-b(2)*a(3) ; -a(1)*b(3)+b(1)*a(3) ; a(1)*b(2)-b(1)*a(2) ];
From: wang@nyquist.usc.edu (Weizheng Wang)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Combining vectors
Date: 27 Jan 1993 06:47:57 -0800
Organization: University of Southern California, Los Angeles, CA
NNTP-Posting-Host: nyquist.usc.edu

In article <1k5hf2INNlgs@shelley.u.washington.edu> phantom@stein2.u.washington.edu (The Phantom) writes:
>In article <1993Jan26.182616.11550@vax.oxford.ac.uk> reese@vax.oxford.ac.uk writes:
>>
>>
>>I want to take two vectors and combine them, e.g.
>>[ a b c d e]  and [ f g h i j ] 
>>become  [ a f b g c h d i e j ]
>>
>
>say a=[ a b c d e ] and b=[ f g h i j ] -- an easy way to do this would be
>using ...
>
>len=length(a);			%assuming length(a), length(b) are equal
>FOR count=1:len,
>	c((count*2)-1)=a(count);
>	c((count*2)=b(count);
>END
>
>that seems to work, anyway. just work with the commands for picking out 
>certain matrix spots and FOR loops, and you should be able to comprise 
>something that works both ways.
>
>mt
>

Try the following:

% assignment of your vector
x = ['a' 'b' 'c' 'd' 'e'];
y = ['f' 'g' 'h' 'i' 'j'];
% assign an index vector
ind = [1:length(x)];
%assign the vector
z(ind*2-1) = x;
z(ind*2) = y;

%reverse assignment
%assign an index in a reverse way:
ind2 = [length(x) : -1 : 1];
%assign the vector
z2(ind*2-1) = x(ind2);
z2(ind*2) = y(ind2);


Actually, the contents of ind and ind2 can be any number in the index range.
I believe the example shows the most efficient and flexible way to use MATLAB.
From: little@mathworks.com (John Little)
Newsgroups: comp.soft-sys.matlab
Subject: Re: CMEX
Date: 27 Jan 93 00:21:17 GMT
Organization: The MathWorks, Inc.
X-Useragent: Nuntius v1.1

In article <1993Jan25.211337.5466@news.dfrf.nasa.gov> Todd Vernon,
todd@fred.dfrf.nasa.gov writes:
>Our site uses Matlab 3.0 and now is moving to 4.0.  We have
>a few CMEX programs we generated to load large files containing
>time history data sets. 
>
>Due to the way Matlab handles CMEX interaction, ( all passed 
>back data must be in a left hand argument),  this makes it
>very difficult to load data sets with unknown number or
>matrices.
>
>Our data is mostly vector data, so what we do is pass back
>2 left hand args, one that contains all our 1-by-n vectors 
>packed into one matrix, and the other a matrix of characters
>that make up each vector name.  After words, we have a m-file
>that breaks apart each seperate vector putting it in a matlab
>variable by the name in the other matix.  What a PAIN.  
>
>Are we missing something here.   We really need a way to create
>matrices as we load the data and not have our hands tied by
>having to pass them back through left hand args.  
>
>This really hinders our ability to access the data we need to 
>get to, any suggestions.  Changing data format is NOT an option.
>
>Thanks in advance.


The MEX-file facility in MATLAB 4.0 includes a new routine called
mexPutMatrix that allows you to plop a matrix directly back into 
the MATLAB workspace.


John Little
From: ibrahim@mentor.cc.purdue.edu (Naliberal)
Newsgroups: comp.soft-sys.matlab
Subject: Printing from Windows
Date: 27 Jan 93 04:16:40 GMT
Organization: Purdue University Computing Center

I have a problem with printing Matlab graphs from Windows
that is beginning to really bother me...when I print them, a little
dialogue box comes up with the message that the graph
is being sent to the printing spool.  When the graph prints
on my deskjet 500, there is an outline of the printing spool
dialogue box.  Anyone else have this problem??!?!?  How
does one fix it?  Thanks in advance...

nabeel
P********************Palestinian Statehood Now!*****************************
E  Nabeel Ibrahim                |                                         *
A  ibrahim@mentor.cc.purdue.edu  |    Oh, if humans could only             *
C  Electrical Engineering        |    multitask...                         *
E  Purdue University             |                                         *
!**********"Racist, Sexist, Anti-gay, Operation Rescue, Go Away!"***********
Newsgroups: comp.soft-sys.matlab
From: jeff@control.nd.edu (Jeffrey C. Kantor)
Subject: Re: Combining vectors
Reply-To: jeff@control.nd.edu
Organization: University of Notre Dame
Date: Wed, 27 Jan 1993 19:56:04 GMT

In article 1k67atINNb9p@nyquist.usc.edu, wang@nyquist.usc.edu (Weizheng Wang) writes:
>In article <1k5hf2INNlgs@shelley.u.washington.edu> phantom@stein2.u.washington.edu (The Phantom) writes:
>>In article <1993Jan26.182616.11550@vax.oxford.ac.uk> reese@vax.oxford.ac.uk writes:
>>>
>>>
>>>I want to take two vectors and combine them, e.g.
>>>[ a b c d e]  and [ f g h i j ] 
>>>become  [ a f b g c h d i e j ]
>>>
>>

Another Solution

z = [x;y];
z = z(:)';

Jeff

Jeffrey C. Kantor                   Email: Jeffrey.Kantor@nd.edu
Dept. of Chemical Engineering       Voice: 219 631 5797
University of Notre Dame              Fax: 219 631 8366
Notre Dame, IN 46556