Question: MATLAB SCRIPTING LANGUAGE Problem: I want to pass data in and out of the function in Matlab but it continually generates an error message Steps

MATLAB
SCRIPTING LANGUAGE

Problem: I want to pass data in and out of the function in Matlab but it continually generates an error message

Steps Taken:

I copied and pasted a script code from the script called LoadIntData(code starts from section 2 except the variable Contents is not part of the original script code. View image)

Then I proceeded to pass in data FileName,

When the function is complete. I pass out the result DataMemory

Where the error generates is when trying to call this function and receive the results.

To do this, In the main script, I tried passing the variable FileName and retrieving the answer DataMemory but I came across this error:

Execution of script LoadIntData as a function is not supported:

/Users/sab/Documents/MATLAB/tally_d/LoadIntData.m

Whats wrong with the code?

MATLABSCRIPTING LANGUAGE Problem: I want to pass data in and out of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!