LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet

> Related links

Visit our LabVIEW Wiki External Code Portal.


 
Reply to this topic Start new topic
> matlab question, how to improve this code...
plinius
post Nov 25 2004, 08:25 PM
Post #1


One hit wonder!


Member
Posts: 1
Joined: 25-November 04
Member No.: 1107
LV:1.0


Hi, I made this matlabcode .
I want the code to work without the use of "eval" .
Is this possible, and if so, how??


Thanks.

CODE
function [e,h,ploth] = rls(bestand, resultaat, kanalen, gewenst)
tic
orde = length(kanalen);
load(bestand, 'npartities')
%initialisatie
delta = 0.01;
lambda = 0.9999;
Xxxinv = 1/delta*eye(orde);
Xxxinv_adj = Xxxinv/lambda;
h = zeros(orde,1);
for i = 1:npartities
   if i < 10
       eval(['load ',bestand, '.mat string0', num2str(i)])
       eval(['stringx = string0', num2str(i),'(kanalen,:);'])
       eval(['stringd = string0', num2str(i),'(gewenst,:);'])
       eval(['clear string0', num2str(i)])
       %disp(stringx)


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Nov 25 2004, 08:25 PM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
didierj
post Nov 26 2004, 07:27 AM
Post #2


Extremely Active
****

Member
Posts: 391
Joined: 6-February 04
From: switzerland
Member No.: 253
Using LabVIEW Since:1997
LV:7.1.1 ,6.1 ,.
Switzerland France Nothing Selected


Uhh...
I thought we were in a LabVIEW forum? blink.gif

... by the way, plinius, LabVIEW version 1.0 wasn't ever released (but I think this is more a problem for Michael).

This post has been edited by didierj: Nov 26 2004, 07:28 AM


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
PhattieM
post Jul 2 2008, 12:55 PM
Post #3


Active
*

Member
Posts: 10
Joined: 17-June 05
Member No.: 2430
LV:7.1.1
United States


How do you use the function parameter in a mathscript node?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 Tom-Tom 1432 14th January 2003 - 03:58 PM
Last post by: Tom-Tom
No New Posts   6 jlada 2056 11th March 2003 - 09:28 PM
Last post by: pblaze
No New Posts   4 187063 1396 1st July 2004 - 05:03 AM
Last post by: Khalid Ansari
No New Posts   4 epravi 2979 11th May 2006 - 12:45 PM
Last post by: torekp


Reply to this topicStart new topic

 




Time is now: 7th October 2008 - 08:06 AM