Feeds
질문
How do I make an output variable from a sub-routine function a variable in the main function/script? I have a function that reads data from a .txt file (data for output variable) and I want that data in my main file. Is there something I'm missing?
function [ Output ] = readData(inputvariable= opened .txt file) data = fscanf( opened.txt, '%f', 4); return end
10년 초과 전 | 답변 수: 1 | 0