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
 All Forums
 Origin Forum
 Origin Forum
 Origin increases the length of my datasets

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Jose Posted - 07/19/2000 : 12:39:00 PM
I have a new empty worksheet with, let's say, two columns, Data1_a and Data1_b. I fill Data1_a with 100 values, from 1 to 100, and then the worksheet ends. If I command

get Data1_a -e e; // gets the end row of the dataset
type e;

I receive "100" in response. So everything is OK up to here. But now I command,

aa=-100;
bb=0.02;
Data1_b=10^(aa+bb*Data1_a);

and the result is calculated until item 3768! New rows are created in my worksheet, with value 0/0 for index>100, but it takes its time in any case! I don't see what is making this happend, so please send me any clue.

Thanks,

jose.

(I imagine that it has to do with some mixing of vector and scalar notations, as if I replace "aa" and "bb" with their numerical values in the asignment expression, things work, but I don't know how to do it with variables...)

[This message has been edited by Jose (edited 07-19-2000).]

1   L A T E S T    R E P L I E S    (Newest First)
Jose Posted - 07/19/2000 : 1:26:00 PM
Yes, if I rewrite the script using only vector notation, it works fine (and faster):

Data1_a=data(1,100);

bb=0.02;
aa=-100;

Data1_b=Data1_a;
Data1_b*=bb;
Data1_b+=aa;
Data1_b=10^(Data1_b);

But I still have the doubt about why the other notation gives that weird result...

jose.


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000