octave error undefined near line 1 column 1
问题 I try to read a matrix from a file. The code is very simple function [mat] = read(file) mat = load(file_points) But when I try to run it read('file') mat = scalar structure containing the fields: mat = 3 4 6 3 5 1 it shows the matrix, but when I run this command... >>mat(1,1) error: 'points' undefined near line 1 column 1 回答1: From Octave Forge about load() If invoked with a single output argument, Octave returns data instead of inserting variables in the symbol table. If the data file