Hi,
is there a way to assign the outerposition property of a figure to a figure with a given handle?
For example, if I wanted to define a figure as say figure 1, I would use:
figure(1)
imagesc(Arrayname) % I.e. any array
I can also change the properties of a figure using the code:
figure('Name', 'Name of figure','NumberTitle','o...
I have several .csv files with similar filenames except a numeric month (i.e. 03_data.csv, 04_data.csv, 05_data.csv, etc.) that I'd like to read into R.
I have two questions:
Is there a function in R similar to
MATLAB's varname and assignin that
will let me create/declare a variable name
within a function or loop that will allow me to...
I have some data generated in MATLAB that I want to process using Perl. I saved the data from MATLAB in a .mat file. Is there any way to read it in Perl?
...
Is there a way to "declare" a variable with a particular user-defined type in MATLAB? zeros() only works for built-in numeric types. The only solution I've come up with involves using repmat() to duplicate a dummy object zero times:
arr = repmat(myClass(), [1 0])
Without declaring variables this way, any code which does "arr(end+1) = ...
Hello,
Is there a easy way how to produce following matrix:
a =
4 5 6 7
3 4 5 6
2 3 4 5
1 2 3 4
which is a projection of vector [1 2 3 4 5 6 7] along diagonal?
thanks
...
Hi, i m new here and i m looking for help, i tried averywhere on the net but i m still confused.
so here is my problem,
My DAQ board KPCI-3103A ist connected to another Board where an Ultrasonic Sensor (Dual-Use:sender/reciever in one) is Brazed. I must send Digital Signals in Loop from my KPCI-3103A to the Sensor-Board to control the S...
I have raw observations of 500 numeric values (ranging from 1 to 25000) in a text file, I wish to make a frequency distribution in MATLAB. I did try the histogram (hist), however I would prefer a frequency distribution curve than blocks and bars.
Any help is appreciated !
...
I have a mex64 dll compiled on my machine. I used Matlab 2009b with VS2008 Pro to compile the dll. The dll works fine on my Matlab installation.
I want a colleague to use the dll so I sent it to him and he gets the following error message when trying to use the dll:
??? Invalid MEX-file 'filename.mexw64': The specified module cou...
%# load a grayscale image
img = imread('coins.png');
%# display the image
figure
imshow(img,[]);
%# false-color
colormap('hot')
The above code is from here:
http://stackoverflow.com/questions/2592755/infrared-image-processing-in-matlab/2592793#2592793
But I don't understand how figure(What's the difference with/without it?) and col...
I want to implement a version of Benford's law (http://en.wikipedia.org/wiki/Benford%27s_law)
that basically asks for the first digit of a number to do analysis on the distribution.
1934---> 1
0.04 ---> 4
-56 ---> 5
How do you do this in MATLAB?
...
hi everyone,
i need to compute Laplacian Matrix-L for an image(nXn) in opencv...computing goes as follows..........
δij − 1/|wk|{[1+1/(ε/|wk|+σ2)][(Ii-µk)*(Ij −µk)]}.... for all(i,j)∈wk,summing over k yields (i,j)th element of L.
where Here δij is the Kronecker delta,µk and σ2k are the mean & variance of inten...
I wonder how to get quotient in matlab? Thanks and regards!
...
Hi,
I just wonder how to add annotation in matlab plot? Here is my code:
plot(x,y);
annotation('textarrow',[x, x+0.05],[y,y+0.05],'String','my point','FontSize',14);
But the arrow points to the wrong place. How can I fix it? And any better idea for annotating a plot?
Thanks and regards!
EDIT:
I just saw from the help document:...
I use the following function in a Matlab program:
...
...
...
[A, B, C, D, E] = function (F, G, H, I, J, K, L, M, N, O, P)
...
...
...
and I get the following error message:
??? Error using ==> function
Too many output arguments.
A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P are the vectors of inputs and outputs of the function....
Using MATLAB,
I have this code:
value = input('>> Enter a value: ');
and basically, I want a "default" value to the right of the colon
(sortof like this)
>> Enter a value: 12
where "12" is editable such that the user could [backspace] [backspace] and change the value to, say, "20" or something.
Is there any (easy) way to do this...
I want to use some Matlab functions via .dlls and use them in C#, please let me know how to do that.
...
Hi
I have quite a few points plotted in a figure. I am now using annotation() function to add annotation in the same way for these points based on their locations. See my previous question.
However they tend to mess up where the points are close to each other. Is there some function available to position the annotations as apart as po...
how to divide a speech spectogram into a certain number of ranges using mel filter banks using matlab???basically i have to divide the spectogram into 25*25 blocks...
...
This is a further question based on this answer:
http://stackoverflow.com/questions/2589851/how-can-i-implement-this-visual-effect-in-matlab/2589957#2589957
The general solution should work for all background colors and length/width ratios.
...
Some MATLAB help needed !
I have an set of 1s and 0s, I need to find how many 1s and how many 0s.
(i.e. x = [ 1 1 0 0 0 0 0 1 0 0 1 1 ....] ) . I was looking at some search and count inbuilt function, however I have not been successful.
...