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...
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...
What is the matlab function to simulate ARMA model and coda matlab function
(coda:convergence diagnostic and data analysis)
...
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_...
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?
We have already accomplished this with a serial, but now need to do it via usb.
...
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...
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++?...
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...
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...
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 ...
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.
...
I have downloaded the matlab software and now i want to use the neural network toolbox?/How do I access the toolbox??
...
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?
...
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...
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
...
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...
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...
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...