ans me if any one knows.
matlab imlpementation of David Lowe's paper on this link
http://www.cs.ubc.ca/~lowe/keypoints/
the function is like this.
[image, descriptors, locs] = sift(image1);
i just want to know about parameter "locs".is it returns the location of descritor as [x y scale orientation] ?????
if it gives location than ...
I'm trying to implement a modified version of datetick2 from the MATLAB FEX. When plots are zoomed in on a small date range, the day/month/year, etc. isn't shown, depending on the range of times in the plot. I'd like to put a 'dd-mmm-yyyy' formatted starting date as an annotation in the bottom left corner of the figure. No problem, that'...
I am trying to run the .m Matlab code of a graphics program used in our lab in Octave. Octave tells me there is no definition of the function "uicontrol", which is used in the code.
After some searching, I read that the package JHandles has an implementation of the "uicontrol" GUI function. However, I can't find jhandles anywhere. There...
Hey guys,
My question is to shorten repeating the process.
Data1=dlmread('BadgCk-20001103-RZhS-1hAccumx10-TextData0-1.txt','\t',[31 1 286 255]);
Data2=dlmread('BadgCk-20001103-RZhS-1hAccumx10-TextData0-1.txt','\t',[299 1 554 255]);
Data3=dlmread('BadgCk-20001103-RZhS-1hAccumx10-TextData0-1.txt','\t',[567 1 822...
How do you compare a column of a matrix with each previous column? Is there a way to do it without a couple for loops?
...
I have a matrix lets say:
a =
401.4800 344.0900 305.0300 462.2100 310.0600 397.3400 502.5900
547.7100 429.9600 540.3400 737.3600 491.4700 474.7400 735.8700
I want to get the first and last columns only so that:
b =
401.4800 502.5900
547.7100 735.8700
...
Hey there, I've been having difficulty writing the matlab equivalent of the conv(x,y) function. I cant figure out why this gives the incorrect output. For the arrays
x1 = [1 2 1] and x2 = [3 1 1].
Here's what I have
x1 = [1 2 1];
x2 = [3 1 1];
x1len = leng(x1);
x2len = leng(x2);
len = x1len + x2len - 1;
x1 = zeros(1,len);
x2 = zeros(...
Can the functions A, B, and C be different colors?
Z = A + B + C;
imagesc(Z)
colormap(gray)
...
MATLAB has several selection-sensitive capabilities. For example, if you select some text and press F9, it evaluates your selection. (Unless you've remapped your keyboard settings.)
I'd like to be able to replicate this functionality with for a shortcut. So, for example, I want to click a shortcut that displays the current selection....
I have two points lets say:
P(x,y) [point lies at the top of image]
P'(x',y') [point lies at bottom of image]
Now i want to draw a line betwen these two points....and the line should appear on image means should be visible.
how to do this????
...
In our shoestring operation we need to prototype algorithms in some higher-level language before committing to a C implementation on embedded hardware.
So far we have been using MATLAB to do that, but the licensing costs are beginning to hurt. We're considering porting our MATLAB code to Octave.
Is there any particular reason not to do...
In Matlab, there is a very nice feature that I like. Suppose I typed the command very-long-command and then a few several commands afterwards. Then later if I need the long command again, I just type very and press the up arrow key, my long command appears. It finds the last command that starts with very. I couldn't do the same in un...
I would like to read a (fairly big) log file into a matlab string cell in one step. I have used the usual:
s={};
fid = fopen('test.txt');
tline = fgetl(fid);
while ischar(tline)
s=[s;tline];
tline = fgetl(fid);
end
but this is just slow. I have found that
fid = fopen('test.txt');
x=fread(fid,'*char');
is way faster, but i ge...
Assume you have an NxM matrix A of full rank, where M>N. If we denote the columns by C_i (with dimensions Nx1), then we can write the matrix as
A = [C_1, C_2, ..., C_M]
How can you obtain the first linearly independent columns of the original matrix A, so that you can construct a new NxN matrix B that is an invertible matrix with a n...
how complicated is it to develop a web service which works with matlab's functionality? As my project has a limited time frame, i need to know if there will be any blocking issues.
or is it better to work with openCV?
...
please, any one help me to trunct the integer number from real number without any round to nearest integers in matlab ,e.g: if i have 255/64=3.98 I need just 3 not 4. I used fix in my program but not work. my cod is:
S=imread('image0286.jpg')/64;
disp(fix(S);
this give me the output after rounds the elements of S to the nearest...
this code is work with 2x2 QPSK but not working with 3x3 QPSK of Maximum likelihood and dont know how to fix it
this is the code of 3x3 for Likelihood
function [Received_Symbols] = ML_Decode_3_3(Y,H,Symbols)
N=3;
nSymbols = length(Symbols);
Symbol_Vectors = [ kron( ones(1,nSymbols) , Symbols ) ; kron( Symbols , ones(1,nSymbols) ) ]...
I have an mXn matrix of integers. I want to write the matrix to a text file. I also want to read the file later and assign the values to another mXn matrix. How?
EDIT: I want it to be as easy as possible to later load the content of the file to a variable in matlab (a matrix). I also might use the file in a C program where I load the nu...
I have a 2D matrix myMatrix of integers which I want to save its content to a text file. I did the following:
save myFile.txt myMatrix -ASCII
I get this message:
Warning: Attempt to write an unsupported data type to an ASCII file.
Variable 'myMatrix' not written to file.
and nothing is written.
What to do?
...
I have a 3D matrix im which represents an RGB image. I can do
imshow(im)
to display the image.
I want to display only one of the RGB channels at a time: I want to display the red channel and I want it to appear red.
I've tried
imshow(im(:,:,1))
but it displays the grayscale image (which is not what I want).
How do I display the...