Dear ;

 

When I write this program in matlab I see this error. please help me.

 

I=imread('2.bmp','bmp');

>> I=I(:,:,1);

>> figure(1)%displaying input

colormap(gray(255));

>> image(I)

title('Original image')

axis off

>> %%Creating difference of-Gaussian OTF

>> ROWS=256;

>> COLS=256;

>> sigma 1 =0.01,

??? Index exceeds matrix dimensions.

 

Error in ==> sigma at 95

  a=varargin{1}; b=varargin{2}; c=varargin{3};
d=varargin{4};-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 8:45 AM
To: Abanjoo, Mohammad
Subject: Re: help


Welcome to posting to the ns-users mailing list!

We automatically send this message to every new person who sends mail
to the list.  You should only receive it once.  My apologies if the
program contacts you twice, perhaps because you have multiple e-mail
addresses or send mail from multiple machines.

If you are an experienced ns-user who simply has not posted since we
started using this responder, our apologies for inconveniencing you
with this message.  This message is intended to help inform users and
cut down on redundant posts, which benefits everyone.

Please look at the attached list of ns Frequently Asked Questions.
If it answers your question, great!  You're done.
If not, please RE-SEND your original message to [EMAIL PROTECTED]
A copy of your original message is included below for reference.

You will NOT have to do re-send your message every time you post, only
the FIRST time you send from a new account.  The goal is to quickly
help new users find the FAQ (hopefully answering their question).

Thanks,
   -the ns development team


----------------------------------------


            The Network Simulator ns-2: Frequently Asked Questions

   (This FAQ is also on the web at
   http://www.isi.edu/nsnam/ns/ns-faq.html.)
       
     * _Where do I get ns?_
       
       From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and
       the download page http://www.isi.edu/nsnam/ns/ns-tests.html.
       
     * _What platforms does ns run on and what kind of hardware do I
       need?_
       
       Please see "where to start" on the building ns web page:
       http://www.isi.edu/nsnam/ns/ns-build.html#start.
       
     * _What should I do if I have trouble downloading/extracting ns?_
       
       This question is answered in detail at
       http://www.isi.edu/nsnam/ns/ns-problems.html#downloading.
       
     * _What should I do if I encounter problems building ns?_
       
       Check:
         1. the README that comes in the distribution (very brief),
         2. the "installation problems, bug fixes and help" web page
            http://www.isi.edu/nsnam/ns/ns-problems.html,
         3. the archives of the ns-users mailing list
            http://www.isi.edu/nsnam/ns/ns-lists.html,
         4. post a bug report (see below)
            http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi.
       
     * _What do I do after I successfully build ns?_
       
          + Put the path to your ns executable into your PATH
environment
          + Put the path to your otcl into your LD_LIBRARY_PATH
            environment
          + Put the path to your tcl library into your TCL_LIBRARY
            environment
       
     * _Where can I find documentation for ns?_
       
       All documentation is linked from the main ns web page
       http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial
       (originally from Marc Greis) and a reference manual (ns notes and
       documentation).
       
     * _Words, words, words... that documentation is nice, but where are
       some sample scripts I can start from?_
       
       Many sample scripts can be found in the ns distribution in
       ~ns-2/tcl/ex and ~ns-2/tcl/test.
       
     * _What protocols does ns support?_
       
       A lot! Almost all variants of TCP, several forms of multicast,
       wired networking, several ad hoc routing protocols and
propagation
       models (but not cellular phones), data diffusion, satellite, and
       other stuff. See the documentation (described above) for details,
       or download ns and look.
       
     * _How do I know that ns correctly implements these protocols?_
       
       Ns has validation tests that cover many protocols, see
       http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately
       users are responsible for verifying that ns is accurate for their
       purposes---since we cannot foresee all the ways ns may be used,
we
       cannot test all cases with all inputs.
       
     * _Are there any contributed/additional protocols not in the main
       distribution?_
       
       Yes, please see the contributed code web page
       http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list
       archives can also be helpful (see below).
       
     * _How should I get started doing something (like implementing a
new
       protocol or trying an experiment)?_
       
       We recommend that you look through the tutorial (see
       documentation, above), then start with an example program that is
       most similar to yours (in the tutorial, or in tcl/ex or tcl/test
       in the distribution), and then start changing things.
       
     * _What should I do to compile ns to reflect my changes if I've
       modified some .cc or .h files?_
       
       go to ns directory and run "make" or "make depend; make"
       
     * _How do I subscribe to the ns-users mailing list? How do I search
       old list archives? I can't take any more---how do I get off this
       list?_
       
       To subscribe or unsubscribe, see
       http://www.isi.edu/nsnam/ns/ns-lists.html. The list archive is at
       http://www.isi.edu/nsnam/ns/ns-lists.html.
       
     * _What if I have a question that's not answered here?_
       
       If you've checked the installation problems and bug fixes web
page
       (http://www.isi.edu/nsnam/ns/ns-problems.html) and there's no
       answer to your question, you may want to file a bug report or
post
       a question to the ns-user's mailing list.
       
       First, you should check the archive of the list at
       http://www.isi.edu/nsnam/ns/ns-lists.html. Your question may
       already be answered there.
       
       If not, you can post a bug report using the web form at
       http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi.
       
       If your question is NOT about ns implementation bugs, you may
wish
       to post to the list. First you should subscribe. Subscription
       instructions are at http://www.isi.edu/nsnam/ns/ns-lists.html.
       
       _Please note that mail sent to the list is publicly distributed
       and archived. _If you have concerns about your message being made
       public (spam harvesting of your address), please consider that
       _before_ posting. We cannot remove messages from reciepient's
       mailboxes or the public archive after they're posted.
       
       When posting bug reports, please _always_ include information
       including at least (the bug report form includes spaces for
       these):
          + what version of ns you're using,
          + what operating system you're running on (not just Linux or
            Solaris, but RedHat version 7.0 or Solaris 2.4---send us the
            output of "uname -a"),
          + what specific behavior you see (if ns doesn't compile,
what's
            the specific error; if TCP does something strange, what
            exactly did it do [send a pointer to a packet trace]),
          + what behavior you expected to see (if ns doesn't compile
this
            is obvious, but if TCP does something strange, why is it
            strange, where is the TCP spec violated?),
          + pointers to your script detailed output files,
          + a statement that "yes, I've read the FAQ, ns-problems page,
            and manual and I couldn't find the answer there" (or a
            statement about why you didn't do that yet :-)
       
       A reminder about mailing list etiquette:
          + Please check the web pages and list archives before posting
            your question.
          + Please keep the body of your post to simple ASCII, not HTML.
          + Please do _not_ send large attachments (if what you have is
            bigger than a few kilobytes, put it on a web page and send a
            URL)
          + Before posting a question like "did people see my post" or
            "the list seems down", please check the archives (you can
            answer this question more accurately by checking yourself
            rather than asking).
          + Please don't post subscribe/unsubscribe requests directly to
            the list, use the lists' information page. (see the web page
            mentioned above for details).
     _________________________________________________________________


----------------------------------------

>From [EMAIL PROTECTED] Tue Aug  5 22:15:26 2008
Received: from vapor.isi.edu (vapor.isi.edu [128.9.64.64])
        by gamma.isi.edu (8.13.8/8.13.8) with ESMTP id m765ElxQ018922
        (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256
verify=NOT)
        for <[EMAIL PROTECTED]>; Tue, 5 Aug 2008 22:14:50
-0700 (PDT)
Received: from mail2.spgc45.ir (82.99.251.57.parsonline.net
[82.99.251.57] (may be forged))
        by vapor.isi.edu (8.13.8/8.13.8) with ESMTP id m765EJIb000768
        for <ns-users@isi.edu>; Tue, 5 Aug 2008 22:14:24 -0700 (PDT)
Received: from SP45EX01.sp45.com ([192.168.100.64]) by mail2.spgc45.ir
with Microsoft SMTPSVC(6.0.3790.0);
         Wed, 6 Aug 2008 09:48:17 +0330
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----_=_NextPart_001_01C8F78C.3760E140"
Subject: help
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Wed, 6 Aug 2008 09:48:17 +0330
Message-ID: <[EMAIL PROTECTED]>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: help
Thread-Index: Acj3i0th7Hq/pD5SQpGzLPgKZ/cpow==
From: "Abanjoo, Mohammad" <[EMAIL PROTECTED]>
To: <ns-users@ISI.EDU>
X-OriginalArrivalTime: 06 Aug 2008 06:18:17.0828 (UTC)
FILETIME=[3779F240:01C8F78C]
X-ISI-4-43-8-MailScanner: Found to be clean, Found to be clean
X-MailScanner-From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

------_=_NextPart_001_01C8F78C.3760E140
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Dear ;

=20

When I write this program in matlab I see this error. please help me.

=20

I=3Dimread('2.bmp','bmp');

>> I=3DI(:,:,1);

>> figure(1)%displaying input

colormap(gray(255));

>> image(I)

title('Original image')

axis off

>> %%Creating difference of-Gaussian OTF

>> ROWS=3D256;

>> COLS=3D256;

>> sigma 1 =3D0.01,

??? Index exceeds matrix dimensions.

=20

Error in =3D=3D> sigma at 95

  a=3Dvarargin{1}; b=3Dvarargin{2}; c=3Dvarargin{3}; d=3Dvarargin{4};


------_=_NextPart_001_01C8F78C.3760E140
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Dear ;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I write this program in matlab I see this error.
=
please
help me.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I=3Dimread('2.bmp','bmp');<o:p></o:p></span></font></
p=
>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&gt;&gt; I=3DI(:,:,1);<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&gt;&gt; figure(1)%displaying =
input<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>colormap(gray(255));<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&gt;&gt; image(I)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>title('Original image')<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>axis off<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&gt;&gt; %%Creating difference of-Gaussian =
OTF<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&gt;&gt; ROWS=3D256;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&gt;&gt; COLS=3D256;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&gt;&gt; sigma 1 =
=3D0.01,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>??? Index exceeds matrix =
dimensions.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Error in =3D=3D&gt; sigma at =
95<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp; a=3Dvarargin{1}; b=3Dvarargin{2}; =
c=3Dvarargin{3}; d=3Dvarargin{4};<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C8F78C.3760E140--


Reply via email to