필터 지우기
필터 지우기

nested function without "function" keyword?

조회 수: 1 (최근 30일)
John F
John F 2012년 6월 22일
Hi Everyone,
I'm trying to debug a program on the MATLAB file exchange called "convertTDMS (v6)" and can be found here...
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

답변 (1개)

John F
John F 2012년 6월 22일
neeeevermind.
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 6월 22일
What was the solution?
Thomas
Thomas 2012년 6월 22일
the main function file also contained other functions and function
[FixedText,TruncFieldName,ValidFieldName]=fixcharformatlab(textin)
was available as part of it..

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by