Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Please Help Urgent ??Error encountered during finding the threshold value

Subject: Please Help Urgent ??Error encountered during finding the threshold value

From: Abhik Lodh

Date: 16 Jan, 2008 05:58:01

Message: 1 of 2

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".

Subject: Please Help Urgent ??Error encountered during finding the threshold value

From: Vihang Patil

Date: 16 Jan, 2008 06:23:34

Message: 2 of 2

"Abhik Lodh" <abhik_lodh@sify.com> wrote in message <fmk6d9
$673$1@fred.mathworks.com>...
> 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".

Hello
Remove those dots, you have in
[BW,thresh] = edge(a,'sobel',...);
It should be
[BW,thresh] = edge(a,'sobel');
Vihang

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us