matlab

Working with a figure file in Matlab

Possible Duplicate: Basic Matlab question I've got a .fig file showing the intensities of 2d data. How do I obtain the values when I load it in Matlab? Is it even possible? When I try playing with the children properties I am able to obtain only the size of my x and y vectors, not the values themselves which I don't know how t...

image processing project.......................

i have got a project to differentiate between fake currency and real currency using image processing but i am having no notion about my project neither i am getting any type of support from my mentor.and i am really frusted about my project.if any one know any thing then let me know... ...

How to calculate the area of the green box unit in this image with matlab?

Possible Duplicate: How do I calculate the area with matlab (unit : m*h)? Don't take the blue,red lines into account, what's the simplest solution to calculate the area of the green box unit(width and height in pixels) with MATLAB? ...

roundig up to a certain floating point- matlab

hi. im new in MATLAB. i think its a simple question. i want: a=1.154648126486416 to become a=1.154 and not a=1.54000000000 how do i do that without useing format('bank'). thanks. ...

Matlab question on multidimensional files

I've got a multidimensional .mat file with a bunch of m x n arrays where each one is called something different, for example f1, f2, etc. I want to open the .mat file up and analyze each file automatically. How do I do that? ...

Objective-C 2D Interpolation

Has anyone come across an Objective-C equivalent to the MATLAB function interp2()? ...a 2D interpolation. Cheers, Brett ...

what is problem in the following matlab codes

img=imread('img27.jpg'); %function rectangle=rect_test(img) % edge detection [gx,gy]=gradient(img); gx=abs(gx); gy=abs(gy); g=gx+gy; g=abs(g); % make it 300x300 img=zeros(300); s=size(g); img(1:s(1),1:s(2))=g; figure; imagesc((img)); colormap(gray); title('Edge detection') % take the dct of the image IM=abs(dct2(img)); ...

What do you think is the best language for Bioinformatics?

I have done a couple research jobs in Bio-informatics and I have used Matlab for them. Matlab had a lot of powerful tools and was easy to use. I did thinks with genome sequencing and predicting metabolic pathways. I am wondering what other people think is best? or there might not be one specific language but a few that lend themselves be...

image processing with matlab

It's from this thread but I'm also interested in this. How to I filter out pixels not in green channel? And how to I select a point which is inside a closed box with MATLAB? ...

Matlab toolboxes

Is there an h dome transformation built into Matlab in one of the toolboxes? ...

how can reduce the resolution of scan image

how can reduce the resolution of scan image ...

how can reduce the resolution of scan image

Possible Duplicate: how can reduce the resolution of scan image List item how can reduce the resolution of scan image ...

Dynamically add a field to an object in matlab

Say I have a MATLAB object defined in a class file classdef foo properties bar end end And I create a foo object myfoo = foo(); Now I want to add another field to foo dynamically. What I want is myfoo.newfield = 42; but this will throw an error. I know there is a way to dynamically add a field/property to a MAT...

Changing facealpha property causes figure to self-destruct

Hi, I'm running Matlab R2009b on Snow Leopard, and I am trying to create a transparent polygon. The following line works fine: figure,fill([1 0 0 1],[-1e-9 -1e-9 1e-9 1e-9],'r') But when I set the transparency, alpha(.5); the figure collapses in on itself. That is, any title, xlabel, and ylabel I have in th...

Function that executes on GUI closing in matlab

I am creating a GUI in matlab using guide. It's non-blocking (not calling uiwait). When the gui window is closed, I would like to execute some clean up code. Is there an gui_ClosingFcn callback I should define in analogy to the gui_OpeningFcn template that guide creates for me? ...

Running matlab in the background

Hi, I am running matlab on 48 virtual machines and would like to automate it. I ssh into the machines then use matlab -r matlab_command > outfile.txt & to get the process to run in the background and run fine when I logout. The only problem is that when i jobs my process is stopped and won't start until I fg ^z bg. Is there a matlab f...

How do I debug Matlab code called from Microsoft Excel?

How do I debug Matlab code called from Microsoft Excel? Is there a way to print messages to the Matlab runtime console that always pops up when I call the .m file from Excel? Extra for experts I'm calling Matlab code from Excel using Spreadsheet Link EX 3.1.1, a plugin for Excel. ...

convert pixel to cm

If I have distance in pixel using this formula: sqrt((x1-x2).^2+.(y1-y2)^2)) How can I converted it to CM? ...

Background subtracting in MATLAB

I'm looking to do background subtracting on an image. I'm new to MATLAB and new to image processing/analysis, so sorry if any of this sounds stupid. 1) Other than imsubtract() are there other ways to do background subtracting (besides comparing one image to another)? 2) In the Math Works explanation for imsubtract() why do they make thei...

Specifying a callback in Matlab after any runtime error

Is there a way to specify code to be run whenever an error occurs in Matlab? Googling I came across RunTimeErrorFcn and daqcallback, but I believe these are specific to the Data Acquisition Toolbox. I want something for when I just trip over a bug, like an access to an unassigned variable. (I use a library called PsychToolbox that tak...