No problems, I have managed to get it to work.
I rewrote the code where it was placed into the matrix and there must have been something there matlab didn't like. All is fine now though.
Thanks,
J
Hi everyone,
I am currently trying to store some image locations, with corresponding vote locations for objects. For some reason Matlab is storing a certain entry with the decimal point incorrectly (one place to the left too far)
For example:
the matrix I have is:
30.0000 323.5900 291.6...
Many thanks for the help guys,
M=dlmread('sample.dat');
sprintf('%04d\n',M(:,1))
allowed me to get my data in the form i needed, but I have found another way around it so it's formatted when I am checking the values.
J
Thanks for the speedy response.
How exactly do I read them in as strings? what is the format command?
I have:
fid = fread(filename);
A = fscanf(fid, format);
where I can't seem to find the correct format...
Thanks,
J
Hi everyone,
I am trying to read a parsed xml file in the form of a .dat file into matlab. I have been using load filename.dat to obtain my matrix in the variable filename, but whenever I go to use the matrix, the leading zeros are missing from the first column.
The dat file has the following...
ok, so I can set the region of intensity that yellow lies between. Is there a function that can do this using RGB values?
This is not for school, it is part of a research project for my Masters. The problem is simply my knowledge of Matlab and the functions built in.
I do have the image processing toolbox but since I am fairly new to Matlab I am unaware of how this can be useful. Could you please provide more details?
It is not part of any homework, it is part of research I am doing and I am struggling to think of a way to do this efficiently since I do not know Matlab well enough.
I am just trying to find functions with this capability or methods that would be able to do this.
Dear Forum Members,
I have been given a set of images with objects bounded by a yellow box. I need to be able to find the yellow boxes within the images in order to find the centre of the objects. Is there a function built in to matlab that can find boundaries of a certain colour whilst giving...