nested function without "function" keyword?

Asked by John F on 22 Jun 2012
Latest activity Commented on by Thomas on 22 Jun 2012

Hi Everyone,

I'm trying to debug a program on the MATLAB file exchange called "convertTDMS (v6)" and can be found here...

http://www.mathworks.com/matlabcentral/fileexchange/28478-converttdms-v6

The main function is declared at the beginning of the m-file as shown...

function [ConvertedData,ConvertVer] = convertTDMS(SaveConvertedFile, filename)     

Later in the file, there is a line of code that reads as follows...

[obname,TruncFieldName,ValidFieldName]=fixcharformatlab(obname); 

The above line looks like a command with a given output array, but the there is no command or function defined by fixcharformatlab(obname).

Is this some sort of nested function? I'm not necessarily trying to figure out what this "command" is doing. Rather, I want to know what this type of line of code does within a function without having the "function" keyword declaration in front of it.

I'm still working through the code, but if anyone can provide any help, please let me know!

Best,

JF

0 Comments

John F

Products

No products are associated with this question.

1 Answer

Answer by John F on 22 Jun 2012

neeeevermind.

2 Comments

Walter Roberson on 22 Jun 2012

What was the solution?

Thomas on 22 Jun 2012

the main function file also contained other functions and function

[FixedText,TruncFieldName,ValidFieldName]=fixcharformatlab(textin)

was available as part of it..

John F

Contact us