matlab-deployment

How can I run MATLAB code for isolated spoken words recognition from PHP?

爷,独闯天下 提交于 2019-12-28 03:38:04
问题 As the title indicates, I have MATLAB code for isolated spoken words recognition , and I want to be able to integrate this project with another one made with PHP for some purpose. I have not used to deal with such problem before. In other words, it's the first time for me when I need to integrate PHP and MATLAB, so I really don't know where to start and how. I have read a couple of articles, but I couldn't make it valid. I have PHP 5.4.9, MATLAB R2012A and Windows 7. The MATLAB project files

duplicate matlab command window to gui

☆樱花仙子☆ 提交于 2019-12-25 09:17:49
问题 I am asking this question in reference to this post as I wasn't able to comment to the original post. I used the code given in that post from @Hoki and mixed in my gui it is working fine. But sometimes i am getting following error Error using test_gui>scroll_to_bottom (line 176) Java exception occurred: java.lang.IllegalArgumentException: bad position: 13319 at javax.swing.text.JTextComponent.setCaretPosition(Unknown Source) Error in test_gui>commandWindowMirror (line 170) scroll_to_bottom(h

Change the default JVM version in matlab

a 夏天 提交于 2019-12-25 06:12:54
问题 i am trying to change the default JVM from matlab but it didn't work. >> !java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) >> !/usr/libexec/java_home -V Matching Java Virtual Machines (3): 1.8.0_25, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home 1.6.0_65-b14-468, x86_64: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 1.6.0_65-b14

“Invalid Callee” while using MLapp in C#

怎甘沉沦 提交于 2019-12-25 02:25:14
问题 I'm having a strange issue while using the MLApp.GetWorkspaceData function. I noticed that this functions works properly when I do the following: matlab = new MLApp.MLAppClass(); object myObject; matlab.GetWorkspaceData("myVariable", "base", out myObject); But if I then try to use the same object as an output I get an "Invalid Callee" exception. In addition this also gives the same error: matlab = new MLApp.MLAppClass(); object myObject = new object(); matlab.GetWorkspaceData("myVariable",

Compiled Matlab function works only once

眉间皱痕 提交于 2019-12-24 03:11:02
问题 I have a Matlab function compiled into C library. I am using this library from C# application. If I call my function in C library for the first time, everything works fine, but the second call causes an exception - mlfMyfunc returns null pointer insted pointer to results (output1 and output2 parameters are IntPtr.Zero even after mlfMyfunc call) My DoubleArray class (wrapper around mx... functions), is well tested and I think it works correctly. Do you have any idea where problem could be?

MATLAB parse OS-specific path

我怕爱的太早我们不能终老 提交于 2019-12-23 23:06:09
问题 I am running a MATLAB project, which is shared by several users, some running Windows and some running Linux. In some of the scripts, I need to access files which are in external directories, and which I do not want to add to the MATLAB path. To accommodate both Linux and Windows, I need to be able to determine the type of OS I'm running, and to set the directory separator accordingly ('\' for Windows, '/' for Linux). I tried os = getenv('OS') (which I saw in some official guide),but it

save specific files with MATLAB commands

人盡茶涼 提交于 2019-12-23 20:50:17
问题 I'm trying to save models in oldest MATLAB versions as below I look for each folder and subfolder to find any .mdl or .slx to save it as 2007b version The problem I have is : it works if I just look for one extension whereas I'm wondering to do that on each .mdl and.slx . the save_system takes too much time Do you know how could I get all .mdl and .slx and is there an optimized way to save ? Thanks rootPath = fullfile('M:\script\ytop','tables'); files = dir(rootPath ); for ii = 3:numel(files)

MATLAB JA Builder throws NullPointerException in MCRConfiguration

…衆ロ難τιáo~ 提交于 2019-12-23 18:23:06
问题 I'm trying to execute a MATLAB function from Java using JA Builder. I followed the MATLAB JA Builder help documentation - the HelloWorld and MagicSquare examples and receive the following stack trace each time: Exception in thread "main" java.lang.ExceptionInInitializerError at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:163) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(MCRConfiguration.java:77) at com

How to initialize and load MCR

痞子三分冷 提交于 2019-12-23 16:43:38
问题 I incorporated C++ shared library generated from MATLAB in a Win32 console application. The MATLAB program takes 2-3 sec to execute in MATLAB but the console application takes 11-12 seconds to execute. I read this is because of the start up time of MCR and I believe after the MCR is initialized it must take same time as it takes in matlab. So how can I load or initialize the MCR so that it is always in the RAM or cache so that it will take 2-3 sec for the console application to run? Should I

Is it possible to call matlab functions from Silverlight / C#?

我是研究僧i 提交于 2019-12-23 12:43:18
问题 Is it possible to call matlab functions from Silverlight / C# ? 回答1: If you have an assembly (dll) that can interpret Mathlab calls, you should be able to include that assembly in your project and compile it with the rest of your application. Obviously, you won't be able to run Silverlight side-by-side to interface with an installed instance of Matlab (unless the API is exposed through COM interop and using Silverlight 4, but that could get messy). The Web API on sourceforge, as mentioned by