How to call matlab from Sun studio Fortran? ^_^

Hello, everyone,
I have a fortran code which calls matlab engine and matlab functions. I have successfully demonstrated the code in Compaq Visual fortran 6.6 platform. However, I don't know how to call matlab in Sun Studio platform. I don't know how to add the required Liberay modules in the Sun Studio Fortran project.
Now I can build the code successfully, however, I cannot build the project due to the following errors:
Undefined               first referenced
symbol                in file
sum_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
matgetvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxcreatedoublematrix_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
matputvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
maxval_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxcopycomplex16toptr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
minval_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
engopen_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxdestroyarray_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
engputvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxcreatenumericarray_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxcopyreal8toptr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
matopen_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
matclose_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxclassidfromclassname_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxgetstring_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
engevalstring_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxgetpr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxgetpi_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
mxcopyptrtoreal8_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
I think this is because that I didn't add the required liberary modules in the project. How to do that?
I really appricate anyone who can help me to solve my problems. Thank you very much!
All the best,
Yunhong

hello,
Unfortunately, matlab doesn't exist on solaris x86 platform. They only deliver matlab for sparc platform, and i'm wonder if it is EOL'ed now?
Sun never convince Mathworks to offer matlab for solaris x86, so you have to use (if it is possible) other software like Mathematica (money) or Scila, Sage, Octave, ... (free)
We are several Mathworks customers who asked Mathworks for that, and i never understand why people continues to use old or slow sparc machines to compute.
Anyway, today, solaris isn't a right choice for computing, but i'm waiting for Sun to prove that i'm wrong.
(my main compute server is a Sun V40z with Solaris 10, but the next one will be a Sun X2270 with CentOS, because matlab)
gerard

Similar Messages

  • Call MatLab from Java

    Hi Java Lovers,
    Any one know how to call MatLab function from Java Code

    {color:#ff0000}Triple posted{color}
    [http://forum.java.sun.com/thread.jspa?threadID=5280633]
    [http://forum.java.sun.com/thread.jspa?threadID=5280629]
    Cross posting is rude.
    db

  • Calling Matlab from Java

    Hi everybody,
    I need to call Matlab from Java, run some programs in matlab and get the standard output.
    I know I can start matlab with:
    Process proc = Runtime.getRuntime().exec("matlab");
    But then how do i run a program in matlab? (For example, if I have "myprogram.m", I would run it in matlab by typing "myprogram")
    If I start a new process [Process proc2 = Runtime......exec("myprogram")], it does not start in matlab.
    Any ideas?
    thanx in advance.

    Sounds like myprogram is just a parameter of a call to matlab.
    Try some variations on
    exec("matlab myprogram");
    There is also - I believe - an exzec call that takes an array of parameters.

  • Related documents or links on how to call webservices from WDJ

    Hi all
    i need documents & links on how to call webservices from Webdynpro for Java.
    if anybody send the documents on sample scenarios on the same then it is the great help to me...
    Thanks
    Sunil

    Hi Sunil,
    May these links help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
    and  the below thread to call weservices in java.
    Re: How to call a web service from Java
    Regards,
    Supraja

  • How to invoke Matlab from Java

    Hi, I want to pass some data generated from Java class to Matlab, then invoke Matlab from Java to run the computation program (file written in Matlab, myfile.m). I know Matlab can use classes generated from Java, how to drive Matlab from Java?
    I appreciate your help!
    yaya

    According to their documentation, you can't. Having said that, again according to their documentation, there are plans to support this in future releases.
    m

  • How to export MPEG2 from DVD Studio Pro with subtitles?

    Does anyone know how to export MPEG2 from DVD Studio Pro with subtitles?

    You cant do that...
    We might be able to help you more if you are trying to do something specific,
    -Jake

  • How to migrate projects from sun one studio 5

    hi,
    can anybody tell me how to migrate existing projects from sun one studio 5 to sun java studio 8 projects?
    regards
    guenther

    Hi,
    It has been a while since I have had access to sun one studio 5. If I remember correctly, it was based on Netbeans 3.5.1. It turns out the Sun Java Studio Enterprise 7 release was based on Netbeans 3.6. Both of these Netbeans versions used mounted filesystems rather than the new project system. There is a migration guide from JSE 7 to JSE 8 available:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/techart/jse8/intro_migration_jse8.html
    I think this migration guide will apply to your situation as well.
    Let me know if this helps.
    Thanks,
    George

  • How to call LSMW from a Report program

    Hi,
    I have a requirment of extending vendor master data (Companycode data and Purchasing Organization data ) through Tcode XK02 using LSMW.Also I need to generate an error log file for validating the data from flat file and  must have an export option of the error log file.
    Can you help me how to proceed on this in steps.
    Also pls let me know how to call LSMW transaction through a Report.
    Based on the selection criteria I need to maintain two source structues,one for companycode data and the other for Purchasing Orgnization data for uploading  data thru LSMW.How to do this?
    pls respond ASAP,
    Thanks,
    Nagendra

    Hi,
    create 2 LSMW object (under same project and subproject)..
    one for extended vendor master data for company code data and other for  extended purchase organization data for company code data.
    Now check the radio buttons and based on that populate ur LSMW object.
    Store project
      project = < >.
    Store subproject
      subproj = < >.
    Store object
      object  = '6GSC022_TS3'.
    if r_ccode = 'X'.
    Store object
      object  = < >.
    else.
    Store object
      object  = < >.
    endif.
    Call the function module to display object (LSMW) maintenance screen
      CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
        EXPORTING
          project        = project
          subproj        = subproj
          object         = object
        EXCEPTIONS
          no_such_object = 1
          OTHERS         = 2.
    Generating error log:
    After the checking the field if u think for this u need to generate error message then In the Maintain Field Mapping and Conversion Rules option under the required field write the following code:
    data: v_msgtxt(100) type c.
    message  <msg ID>    <message type>   <message no>
                     with   <var1>  <var2>
                     into v_msgtxt.
    write v_msgtxt.
    Follow the next step in LSMW object till you reach the option  Convert Data.
    After you execute this option you will get the desired message here.
    Regards,
    Joy.

  • How to call methods from within run()

    Seems like this must be a common question, but I cannot for the life of me, find the appropriate topic. So apologies ahead of time if this is a repeat.
    I have code like the following:
    public class MainClass implements Runnable {
    public static void main(String args[]) {
    Thread t = new Thread(new MainClass());
    t.start();
    public void run() {
    if (condition)
    doSomethingIntensive();
    else
    doSomethingElseIntensive();
    System.out.println("I want this to print ONLY AFTER the method call finishes, but I'm printed before either 'Intensive' method call completes.");
    private void doSomethingIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    private void doSomethingElseIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    }Question: how do you call methods from within run() and still have it be sequential execution? It seems that a method call within run() creates a new thread just for the method. BUT, this isn't true, because the Thread.currentThread().getName() names are the same instead run() and the "intensive" methods. So, it's not like I can pause one until the method completes because they're the same thread! (I've tried this.)
    So, moral of the story, is there no breaking down a thread's execution into methods? Does all your thread code have to be within the run() method, even if it's 1000 lines? Seems like this wouldn't be the case, but can't get it to work otherwise.
    Thanks all!!!

    I (think I) understand the basics.. what I'm confused
    about is whether the methods are synced on the class
    type or a class instance?The short answer is; the instance for non-static methods, and the class for static methods, although it would be more accurate to say against the instance of the Class for static methods.
    The locking associated with the "sychronized" keyword is all based around an entity called a "monitor". Whenever a thread wants to enter a synchronized method or block, if it doesn't already "own" the monitor, it will try to take it. If the monitor is owned by another thread, then the current thread will block until the other thread releases the monitor. Once the synchronized block is complete, the monitor is released by the thread that owns it.
    So your question boils down to; where does this monitor come from? Every instance of every Object has a monitor associated with it, and any synchronized method or synchonized block is going to take the monitor associated with the instance. The following:
      synchronized void myMethod() {...is equivalent to:
      void myMethod() {
        synchronized(this) {
      ...Keep in mind, though, that every Class has an instance too. You can call "this.getClass()" to get that instance, or you can get the instance for a specific class, say String, with "String.class". Whenever you declare a static method as synchronized, or put a synchronized block inside a static method, the monitor taken will be the one associated with the instance of the class in which the method was declared. In other words this:
      public class Foo {
        synchronized static void myMethod() {...is equivalent to:
      public class Foo{
        static void myMethod() {
          synchronized(Foo.class) {...The problem here is that the instance of the Foo class is being locked. If we declare a subclass of Foo, and then declare a synchronized static method in the subclass, it will lock on the subclass and not on Foo. This is OK, but you have to be aware of it. If you try to declare a static resource of some sort inside Foo, it's best to make it private instead of protected, because subclasses can't really lock on the parent class (well, at least, not without doing something ugly like "synchronized(Foo.class)", which isn't terribly maintainable).
    Doing something like "synchronized(this.getClass())" is a really bad idea. Each subclass is going to take a different monitor, so you can have as many threads in your synchronized block as you have subclasses, and I can't think of a time I'd want that.
    There's also another, equivalent aproach you can take, if this makes more sense to you:
      static final Object lock = new Object();
      void myMethod() {
        synchronized(lock) {
          // Stuff in here is synchronized against the lock's monitor
      }This will take the monitor of the instance referenced by "lock". Since lock is a static variable, only one thread at a time will be able to get into myMethod(), even if the threads are calling into different instances.

  • How to call BAPI from ABAP Inbound Proxy

    Hi All
    Can some one provide/giude  a sample code on how to call a BAPI from generated Method (Inbound Proxy) and how are the table parameters passed from Proxy to BAPI.
    Thanks
    Ravi/

    Hello Ravi,
    In the proxy before calling the BAPI, construct the table, fill it with the appropiate values by lopping over the proxy request object. Now use this table for calling BAPI
    Cheers,
    Naveen

  • How to call RFC from Power Builder

    Hi,
    I am using Power Builder Tools and I want to know how can i call RFC from Power Builder
    Thanks for ur reply

    Hi,
    Although I have not worked with Powerbuilder, I am sure if you have a certain level of proficiency with it, you will be able to code your logic that will call your wrappers written in VB/C/.NET etc. Check out the wonderful weblog by Thomas Jung on integrating ActiveX controls with ABAP Control Framework at https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/995. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Do get back if you have further queries.
    Regards
    Message was edited by: Shehryar Khan

  • How to call webservice from Java application

    Hi XI gurus
    Pls let me know how to call a webservice from Java application.
    I wanted to build synchronous interface from Java Application to SAP using SAP XI
    For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application
    Regards
    MD

    Hi,
    If your  JAVA Application is Web based application, you can expose it as Webservice.
    JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
    So we can Use SOAP Adapter or HTTP in XI..
    If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
    If you are dealing with the Webservice and SAP Applications means check this
    Walkthrough - SOAP  XI  RFC/BAPI
    REgards
    Seshagiri

  • How to call GET_SEARCH_RESULTS from Filter Class

    Hi All,
    I want to call GET_SEARCH_RESULTS from Filter Class. How can we do? Any sample code.

    Hi Mohan,
    I am using "preComputeDocName"
    public int doFilter(Workspace ws, DataBinder binder, ExecutionContext cxt)
    throws DataException, ServiceException
      String dType=binder.getLocal(UCMConstants.dDocType);
      if(dType.equals("CIDTest"))
       if(binder.getLocal("IdcService").equals("CHECKIN_NEW"))
        String filename=binder.getLocal(UCMConstants.primaryFile);
        originalFileName=filename.substring(filename.lastIndexOf("\\")+1);
        SystemUtils.trace(trace_checkin, "org::"+originalFileName);
        DataBinder newDB = ucmUtils.getNewBinder(binder);
        newDB.putLocal("IdcService", "GET_SEARCH_RESULTS");
        newDB.putLocal("QueryText","dDocType <starts> `"+dType+"` <AND> xcidfilename <starts> `"+originalFileName+"`");
        ucmUtils.executeService(ws, newDB, true);
        DataResultSet docInfoDrs = null;
        docInfoDrs = (DataResultSet) newDB.getResultSet("SearchResults");
        if(docInfoDrs.getNumRows()!=0){
         throw new ServiceException("file is not unique");
        binder.putLocal("xcidfilename", originalFileName);
        return CONTINUE;
    return CONTINUE;

  • How to call ExportCollectionActionListener from bean

    In my scenario, I have to get a confirmation from user as "Are you sure you want to export table data to excel document?"
    And when user clicks "YES", the data should be exported.
    And I'm trying to achieve this using bean method, where in I can know whether user clicked "YES" or "NO".
    But in here, how to call the "ExportCollectionActionListener" ?

    check [url https://blogs.oracle.com/jdevotnharvest/entry/invoking_af_exportcollectionactionlistener_from_java]Invoking af:exportCollectionActionListener from Java 

  • How to call infotypes from webdynpro applications

    Hi friends
    My requirement is, I need to call infotypes in r/3 system. Exact requirement is I got a dropdown, which gets the data from infotype, I got a textview which also gets the the data from other infotype.My question how to call  these infotypes. Is this is the same way like importing bapis or different. Please let me know the detail procedure, and any doccuemnts mail me to [email protected]
    Regards
    keerthi

    Hello Keerthi,
    it is no special way to call infotypes, you have to find a Bapi which return data you want (or part of this thata). When there is no Bapi which fill your requirements (or you must call to much bapis) i think you should write your own bapi. Last step is using this (own or found) in wdp.
    Regards
    Bogdan

Maybe you are looking for

  • Problem (sort of) deleting photos from external hard disk.

    Hi. (Most likely) because of moving my photos from the C:/drive to an external HD, I get the following message whenever I try to delete photos "the files are on a volume that does not support the recycle bin lightroom. Would you like to delete them i

  • UPK takes too much time "Loading Library"

    Hi All, I installed the UPK Developer version 3.5.1 together with the Service Pack 3, as soon as the installation is finished: 1) Execute the UPK Developer application 2) Immediately appear a window, showing that UPK is "Loading the Library" 3) Most

  • This is the error message i get when trying to install itunes for the first time

    I have never had problems with installing itunes before but on this computer the message says could not access network location itunes\. Have tried everything and need some help No error codes just this message

  • RUNNING TOTAL

    Hi, Can any one tell me how to create a running total in Oracle reports. I have two fields pulled in the SQL called CR and DR. I want to do the running total at report level. Here what I want CR------DR-------RTOTAL 20-----10---------10 ( here the RT

  • Cant edit song info

    Im having trouble editing my song info. A problem i haven't had in the past. I just got a new computer today, but all of my media is on my external hard drive. On my old pc, i had no troubles editing song info off of these files. and now it seems to