Path: news.mathworks.com!not-for-mail
From: "Abhik Lodh" <abhik_lodh@sify.com>
Newsgroups: comp.soft-sys.matlab
Subject: Please Help Urgent ??Error encountered during finding the threshold value
Date: Wed, 16 Jan 2008 05:58:01 +0000 (UTC)
Organization: Mumbai university
Lines: 17
Message-ID: <fmk6d9$673$1@fred.mathworks.com>
Reply-To: "Abhik Lodh" <abhik_lodh@sify.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1200463081 6371 172.30.248.35 (16 Jan 2008 05:58:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Jan 2008 05:58:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1247456
Xref: news.mathworks.com comp.soft-sys.matlab:445910


How to find the threshold?
following lines of code is used as per the help file but it 
throws error????????????????

% Code%
clc;
clear all;
f= imread('2.JPG');
a= rgb2gray(f);
%BW = edge(a,'sobel');%
[BW,thresh] = edge(a,'sobel',...);

% the error thrown%
??? Error: File: C:\MATLAB6p5\work\em_edge.m Line: 6 
Column: 35
Expected a variable, function, or constant, found "End of 
Input".