DSPRelated.com
Forums

How to take elements in matrix by user define.....

Started by avadhut October 5, 2009
Hello friends,
Right now, I am working on spatial filtering in Image processing..for that I want different kind of masks having different elements...mask size should be 3x3..
I know we can take elements in matrix A by using
A=[1 2 3; 4 5 6; 7 8 9]
but I want to take these elements by user define...
like our scanf function in c langauge...so please tell me how to take such elements...which functions use???
waiting for your valuable reply..thanks in advance..

sincerely,
Avadhut
try the 'input' command

eg: A(1,1)=input('Enter value for A(1,1) = ')
hthShail..
To: m...
From: a...@yahoo.co.in
Date: Sun, 4 Oct 2009 00:53:19 +0000
Subject: [matlab] How to take elements in matrix by user define.....

Hello friends,

Right now, I am working on spatial filtering in Image processing..for that I want different kind of masks having different elements...mask size should be 3x3..

I know we can take elements in matrix A by using

A=[1 2 3; 4 5 6; 7 8 9]

but I want to take these elements by user define...

like our scanf function in c langauge...so please tell me how to take such elements...which functions use???

waiting for your valuable reply..thanks in advance..

sincerely,

Avadhut