🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189250

matlab-mode anyone ?

#189250
From: Andrew Telford
Date: Thu, 21 Mar 1991 02:55
32 lines
1498 bytes
In our organisation we use one of the MATLAB variety of programs.  I
would be interested to know if anyone has written a mode for editing
the .m files (m-files). Their syntax is quite simple - maybe another
language mode needs to be hacked to get it to work. The most useful
feature would be handling indents.

Typical code looks like

function y = silly(x)
% Comments can go on a line by themselves

[m,n] = size(x); % or after a command
if m == 1
	m = n; % the semicolon is not obligatory if there
	       % is only one command in the line. 
end
for i=1:n,
	y = prod(x) / m;
end

Any ideas?

Andrew Telford
--
     /\/\       Process Control Group 
    / / /\      BHP Research - Melbourne Laboratories
   / / /  \     245 Wellington Rd, Mulgrave, 3170
  / / / /\ \    AUSTRALIA
  \ \/ / / /
   \  / / /              Phone   :  +61-3-560-7066
    \/\/\/      AARnet/Internet  :  ajt@bhpmrl.oz.au
Technical Details
Message-ID: <AJT.91Mar21125536@bilbo.bhpmrl.oz.au>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!munnari.oz.au!bruce!merlin!merlin!ajt

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,d1d7c9acd84cda9e,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-03-21 14:07:36 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!munnari.oz.au!bruce!merlin!merlin!ajt
From: ajt@bilbo.bhpmrl.oz.au (Andrew Telford)
Newsgroups: gnu.emacs.help
Subject: matlab-mode anyone ?
Message-ID: <AJT.91Mar21125536@bilbo.bhpmrl.oz.au>
Date: 21 Mar 91 02:55:36 GMT
Sender: usenet@bhpmrl.oz.au (USEnet nntp account)
Distribution: gnu
Organization: BHP Research - Melbourne Laboratories
Lines: 32