MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.
-1
votes
0answers
15 views
What is the best way to test my NN simulation results in Matlab?
I used the Neural Network Toolbox in Matlab to perform a curve fitting simulation.
What are the best options to check the quality of the outputs. Since I have a large data set its difficult to get a ...
1
vote
1answer
10 views
How should I prepare positive images for HAAR training for hand detection?
I am using this dataset: http://www.robots.ox.ac.uk/~vgg/data/hands/
However, I am only going to use hands which are > 4200 sq pixels in area, which leaves me with just 621 hands. I realised that ...
0
votes
1answer
10 views
How to read a tab delimited values file with Matlab
I have tried the following approach:
array = tdfread('file.txt');
The structure of the file is:
value1\tvalue2\tvalue3...
where each value can be -1 or 1.
Anyway the result obtained is:
array ...
0
votes
1answer
12 views
Merge two (or more) time stamped data and plot showing the gap(s)
what is the best way to merge and plot 2 (or more) time stamped data so that the plot includes the gaps between the known data?
For example, I have a cell with time and heart rate values for Monday, ...
0
votes
2answers
16 views
Getting data from MATLAB Simulink every 0.008s in .txt file
I need to get data from my simulink model, write it to txt file, have another program read it, and this every 0.008s.
Is there any way to do it? All i could get is to get data into workspace
Also ...
0
votes
0answers
14 views
Creating image profiles in some parts of the image
I've been struggling with a problem for a while:) in matlab.
I have an image (A.tif) in which I would like to find maxima (with defined treshold) but more specific coordinates of these maxima. My goal ...
0
votes
1answer
16 views
Using Imwrite command in MATLAB
[fname1 path] = uigetfile('*.*','open image file');%*.*
[path,name,ext,ver] = fileparts(fname1);
handles.fname = strcat(name,ext);
a = imread(handles.fname);
r = imresize(a,[256,256]);
file = 'C:\Main ...
0
votes
1answer
18 views
diagnostic for MATLAB ODE
I am solving a stiff PDE in MATLAB using ode15, and it often freezes depending on the initial conditions. I never actually get an error, it just won't finish even after 10 hours when it should take ...
0
votes
1answer
40 views
MATLAB: Does the If Statement order effect performance
I'm trying to speed up a loop that runs for about 100000 iterations and was wondering if the order of if statements had an effect on the performance. For example will the following code check the if ...
0
votes
2answers
53 views
Dynamic Memory Allocation and Memory Leaks
I am writing a matlab mex function using c code. I am having a little trouble freeing allocated memory. I am having trouble with the following code. If I get rid of all the free() lines, the code ...
1
vote
1answer
21 views
Communicating between Pure Data and MATLAB using OSC
I'm trying to receive a message sent over OSC from Pure Data (or Max/MSP) to MATLAB.
I'm able to send OSC messages from Pure Data to Pure Data
I can send messages from MATLAB to MATLAB
I can even ...
0
votes
3answers
26 views
Matlab: Save matrix of function handles to a text file
For example my data is:
data =
[1000] @(x)x.^2 @sin [0.5]
[2000] @(x)1./x @cos [0.6]
I want to save data to a text file or another. (data is a cell matrix). How can I achieve this?
0
votes
2answers
33 views
Finding least squares-functional of two vectors
Say I have two column vectors of same size: P and Q. What I need to do is find the least squares-functional distance D = ||P - Q||^2. What does this mean and how do I implement it in matlab. Should I ...
1
vote
0answers
24 views
convex optimization - choice of optimizer [closed]
I have a specific problem that fmincon has failed to solve quickly. I'm not very good at python but if cvxopt is as good as they say, then I'll have to rewrite my code in python. Is this worth the ...
3
votes
2answers
31 views
Find specific occurances within a vector in MATLAB, without for-loop?
I have a problem that seems to be simple but maybe I am missing something. Let us say I have: vector = [10:1:19];. I have another vector, want = [11 16 19]; I simply want a way in which a command will ...