I am developing a GUI frontend application in MATLAB. It's becoming quite complex these days, but as a showcase of the problem I'm having, I created a simple GUI containing an axes and a button. I display a surf(peaks) plot in the axes, and the buttonpress adds a colorbar('location','southoutside') to the plot. The axes stretch and overl...
I'm trying to annotate a polar plot with data tips labelled with 'R:...,Theta:...' where theta is actually the Greek symbol, rather than the word spelled out. I'm familiar with string formatting using '\theta' resulting in the symbol, but it doesn't work in this case. Is there a way to apply the LaTeX interpreter to data tips? Here's wha...
I have three arrays, all the same size:
xout % cell array
xin % numeric array of doubles
b % logical array
How can I take the elements of xin that correspond to the indices where b is true, and assign them to the corresponding places in xout?
>> xout = {'foo', 'bar', 'baz', 'quux'};
>> xin = [1, 2, 3, 4];
>> ...
Hello all. I have come upon another class where I need to find an idea for a project, and since my last posting on SO for a project idea was so successful, I've decided to ask here again.
I'm taking a class titled Computer Vision for Human-Computer Interaction, and we need to come up with a few ideas for a project that we will have abou...
In nntool, the sample data is formatted as: [0 1 -1; 2 3 1]
I have ~8000 data points in a text file.
How do I format those points for use here? What does the semicolon signify?
...
hi,
I have generated cppshared lib dll using matlab command mcc. Now I want this dll to make another dll inside microsoft visual c++. Is it possible to make a dll using another?
Please help!!
...
I have a set of isoline points (or contour points) such as this:
Each point on an isoline has its own respective X, Y, and Z coordinate. Since they are isolines, that means that each point will have a unique X-Y pair, but points on the same line will have the same Z coordinate.
Now, is there any algorithm or any software packages (ei...
Hi.
Summary:
I'm trying to do classification of some images depending on the angles between body parts.
I assume that human body consists of 10 parts(as rectangles) and find the center of each part and calculate the angle of each part by reference to torso.
And I have three action categories:Handwave-Walking-Running.
My goal is to fi...
In order to refactor my MATLAB code, I thought I'd pass around functions as arguments (what MATLAB calls anonymous functions), inspired by functional programming.
However, it seems performance is hit quite severely. In the examples below, I compare different approaches. (The code snippet is wrapped in a function in order to be able to u...
I have this code:
in = [5 columns of data-points];
out = [1 column of data-points];
net = newfit(in,out,5);
net = train(net,in,out);
now I want to
access the error variable that is generated (so that I can calculate the mean error etc.)
run this in a loop, so I want to re-initialize weights between loops.
access the variable that s...
Suppose I have the inputs data = [1 2 3 4 5 6 7 8 9 10]
and num = 4. I want to use these to generate the following:
i = [1 2 3 4 5 6; 2 3 4 5 6 7; 3 4 5 6 7 8; 4 5 6 7 8 9]
o = [5 6 7 8 9 10]
which is based on the following logic:
length of data = 10
num = 4
10 - 4 = 6
i = [first 6; second 6;... num times]
o = [last 6]
What is the ...
I am using the publishing functionality of MATLAB to generate a quick report of some analysis I'm running. Since the analysis is quite time-consuming, I've added a progress bar to keep track of how long is remaining. The problem is that I'd prefer this progress bar not to appear in my report.
Is there a way to keep MATLAB from introduci...
Hi,
I just heard from somewhere that for numerical computation, "Matlab does offer some user-friendly APIs. If you call these APIs in your C/C++ code, you can speed up computation dramatically."
But I did not find such information in Matlab documents like http://www.mathworks.com/support/tech-notes/1600/1622.html and http://www.mathwor...
I have two images. In one of the images, my eye is in the center position and in the other image, it is in the left. How do I find out whether my eye is in the left or the right?
I am using MATLAB. Are there any functions for this?
...
Given an n-dimensional matrix of values: what is the most efficient way of retrieving values by arbitrary indices (i.e. coordinates)?
E.g. in a random 5x5 matrix, if I want the values at (1,1) (2,3) and (4,5) what is the most efficient way of returning just the values at these coordinates?
If I provide these coordinates in a separate m...
I have a mex module called p.mexw64 which uses another dll called p.dll
The mex module loads p.dll when it is loaded since it is linking to it's lib file.
Normally, when I want to recompile p.dll I do clear p;. This unloads p.mexw64 and then in turn also unloads p.dll.
Except when it doesn't. In some scenario which I can't really quan...
I took a class on "Intelligent Decision Making" (which was mostly an Problem Optimization class). In the class we learned about AMPL and how to extend the solvers. I haven't heard much about it lately, nor have I seen job listings for it.
My question is: Is AMPL still in use anymore? If so what is it being used for?
Yes, I do underst...
I got this weird error when I was trying to compile matlab to C++ using the following command:
'mcc -W lib:cshared -d ' clibdir ' -T link:lib ' mfile
The error I got was:
fatal error C1083: Cannot open include
file: 'windows.h': No such file or
directory
Now, I was using lcc as my compiler ( instead of the Visual Studio one)...
Is there any subroutine, in MATLAB, that takes in a list of points, and return me a good mesh that I can use to show to my colleagues, such as this?
Actually, all I need is just a simple 2D mesh generator that takes in a series of X, Y coordinates (that defines the boundary of the area), and give me back a list of elements that can me...
I'm trying to cluster some images depending on the angles between body parts.
The features extracted from each image are:
angle1 : torso - torso
angle2 : torso - upper left arm
..
angle10: torso - lower right foot
Therefore the input data is a matrix of size 1057x10, where 1057 stands for the number of images, and 10 stands for angle...