function returns double instead of structure

2 views (last 30 days)
I wrote a function that loads several CSV files with signal data into a stucture:
dataOut.CSV 1-5.signalchannel 1-12.signaldata/detectionpoint
I 've put a breakpoint to check the contents at the end of the function (everything checks out), before returning dataOut as an Output argument to the main function.
But when i check the data in the main function, the structure is replaced by a double, only containing the number 5 (number of CSV files I load).
How do I prevent this from happening and get the wright data returned?
Any help would be greatly apreciated. Thank you.
  1 Comment
Walter Roberson
Walter Roberson on 14 May 2014
I think we will need to see some code. The calling line, the header line for the function, the assignment to output.

Sign in to comment.

Answers (0)

Categories

Find more on Variables in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!