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
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?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started