Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?

image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions