use matlab to handle pajek .net file? - matlab

I have a .net file which is in pajek format. Now I was thinking to use matlab to do the analysis of the data in this file. After searching online, I found a toolbox in matlab with name SBEToolbox. Considering installing this toolbox to the matlab might be a bit time-consuming, since I do not have administrative access to my pc currently. Do you have any better idea to use matlab with pajek .net file? Many thanks for your time and attention.

Related

How compile m-file without installed Matlab?

What is the simplest way to compile m-file without installed matlab?
And can someone say when will users get possibility for compiling programs with training networks (not only using training networks in compiling)?
MATLAB is not a compiled language, it is interpreted at runtime, so you need to have MATLAB installed to run a m-File (script). You can use the MATLAB compiler software to create a standalone application from an m-File or a function.
To run an m-file without having MATLAB, you can use GNU Octave. Octave is an open-source software which has almost the same syntax and functionality as MATLAB. They are not 100% identical though, so you will have to migrate your script. As mentioned in this question, code which runs in MATLAB will almost always run in Octave too, so it should work quite well.
for very basic scripting you can use this online octave(/matlab) compiler I found http://www.tutorialspoint.com/matlab/try_matlab.php There are some limitations of course, but for basic scripts it works well

extracting an output matrix from matlab

I am working on a small iris recognition system using matlab, my matlab code after several steps and algorithms gives me a 9600 bit matrix as an output, and I was wondering how can I take this matrix to process it using a Windows Forms application using C#?
There are some standard formats that you can work with them both in MATLAB and C#.
For example, you can use csvwrite function in MATLAB to save it as a comma-separated value file. The in C# there are standard ways to read a csv file. Here it is discussed how to read a CSV file in C#.
Another option is to save in a .txt file and read it in C#. HDF5 files are another type that are supported with some libraries in both (see here). You can even save your file as a regular .mat file and load it in C# using a specific API (discussed here)

Using a MATLAB code on Scilab

Is it possible to use a MATLAB code on Scilab? Is that what is meant when saying that Scilab is a "clone" from MATLAB?
There is a tool to automatically convert Matlab source to Scilab source, it's called M2SCI. A script parses the Matlab source code and replaces Matlab-specific functions by Scilab ones. See the documentation of the mfile2sci function.
Yes you can use MATLAB code on scilab. See these links for more information:
http://help.scilab.org/docs/5.4.0/fr_FR/section_36184e52ee88ad558380be4e92d3de21.html
http://help.scilab.org/docs/5.4.0/en_US/index.html
I would not bet on it. But if your code is simple enough chances are good.
Problems are:
There is encrypted p-code in Matlab that Scilab will not be able to open.
Matlab usually comes with a number of toolboxes that might not be available to you (i think especially Simulink)
last but not least (i don't know about scilab) there usually are minute differences in how functions are implemented.
There are a number of projects out there trying to replicate/replace MATLAB:
Julia language: which has a relatively similar syntax to MATLAB and offers great performance, but still lacks a lot of toolboxes/libraries, as well as not having a GUI like MATLAB. I think this has the brightest future among all MATLAB alternatives.
Python language and its libraries NumPy and matplotlib: which is the most used alternative. I think at this moment the community is a couple of orders of magnitude even bigger than MATLAB. Python is the de facto standard in machine learning and data science at the moment. But still, the syntax and memory concept is a bit far from what people are used to in the MATLAB ecosystem. There are also no equivalent to SIMULINK, although Spyder and Jupyter projects have come a long way in terms of the development environment.
Octave: is basically a clone of MATLAB to a point they consider any incompatibility as a bug. If you have a long MATLAB code that you don't want to touch, this is the safest bet. But again no alternative for SIMULINK.
SciLab and it's fork ScicoLab are the best alternatives in terms of GUI, having a SIMULINK replica xcos / scicos and a graphical user interface development features. However the community is not as big as Octave and the syntax is not completely compatible. Sadly the Scilab development team has gone through a devastating family crisis leading to the software falling behind.
Honorary mention of Modelica language implementations OpenModelica and jModelica for being a superior alternative to SIMULINK-SimScape. You should know that you can load Modelica scrips also in xcos and scicos. If you want to kno wmore about JModelica you may see this post.
you may check the MATLAB's Alternativeto page to see more Free and Open source alternatives.

View HDF5 inside matlab

Just how good is MATLAB in opening and viewing HDF5 files? I can see there are a couple of h5... commands but I'm wondering if there is a way to "view" the file interactively as you could do with a .mat file or like HDFView tool?
We use Matlab and we use HDF5 files. We also use a lot of Fortran, and one of the reasons we use HDF5 is to store datasets which can be read and written both by Fortran and Matlab. Matlab vs Fortran for HDF5 is a bit like Matlab vs Fortran for most things, the former is easier to use, lets you try out ideas quickly, and gives you much tighter integration between data and visualisation. You may have your own views on Matlab vs your favourite compiled language.
Matlab provides a complete (maybe not entirely complete, but we haven't found any features of the HDF5 Fortran APIs that we want to use that Matlab doesn't provide) interface to HDF5. When you view the document that #GuntherStruyf pointed you at, read to the bottom where you can find information about Matlab's low-level HDF5 access functions. You can do a lot with the high-level access functions alone, but not everything. And if you are already used to the HDF5 API for Fortran/C/C++, taking the same approach in Matlab and ignoring the higher-level functions is easy enough.
But we do use HDFView too, it's an easy way to trawl through an HDF5 file and, within certain limitations, an easy way to quickly edit an HDF5 file. You can, for instance, cut and paste from Excel to HDFView; perhaps more relevant you can cut and paste from Matlab's variable editor. Matlab doesn't quite provide that level of easiness for viewing HDF5 files.
To sum up:
HDFView for viewing and interactive editing
Matlab for programming for prototyping and rapid deployment
Fortran/C/C++ for programming for heavy-lifting.

Distribute matlab functions without source

I have written a set of Matlab functions and I want to distribute it to few people for testing. But I do not want to reveal the source to them. All these people have matalb installed on their systems. So I don't want to make standalone executable from my functions. Ideally I want something like complied library files which the users can put in the matlab path & call the functions from their matlab prompt / matlab functions. Is it even possible ?
Edit: I have matlab compiler toolbox. But the users won't be having access to matlab compiler toolbox on their matlab.
The standard way is using pcode. Look in the docs and remember to keep a copy of the source code elsewhere!