Running Matlab7.1 R14SP3 file in

I have a matlab (.m file) and a file and want to excute the .m

Page 1 of 1

0 Replies - 1726 Views - Last Post: 04 February 2009 - 10:54 PM Rate Topic: -----

#1 rajen.chatterjee   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-February 09

Running Matlab7.1 R14SP3 file in

Post icon  Posted 04 February 2009 - 10:54 PM

Matlab 7.1 R14SP3 test.m has the following code:

function test()
RGB = imread('SomeImage.jpg');

This code can be called by Matlab version R2008a but fails when called by Matlab version 7.1 R14SP3though the code i m writting is the same for both the version of matlab

Here is the code for 2005:
First i m adding refrence form Project>Refrence>Matlab Application Version7.0 Type Library

Public Class Form1
Dim Matlab As MLApp.MLApp
Dim Result As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Matlab = New MLApp.MLApp
Result = Matlab.Execute("test")
End Sub
End Class

The error is something about casting but the same code is working fine with Matlab current version 2008a so if it is a version problem then how to write the code for Matlab 7.1R14SP3.
Hope someone can help me :)
Thank you.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1