On Jan 11, 9:50 am, Jim Thompson <To-Email-Use-The-Envelope-I...@On-My-
Web-Site.com> wrote:
> On Wed, 11 Jan 2012 08:32:27 -0800 (PST), Robert Macy
>
>
>
>
>
Stay away from trying to use Excel ;)
I recommend octave 2.1.50a for its plotting! However, if you're doing
high power arrays, latest version is better, accepts 3 indices.
More advantageous, the users group will usually post help response
within a few hours 24/7. If you're like me, you work anytime and don't
want to interface with 'customer service' only during business hours.
I use octave to test DSP algorithms BEFORE writing the C, C++ code.
First time Directions:
Get a good text editor, like SC1 from Scilab. Set it up to open .m
files.
Install octave.
place all your working .txt files and .m files in the octave_files
folder.
Run octave.
Either command line prompt, step by step, or
write a TestScript.m file using the editor
At the prompt type in the name of the script file, in this case
TestScript [don't add the .m It's implied] and octave will run your
script.
You can open files, read files either text or binary, save files
either text or binary. etc.
Fastest way to learn is try to do the first thing you want done?
LTspice analyze the problem and export results in text format. Keep
simple. only one variable. Edit the file to remove header, only have
numbers, save as out.txt.
At the command prompt type
> read("out.txt");
then type
> t=out(:,1)'; v=out(",2)';
that will put the thing into 'normal' forms
you now have time as t in nonuniform steps and you have v at each time
point.
How many points do you want? 1000?
type in
> [T,V]=fillinsteps(t,v,1000);
[or use the built in function interp1.m]
and voila! even number of steps
save as a text file by typing
> save -ascii "StepsUniform.txt" T V;
and then look at that file. You'll find that the arrays are across and
not down
if you want down like the original format change the variables:
> T=T'; V=V'; save "StepsUniform.txt" T V;
or if you want the 'down' array to be in the similar format as the
original:
> OUT=[T,V]; save -ascii "OUT.txt" OUT;
then you can use your text editor to change the header to the original
header and you're done.