Jump to content

matlab question


Recommended Posts

Hi, I made this matlabcode .

I want the code to work without the use of "eval" .

Is this possible, and if so, how??

Thanks.

function [e,h,ploth] = rls(bestand, resultaat, kanalen, gewenst)ticorde = length(kanalen);load(bestand, 'npartities')%initialisatiedelta = 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)

Link to comment
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.