LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit our LabVIEW Wiki External Code Portal.


Tags
(This content has not been tagged yet)
 
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

Reply to this topicStart new topic

 




Time is now: 2nd December 2008 - 04:48 PM