matlab

How to find the angle of triangle in MATLAB

I'm trying to find the angle of the the triangle in MATLAB. e.g. in the triangle below, I want to find the angle of ABC (marked as black). if a = 40, b=50, How I can I find the angle (in degree) of ABC in MATLAB ? Thanks ...

MATLAB - read files from directory?

Hi, I wish to read files from a directory and iteratively perform an operation on each file. This operation does not require altering the file. I understand that I should use a for loop for this. Thus far I have tried: FILES = ls('path\to\folder'); for i = 1:size(FILES, 1); STRU = pdbread(FILES{i}); end The error returned here ...

how can detect endpoint in handwritten character using matlab

Possible Duplicate: how to find endpoint in handwritten english character recognition in matlab how can detect endpoint in handwritten character using matlab ...

Cleaning up images in matlab

How would you use Matlab to do the following? I've got fuzzy square images about the same size and then inside the fuzzy square there's smaller fuzzy squares, and I want to clean up the larger squares - not the smaller ones - so that they are no longer blurred. It looks like I'd have to make some type of morphological mask, but I'm not s...

Matlab N-Queen Problem

main.m counter = 1; n = 8; board = zeros(1,n); back(0, board); disp(counter); sol.m function value = sol(board) for ( i = 1:(length(board))) for ( j = (i+1): (length(board)-1)) if (board(i) == board(j)) value = 0; return; end if ((board(i) - board(j)) == (i-j)) value = 0; ...

Handwritten character recognition

Possible Duplicate: how to find endpoint in handwritten english character recognition in matlab I want to know endpoint feature extraction algorithm. I want to use this algorithm in handwritten English character recognition. (for example character C have two endpoints and character M have five endpoints). ...

Plotting 'Hi' in MATLAB

I wished to plot this 'Hi', which may be 'Hello World' graphical equivalent in MATLAB. Haven't been able to do it. Any suggestions are welcome. ...

values from different fields in matalb

Hi does anybody familiar with a way that I could implement a matrix with values from a field (not the real or complex number, but lets say Z mod p). so I could perform all the operation of matlab on the matrix (with the values of the chosen field) Ariel ...

matlab - brightness levels in image

how can i take off brightness levels of images? i mean that i have image, and in parts of the images i have brightness, and i wan't to take it off. tnx, Jim ...

Is there a tool to translate matlab to PHP automatically?

Especially I want to translate this answer in matlab to PHP, is it viable? ...

Matrix "Zigzag" Reordering

I have an NxM matrix in Matlab that I would like to reorder in similar fashion to the way JPEG reorders its subblock pixels: (referenced from here) I would like the algorithm to be generic such that I can pass in a 2D matrix with any dimensions. I am a C++ programmer by trade and am very tempted to write an old school loop to accomplis...

MATLAB image processing HELP!

Hello, I am trying to find the area of some regions on an image. For example, I want find the area of the dark-large region on the upper left side. and I want to find the area of any of the closed geometry from the image. How can I do that in matlab. I looked online and I tried regionprops(), but it didn't identify the different ...

Suppressing a function's command window output in Matlab

A function I'm using has "display()" in it (or other things that display messages on command window), so it outputs a lot of things (x 1200) on command line when I run my code, which makes things hard to track and observe. Is there a way to suppress the output of this specific function? Ending the statement with semicolon obviously does...

Does enlarging images make them easier to analyze programmatically?

Can you enlarge a feature so that rather than take up a certain number of pixels it actually takes up one or two times that many to make it easier to analyze? Would there be a way to generalize that in MATLAB? ...

least squares svm in matlab

Which ls-svm toolbox can use in matlab? Which implementation do you recommend? ...

Problem with bitxor operation

Kindly tell me why the original image is not coming with this code. The resulting image receive is yellowish in color,instead of being similar to the image Img_new Img=imread(‘lena_color.tif’); Img_new=rgb2gray(img); Send=zeroes(size(Img_new); Receive= zeroes(size(Img_new); Mask= rand(size(Img_new); for i=1 :256 for j=1:256 Send(i,j)=xo...

How to unblend two images from a blend image

I have blended/merged 2 images img1 and img2 with this code which is woking fine.What i want to know is how to obtain the original two images img1 and img2.The code for blending is as under img1=imread('C:\MATLAB7\Picture5.jpg'); img2=imread('C:\MATLAB7\Picture6.jpg'); for i=1:size(img1,1) for j=1:size(img1,2) for k=1:size(img1,3)...

How can I read a textfile into matlab and make it a list?

I have a textfile that has the format gene complement(22995..24539) /gene="ppp" /locus_tag="MRA_0020" CDS complement(22995..24539) /gene="ppp" /locus_tag="MRA_0020" /codon_start=1 /transl_table=11 ...

matlab problem with shadow of image

link text how to take off the shadow in matlab? ...

Problem with assigning elements of a class array to individual variables in MATLAB

This is a bit of a duplicate of this question, this question, and this question, however those solutions don't work, so I'm asking mine. I've got an array of locally defined classes and I'd like to assign it to multiple, individual variables. This pattern doesn't work: %a is 2x1 of MyClass temp = mat2cell(a); [x,y] = temp{:}; %throws:...