We install Matlab Runtime on a machine, then we restart a .net windows service that invokes methods from the Matlab Runtime.
The problem is that we receive TypeInitializationException errors until we restart windows.
We think this happens because Environment Variables are not changed on services until restart and Matlab uses the %Path% v...
I've written a very simple GUI in MATLAB that will convert temperatures. It is meant to serve as a tutorial for a class of students. A strange thing has happened though. As with any MVC design pattern, there is a model object, a view object and a controller function. In order to set the output field of the GUI (the converted temperat...
Hi!
Are there some implementations of sparse matrices visualization in C# ?
I know that spy function do such thing in matlab, but didn't find any implementations in C#.
Regards
...
I have a MATLAB function that finds charateristic points in a sample. Unfortunatley it only works about 90% of the time. But when I know at which places in the sample I am supposed to look I can increase this to almost 100%. So I would like to know if there is a function in MATLAB that would allow me to find the range where most of my re...
I have a 256x256 image and I want to divide it into 4 blocks of 128x128 each and address them as A1 to A4. Now I want to call them separately and do some operations on them. I know this can be done using the blkproc function -- but how exactly?
Do I call blkproc like this?
B=blkproc(I,[4 4],?)
What do I put in place of the "?", and h...
I would like to know how I can record a video in MATLAB with my webcam.
...
I want to use YAML to communicate some data across multiple languages. (Think of it as "language-independent serialization".) One of these languages is MATLAB, but I can't seem to find a YAML library for that language. I've checked for "matlab yaml" and "matlab yaml parse" on Google and there don't seem to be any relevant results. A ...
I'm accessing an internal database using Matlab's urlread command, everything was working fine until the service was moved to a secure server (i.e. with an https address rather than an http address). Now urlread no longer successfully retrieves results (It gives an error: "Error downloading URL. Your network connection may be down or you...
I have a file full of ascii data. How would I append a string to the first line of the file? I cannot find that sort of functionality using fopen (it seems to only append at the end and nothing else.)
...
I'm using embedded MATLAB to generate C code from an .m script. However, after the generation I'm left with about 15 files (most of them are source). If I want to write a standalone main in C how do I link to the MATLAB generated code? Is there a way to do this without writing my own Makefile?
So I figured out how to generate stati...
datetime, M01, M02, M03, M04, M05, M06
8/15/2009 0:00, 5.8, 7.8, 7.8, 7.3, 0, 7.9
8/15/2009 0:10, 7.1, 8.1, 8.1, 7.7, 0, 8.1
8/15/2009 0:20, 6.8, 7.4, 7.6, 7.1, 0, 7.3
8/15/2009 0:30, 5.6, 6.8, 7.1, 6.6, 0, 6.8
8/15/2009 0:40, 3.9, 6.2, 6.4, 6.2, 0, 6.4
8/15/2009 0:50, 4.6, 5.5, 6.1, 5.8, 0, 5.6
8/15/2009 1:40, 7, 7, 7.2, 6.9, 0, 6.3
C...
Hello,
I took 2 images with a cross point and now I'm trying to compare these 2 images and find out what is the distance and angle moved. How can I use MATLAB to do this? Thank you very much!
...
I've been using F# for a while now to model algorithms before coding them in C++, and also using it afterwards to check the results of the C++ code, and also against real-world recorded data.
For the modeling side of things, it's very handy, but for the 'data mashup' kind of stuff, pulling in data from CSV and other sources, generating ...
I need some help in converting a 2X2 matrix to a 4X4 matrix in the following manner:
A = [2 6;
8 4]
should become:
B = [2 2 6 6;
2 2 6 6;
8 8 4 4;
8 8 4 4]
How would I do this?
...
I'd like to implement the receiving end of my system in MATLAB - this requires Gigabit Ethernet with sustained speeds of over 200Mb/sec.
Using MATLAB's built-in UDP from the Instrument Control Toolbox does not appear to be sufficient. Are there any good alternatives?
...
I actually have 2 queries:
How do I display the data of a variable in a msgbox? In other words, if I have dist=3765 at the end of my program and I want to display it in a msgbox, how do I do it?
I want the user to select an input file (suppose an image) from a folder in my MATLAB program using an explorer window at runtime. How do I co...
I am running into trouble trying to compare and plot two files of different length. In MATLAB I do not know how to plot two vectors of different length in the same x-axis. As one file has some data missing, I want to create a row and put blank space for that corresponding time stamp. Here are samples of data files:
file 1:
date time T...
I want to run multiple versions of MATLAB (with standalone licenses) on a Windows XP home computer. One is MATLAB R2007b and the other is MATLAB R2009a. I found some docs online (link and link), but nothing related to the latest versions. Has anyone tried this?
...
In order to store a variable dist to a file preferably Excel file, we can use
xlswrite('a.xls', dist)
or
dlmwrite('a.txt', dist, ',')
Problem is suppose the variable dist is in a loop in a program and returns a different value each time the program runs as per the input then each time a.xls is overwritten and I get only the last v...
How do I call 3 MATLAB .m files in a loop and display the results in sequence?
...