Prev: How to change 3 dim into 2dim
Next: Wasteful replication of non-cell data in a struct containing acell array
From: th on 14 May 2010 08:03 it doesnt work cause i dont want a magic matrix.i want my matrix. its an image (black letter A in a white background) having a size of 128X128. I want to put this small letter in a big white background (512X512)
From: th on 14 May 2010 08:06 it doesnt work cause i dont want a magic matrix.i want my matrix. its an image (black letter A in a white background) having a size of 128X128. I want to put this small letter in a big white background (512X512)
From: Sean on 14 May 2010 08:13 "th " <THOMITSU(a)YAHOO.COM> wrote in message <hsje5p$f2c$1(a)fred.mathworks.com>... > it doesnt work cause i dont want a magic matrix.i want my matrix. its an image (black letter A in a white background) having a size of 128X128. > > I want to put this small letter in a big white background (512X512) Well let's see; how hard is it to change your choice of matrices? You could use: >>A = magic(128) >>A = rand(128) >>A = zeros(128) >>A = ones(128) >>A = your_matrix >>A = pascal(128) One of those 6 probably should satisfy your needs. Then do exactly what us or I said. Oh, I forgot, you might also have to change a number or something too. We provided the logic; now you have to make it work for your application.
From: Steven Lord on 14 May 2010 09:18 "th " <THOMITSU(a)YAHOO.COM> wrote in message news:hsje5p$f2c$1(a)fred.mathworks.com... > it doesnt work cause i dont want a magic matrix.i want my matrix. its an > image (black letter A in a white background) having a size of 128X128. > > I want to put this small letter in a big white background (512X512) And us posted _an example_ of the technique you need to use. All you need to do is adapt it slightly to use your image instead of the _sample_ data us used. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
First
|
Prev
|
Pages: 1 2 Prev: How to change 3 dim into 2dim Next: Wasteful replication of non-cell data in a struct containing acell array |