matlab

multidimensional indexing for image retrieval system

Hi please, any one help me to solve my problem: I am working now in trademark image retrieval system , now I was prepared my database space (i.e I compute more than one color features like color histogram , Mean Color, moment set ...), and I was used the distance measures to retrieve the images which are similar to the query image an...

Calculating displacement moved in Matlab

Hello, I need to compare 2 or more images to calculate how much a point shifted in the x and y direction. May I know how do I go about doing this in Matlab? Thanks! ...

Houghlines in Matlab

Hello, After detecting the lines in an image using Houghlines, how can I use it to calculate the change in angle(rotation) of the lines of a reference image? Thanks. ...

"Publish" to pdf

Using Matlab, I would like to create a pdf document summarizing the results of several experiments. Ideally, I'd have one page per experiment with 2 multi-panel figures and a bit of text. I thought that publish.m would be the way to go, however, publishing to pdf does not support inserting page breaks, and I can neither control the fig...

Best automatic test framework for octave

Which is the best framework for automatic testing in octave? Why? ...

how to see the code fo a matlab mex file

I have a mex file but not the C code it was compiled from. Is there any way I can see the code from the mex file? ...

Creating matrix of maximum values indices in MATLAB

Using MATLAB, I have an array of values of size 8 rows x N columns. I need to create a matrix of the same size, that counts maximum values in each column and puts 1 in the cell that contains maximum value, and 0 elsewhere. A little example. Lets assume we have an array of values D: D = 0.0088358 0.0040346 0.40276 0.00...

MATLAB: convert vector to cell array

I have a column vector I want to convert to a cell array such as: A = rand(10,1); B = cell(10,1); for i=1:10 B{i} = A(i); end B = [0.6221] [0.3510] [0.5132] [0.4018] [0.0760] [0.2399] [0.1233] [0.1839] [0.2400] [0.4173] How can I do this without an explicit for loop? I tried: B{:} = A(:)...

How to convert m-files to dlls?

Hello, i Heard that you can convert a matlab m-file to a .net assembly, does any one know how? ...

Matlab: how to create a cell-array in Matlab from this type of data

Suppose i have 3 patients with their profiles but the profiles do not have the same length. My question is how to create a cell-array from this data (see below) where each entry of my cell-array will correspond to one patient-profile. Think's patient profile 1 2 1 3 1 -2 1 1 1 3 1 2 2 -1 2 -3 2 0 2 -2 3 2 3 2 3 1 3 3 3 2...

Calling MATLAB from C

I'm writing a Java application that needs to be able to run MATLAB commands. To do so, I'm using a C program that the Java application can call upon to interface with MATLAB. However, even after researching the MATLAB engine, I can't seem to figure out how to compile the C program. This documentation seems to be compiling the C program f...

R-tree implementation in matlab

Hi please, any one tell me how we can implement the R-tree structure in matlab to speed the image retrieval system , I would like to inform you that my database space a feature vector of Color Histogram (Multidimensional ) and also I I have a distance vector for similarity measure... thanks ...

Simple Interaction with an Active MATLAB Session from Outside MATLAB

I'm trying to give a Java application the ability to change the working directory within an active session of MATLAB. Basically, the user will press a button to launch MATLAB. Then, they will be able to press other buttons that change the working directory of the active MATLAB. I've tried a few different approaches, but with no luck. I'v...

Call stack in compiled matlab

In matlab one can use dbstack to retrieve the call stack at the current time, however dbstack is not available in standalone compiled versions of matlab programs, is there an alternative to get the call stack, or at least the function calling the current function? I want to write a facility function that needs to know by who it was calle...

Python List indexed by tuples

Hi, I'm a Matlab user needing to use Python for some things, I would really appreciate it if someone can help me out with Python syntax: (1) Is it true that lists can be indexed by tuples in Python? If so, how do I do this? For example, I would like to use that to represent a matrix of data. (2) Assuming I can use a list indexed by t...

what is @ operator in Matlab

I've only used matlab 6.5 before. I got some programs that is using '@'. Can someone tell me what is it. BTW, does matlab 6.5 support this operator. Thanks. ...

Undefined variable "modem" or class "modem.pskmod" when calling from java

Hi all, I have written a code in matlab which modulate and demodulate some signals. I deploy them using deploytool and the .jar works in one application without GUI but gives me the Undefined variable "modem" or class "modem.pskmod". in an application with GUI. Basically, what I want to know what will cause this error to occur as I hav...

What is the equivalents of matlab's pcolor in R?

I have a 16x16 matrix of grayscale values representing handwriting digits. Is there a plot in R that I can use to visualize it? Matlab has pcolor, I am looking for something along those lines. pcolor ...

Why does Gnu Octave have negative zeroes?

Hello, This is an odd one I'm puzzled about. I recently noticed at the Gnu Octave prompt, it's possible to enter in negative zeroes, like so: octave:2> abomination = -0 And it remembers it, too: octave:3> abomination abomination = -0 In the interest of sanity, negative zero does equal regular zero. But I also noticed that the si...

Sine wave frequency fitting

This question is based on a previous similar question. I have the following equation and an adjusted (some random data): 0.44*sin(N* 2*PI/30) I am trying to use the FFT to get the frequency from the data generated. However the frequency ends up being close but not equal to the frequency (which makes the wave a bit larger than intended)...