<< repvec sciFLT sciFLTEditor >>

sciFLT >> sciFLT > savefls

savefls

Save fls structure in a file

Calling Sequence

savefls(fls,fls_filename)
savefls(fls,fls_filename,int_rules)

Parameters

fls:

fls structure.

fls_filename:

string, the file name where to save

int_rules:

boolean, %t - rules are written as integer (default), %f - rules are written as double

Description

savefls save the fuzzy logic system fls in the file fls_filename. The extension .fls is only added to filename if it is not already included in the name.

As the editor can only handle integer based rules, integer values can be forced with int_rules=%t

Examples

// Create a new structure
fls1=newfls('ts');
fls1.comment="This is an example"

// Save the structure in TMPDIR/example1.fls
savefls(fls1,TMPDIR+"/example1");

// Restore the value
fls2=loadfls(TMPDIR+"/example1")

See also

Authors


Report an issue
<< repvec sciFLT sciFLTEditor >>