matlab

Ellipse around the data in MATLAB

I would like to reproduce the following figure in MATLAB: There are two classes of points with X and Y coordinates. I'd like to surround each class with an ellipse with one parameter of standard deviation, which determine how far the ellipse will go along the axis. The figure was created with another software and I don't exactly unde...

How can I numerically solve equations containing Bessel functions in MATLAB?

I have confronted an equation containing Bessel functions of the first type on one side and modified Bessel functions of the second type on the other. I want to know its exact solutions (values of u). The equation is as follows: u*besselj(s-1,u)/besselj(s,u)=-w*besselK(s-1,w)/besselk(s,w) where s is an arbitrary integer number, for ex...

simulate ARMA model with specific order and parameters value

What is the matlab function to simulate ARMA model and coda matlab function (coda:convergence diagnostic and data analysis) ...

comparing Matlab vs CUDA correlation and reduction on a 2D array

I am trying to compare cross-correlation using FFT vs using windowing method. My Matlab code is: isize = 20; n = 7; for i = 1:n %%7x7 xcorr for j = 1:n xcout(i,j) = sum(sum(ffcorr1 .* ref(i:i+isize-1,j:j+isize-1))); %%ref is 676 element array and ffcorr1 is a 400 element array end end similar CUDA kernel: __global__ void xc_...

matlab error "Out of memory"

hello. i want to calculate 2 covariance matrix with size (10304,1034) and matlab create the first one but when it run the second command error occurs >> j=ones(10000,10000); >> jj=ones(10000,10000); ??? Out of memory. Type HELP MEMORY for your options. my laptop ram is 2GB but it still have 1 GB free i use win seven and matlab 2009b 3...

How do you do hardware handshaking with a usb to matlab?

How do you do hardware handshaking with a usb to matlab? We have already accomplished this with a serial, but now need to do it via usb. ...

Strange behavior in Matlab when exporting figure to eps, pdf

When I make a figure in Matlab, with a legend and a rectangle that touches the y axis (strange, I know) upon exporting the figure to eps (or pdf) I've noticed that the rectangle obtains the line-style of the last line drawn (rather than what the rectangle was drawn with) This behaviour also occurs for rectangles drawn after the one tha...

Is it possible to get a reference to a matrix in Matlab?

A have a struct with four very large matrices that corresponds to grayscale images. Depending on the input of my function, I want to store one of those four matrices in a variable. However, since those matrices are very large, I don't want to create a copy of them. Is there something similar in Matlab to the concept of reference in C++?...

Is there a more elegant replacement for this MATLAB loop?

I want to get better at vectorizing my loops in MATLAB. At the moment, I'm trying to count the occurrences of values in a list of ints. My code is similar to this: list = [1 2 2 3 1 3 2 2 2 1 5]; occurrence_list = zeros(1,max(list)); for x=list occurrence_list(x) = occurrence_list(x) + 1; end Is there a simple vectorized replacem...

neural network using matlab

I have a training set that has input and outupts in this way: Input: 0.832 64.643 0.818 78.843 1.776 45.049 0.597 88.302 1.412 63.458 1.468 49.535 1.985 33.387 2.073 30.279 1.431 55.231 1.116 68.521 1.617 44.362 2.159 66.512 Output: 0 0 1 0 0 1 0 1 0 0 0 1 0 0 1 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 0 0 1 0 0 1 0 I need...

Does Matlab MCR has MultiCore Support?

My .Net application is making use of Matlab Component Runtime (MCR) for some heavy number crunching libraries. One thing that I wonder is that, can the MCR take advantage of the multicore feature of modern processors? This question is important for me, because if the MCR has already multicore support, I don't have to use PLINQ or other ...

Multilabel AdaBoost for MATLAB

Hi, I am currently looking for a multilabel AdaBoost implementation for MATLAB or a technique for efficiently using a two-label implementation for the multilabel case. Any help in that matter would be appreciated. ...

toolbox in matlab

I have downloaded the matlab software and now i want to use the neural network toolbox?/How do I access the toolbox?? ...

matlab programming

Possible Duplicate: perceptron problem I have two files. The "input.data and output.data" . I want to use these files in matlab. Do i need to import these files or directly hardcode their values in the code. ...

how we could add upper border to an image?

how we could add upper border to an image? ...

how to overlap image with the graph

i want to making a software that reads the satellite data from text file and plot graph for different parameters f the oceans. the idea is aroused from Oceonographic Data View(ODV). Well now my problem is how to plot a graph on an image of the Indian ocean. where the image must be overlapped with the graph and on zooming the area of the...

MATLAB function input argument

I am facing problem in passing a vector to a matlab function defined in m file.someone told me that only single value variables can be passed as arguments to a function, not vector/array/matrix? Is it true ? If true then matlab is of no use? please help me... thanking you ...

programming in matlab

float randomFloat() { return (float)rand() / (float)RAND_MAX; } int calculateOutput(float weights[], float x, float y) { float sum = x * weights[0] + y * weights[1] + weights[2]; return (sum >= 0) ? 1 : -1; } The above code is in C#. I need to convert this code into matlab code.I dont think...

transforming a matrix into a vector along its diagonals

hi guys, im not not a programmer, i just need to solve something numerically in matlab. i need a function to make the following transformation for any square matrix: from row 1: 1 2 3 row 2: 4 5 6 row 3: 7 8 9 to 1 4 2 7 5 3 8 6 9 ie write the matrix in a vector along its diagonals from left to top right. any ideas please? i r...

run a matlab program from python

Possible Duplicate: call to matlab function in a python prorgam hi I am trying to run a function I wrote in matlab from a python script. lets say that the maltab program is function [ret1,ret2] = TestFunction (input1,input2) ret1=input1-input2 ret2=input1+input2 end and I want to run it from a python program: a=5 b=6 here I...