The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 double loops
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bonfamin

2 Posts

Posted - 11/16/2020 :  05:32:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I'd like to run a double loop on a 100*100 matrix and I wrote these lines but I can't find where is the mistake...

a=3,1896;
b=3,5338;

for (i=0; i<1, i=i+0,01)
{
for (j=0; j<100, j=j+1)
{wcol(j+4)=-(0,44798)*((((i)*b+(1-(i))*a)-wcol(2))*wcol(3)+wcol(3)
}
}


Thank you :)

cpyang

USA
1406 Posts

Posted - 11/16/2020 :  06:32:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
What are you trying to do?

CP
Go to Top of Page

Szone1

Hong Kong
6 Posts

Posted - 11/20/2020 :  09:44:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
please review your for loop, syntax error.
Actually also some other syntax errors... like missing end semicolon, etc.

Edited by - Szone1 on 11/20/2020 09:45:31 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000