Hi,I am doing some kind of data clustering,I use C# to get necessary data from my database,i.e matrix that represents my data.
Rows of that matrix represent words and columns represent documents,matrix is 10 matrix which means that ij element of matrix is 1 if ith word appears in jth document,and 0 otherwise. Then I use matlab 7.1 to analyze that data,i.e do some clustering.My question is:
after matlab groups my data(which is btw. very very large matrix) I would like to see which document is in which group?how can I do this using C#?I.e how can I accomplish this connection between matlab and C# program?
connection between matlab and C#
Page 1 of 14 Replies  10867 Views  Last Post: 30 July 2008  02:19 PM
Replies To: connection between matlab and C#
#3
Re: connection between matlab and C#
Posted 28 July 2008  06:43 AM
This is where I'm confused:
It sounds to me like you've already got an established connection between your C# program and matlab. How is matlab getting the data that your C# program pulls from the database?
mare, on 22 Jul, 2008  09:02 AM, said:
I use C# to get necessary data from my database ...
Then I use matlab 7.1 to analyze that data ...
My question is: after matlab groups my data ...
... how can I accomplish this connection between matlab and C# program?
Then I use matlab 7.1 to analyze that data ...
My question is: after matlab groups my data ...
... how can I accomplish this connection between matlab and C# program?
It sounds to me like you've already got an established connection between your C# program and matlab. How is matlab getting the data that your C# program pulls from the database?
#4
Re: connection between matlab and C#
Posted 29 July 2008  05:13 AM
KyleG, on 28 Jul, 2008  06:43 AM, said:
This is where I'm confused:
It sounds to me like you've already got an established connection between your C# program and matlab. How is matlab getting the data that your C# program pulls from the database?
mare, on 22 Jul, 2008  09:02 AM, said:
I use C# to get necessary data from my database ...
Then I use matlab 7.1 to analyze that data ...
My question is: after matlab groups my data ...
... how can I accomplish this connection between matlab and C# program?
Then I use matlab 7.1 to analyze that data ...
My question is: after matlab groups my data ...
... how can I accomplish this connection between matlab and C# program?
It sounds to me like you've already got an established connection between your C# program and matlab. How is matlab getting the data that your C# program pulls from the database?
No,no I didn't connect matlab and C#.Sorry now I see it sounds misleading.I wrote my matrix into the matrix.txt,and I loaded it in matlab and have done some testing with it.So there is no linkage of my program with matlab.
#5
Re: connection between matlab and C#
Posted 30 July 2008  02:19 PM
I have never used matlab and actually know very little beyond its name, but I'm going to take a stab in the dark here anyway.
It sounds to me like you want to do one of the two scenarios below:
1.) Using C#, write a matlab plugin that generates this matrix and passes it directly into matlab without using an intermediate "matrix.txt" file.
2.) Generate "matrix.txt" in C#, send that file into matlab, have matlab doing something with that data and export another file (say, "output.txt"), and then use "output.txt" in a C# program.
I think you're leaning closer to the second scenario. Of course, as I know nothing about matlab, it may be that you can't create plugin's for it so the first scenario isn't even possible. I don't know. I'm just hoping to clear up what exactly you're asking so that people who know what they're talking about can help easier.
It sounds to me like you want to do one of the two scenarios below:
1.) Using C#, write a matlab plugin that generates this matrix and passes it directly into matlab without using an intermediate "matrix.txt" file.
2.) Generate "matrix.txt" in C#, send that file into matlab, have matlab doing something with that data and export another file (say, "output.txt"), and then use "output.txt" in a C# program.
I think you're leaning closer to the second scenario. Of course, as I know nothing about matlab, it may be that you can't create plugin's for it so the first scenario isn't even possible. I don't know. I'm just hoping to clear up what exactly you're asking so that people who know what they're talking about can help easier.
Page 1 of 1
