Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to open .p and .m files??
Date: Sat, 17 May 2008 20:51:01 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 54
Message-ID: <g0ngfl$mon$1@canopus.cc.umanitoba.ca>
References: <62f61545-28a0-446d-8283-772e23ec90e9@x19g2000prg.googlegroups.com> <g0nc6q$buq$1@fred.mathworks.com> <fdce03b4-a881-4a07-a42e-6879ce597705@b9g2000prh.googlegroups.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1211057461 23319 192.70.172.160 (17 May 2008 20:51:01 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Sat, 17 May 2008 20:51:01 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:469038


In article <fdce03b4-a881-4a07-a42e-6879ce597705@b9g2000prh.googlegroups.com>,
KK  <Kartikeya.Karnatak@gmail.com> wrote:

>so how can we see the code??

For functions for which source is provided,
>> type FunctionName
or
>> edit FunctionName

For example,

>> edit polar


>is there any other way?
>or no way we can see the code?

>i mean if we want to make any changes how will we do it?

If the source code is not provided, such as for .p files or Matlab
internal function, then to see the source code, all you have to do is
buy a complete Matlab source license. I don't believe that a complete
source license is on their commercial offerings page, but you can speak
to a Mathworks sales representative about it. I believe it to be quite
likely that Mathworks deals with organizations that have very strict
rules about having access to source (in escrow at least) -- Matlab
is too useful of a tool for Mathworks to be likely to refuse to license
use of it for military applications that require the source to be
on file against the possibility of problems of National Interest
(you don't allow a corporation to dictate terms to your military.)

I have never had a reason to inquire with Mathworks about what they
would charge for a source license, but for one company with
an extensive product that I dealt with in the past, it was open knowledge
that the price of that company's source license was one million dollars.
With inflation and whatnot, it wouldn't surprise me if Mathworks'
asking price was several million.


If Mathworks chooses not to offer a source license to you,
you still have at least one alternative: you could simply buy the
company. It is, however, a privately held corporation, I believe,
so you will not be able to do a simple purchase on the stock exchange:
you would have to smooze around and find out who owns the private shares
(my understanding is that there must be at least one voting share, by
law) and then find out how much they want. They may just tell you
to get lost, as private companies are not required to sell for
any reason (short of court orders or expropriation), but I rather
believe that they would be open to takeover with a relatively
token offer: it probably wouldn't cost you more than about 80% of
the assets of Microsoft, I would guess. Just a "mark of respect", really.
-- 
  "I think Walter was a very smart man."          -- Gene Autry