12-05-2012
Last edited by DGPickett; 12-05-2012 at 06:12 PM..
10 More Discussions You Might Find Interesting
1. Ubuntu
Hi, Is there any free software version availabe for download for Fedora or Ubuntu or other Linux Flavors which is very close to MatLab in Windows? Thanks. (1 Reply)
Discussion started by: MULTIVERSE
1 Replies
2. UNIX for Dummies Questions & Answers
I am trying to run a Matlab function, file.m, with qsub. Here is a portion of my .sge file:
echo Starting to run Matlab
matlab -nojvm -nodesktop -r "file('${inputfile}');exit;"
echo finished running Matlab
The last two lines of the Matlab function are:
disp('finished');
exit
So my... (1 Reply)
Discussion started by: laether
1 Replies
3. UNIX and Linux Applications
I'm not sure if this really belongs anywhere on this forum but my previous experiences on here have shown me that you guys are very helpful so I figure I may as well try.
I have a bunch of large 2d arrays in matlab and each has a column for a date that each row corresponds to. The format is... (1 Reply)
Discussion started by: skray
1 Replies
4. Programming
Hello everyone,
i need help with this , i need the equivalent matlab funtion tf(x,y) in scilab
and what do u recommend best from those three for a linux user (i need it for Control theory):
1-matlab
2-Scilab
3-Octave
thank you for your time (0 Replies)
Discussion started by: abu_malek
0 Replies
5. UNIX for Dummies Questions & Answers
I need to weight the regression I am performing on a data file. I am not using all the numbers in the file. Here are my variables:
Y = data(,1)
X has the same bracketed first term, and the second term is
I have eight different weights I want to give, one weight corresponding to two different... (0 Replies)
Discussion started by: kssteig
0 Replies
6. Red Hat
Who have installed the softwareware cadence ic 5141 on linux .Please post something about the process.like the process of install ! (0 Replies)
Discussion started by: fang_xiaoan
0 Replies
7. Shell Programming and Scripting
Is anyone here know how to make a script in UNIX which will do importing data from PL/SQL then sending it through mail? Can you give me sample script with explanation so it's easy to understand,Thank you very much,any suggestion or advice is welcome, (1 Reply)
Discussion started by: Atrap
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have a .csv file pipe delimter.., I am using excel data import option for importing the data from a pipe delimter file to xls...I want to make this happen using shell script.
Please let me know how can I do this using shell script.
Regards,
Deepti (2 Replies)
Discussion started by: gaur.deepti
2 Replies
9. Shell Programming and Scripting
I'm running a matlab code within a shell script. This is how I do it,
matlab -nodesktop -nosplash -nojvm -r "my_program;quit"
This works fine. My matlab code prints out a single number, say "ans = 10" for example. I want to assign this to a variable in the shell script.
I tried doing this... (18 Replies)
Discussion started by: lost.identity
18 Replies
10. Fedora
hello everyone,
I have Matlab installed on Fedora 16. I tried running it by simply typing on terminal:
$ matlabBut it returned the follwoing error:
--- can anyone suggest a solution?
cheers,
peter
---------- Post updated at 10:57 PM ---------- Previous update was at 10:54 PM ----------... (1 Reply)
Discussion started by: peter_071
1 Replies
LEARN ABOUT OSX
test::builder::module
Test::Builder::Module(3pm) Perl Programmers Reference Guide Test::Builder::Module(3pm)
NAME
Test::Builder::Module - Base class for test modules
SYNOPSIS
# Emulates Test::Simple
package Your::Module;
my $CLASS = __PACKAGE__;
use base 'Test::Builder::Module';
@EXPORT = qw(ok);
sub ok ($;$) {
my $tb = $CLASS->builder;
return $tb->ok(@_);
}
1;
DESCRIPTION
This is a superclass for Test::Builder-based modules. It provides a handful of common functionality and a method of getting at the
underlying Test::Builder object.
Importing
Test::Builder::Module is a subclass of Exporter which means your module is also a subclass of Exporter. @EXPORT, @EXPORT_OK, etc... all
act normally.
A few methods are provided to do the "use Your::Module tests =" 23> part for you.
import
Test::Builder::Module provides an import() method which acts in the same basic way as Test::More's, setting the plan and controlling
exporting of functions and variables. This allows your module to set the plan independent of Test::More.
All arguments passed to import() are passed onto "Your::Module->builder->plan()" with the exception of "import =>[qw(things to import)]".
use Your::Module import => [qw(this that)], tests => 23;
says to import the functions this() and that() as well as set the plan to be 23 tests.
import() also sets the exported_to() attribute of your builder to be the caller of the import() function.
Additional behaviors can be added to your import() method by overriding import_extra().
import_extra
Your::Module->import_extra(@import_args);
import_extra() is called by import(). It provides an opportunity for you to add behaviors to your module based on its import list.
Any extra arguments which shouldn't be passed on to plan() should be stripped off by this method.
See Test::More for an example of its use.
NOTE This mechanism is VERY ALPHA AND LIKELY TO CHANGE as it feels like a bit of an ugly hack in its current form.
Builder
Test::Builder::Module provides some methods of getting at the underlying Test::Builder object.
builder
my $builder = Your::Class->builder;
This method returns the Test::Builder object associated with Your::Class. It is not a constructor so you can call it as often as you like.
This is the preferred way to get the Test::Builder object. You should not get it via "Test::Builder->new" as was previously recommended.
The object returned by builder() may change at runtime so you should call builder() inside each function rather than store it in a global.
sub ok {
my $builder = Your::Class->builder;
return $builder->ok(@_);
}
perl v5.16.2 2012-10-11 Test::Builder::Module(3pm)