Octave 如何在OSX 10.6.8上以八度打开.m文件
这个文件ex1.m,我用八度音阶打开,但它什么都不做。前几行代码是Octave 如何在OSX 10.6.8上以八度打开.m文件,octave,osx-leopard,Octave,Osx Leopard,这个文件ex1.m,我用八度音阶打开,但它什么都不做。前几行代码是 %% Machine Learning Online Class - Exercise 1: Linear Regression % Instructions % ------------ % % This file contains code that helps you get started on the % linear exercise. You will need to complete the foll
%% Machine Learning Online Class - Exercise 1: Linear Regression
% Instructions
% ------------
%
% This file contains code that helps you get started on the
% linear exercise. You will need to complete the following functions
% in this exericse:
%
% warmUpExercise.m
% plotData.m
% gradientDescent.m
% computeCost.m
% gradientDescentMulti.m
% computeCostMulti.m
% featureNormalize.m
% normalEqn.m
%
% For this exercise, you will not need to change any code in this file,
% or any other files other than those mentioned above.
%
% x refers to the population size in 10,000s
% y refers to the profit in $10,000s
%
%% Initialization
clear ; close all; clc
%% ==================== Part 1: Basic Function ====================
% Complete warmUpExercise.m
fprintf('Running warmUpExercise ... \n');
fprintf('5x5 Identity Matrix: \n');
warmUpExercise()
fprintf('Program paused. Press enter to continue.\n');
pause;
等等。。。。有更多的文件,我不知道如何运行…这看起来像是Andrew Ng在www.coursera.org上提供的在线机器学习课程的一部分。在尝试自己学习教程之后,你可能会更幸运地在课程网站的论坛上问这些问题 首先需要将所有相关文件都放在目录中。然后实际完成作业。在您完成代码部分之前,这些任务中的大多数都不会执行任何操作 此文件包含帮助您开始线性练习的代码。您需要在此练习中完成以下功能:
warmUpExercise.m
plotData.m
gradientDescent.m
computeCost.m
gradientDescentMulti.m
computeCostMulti.m
featureNormalize.m
normalEqn.m
完成后,打开mac终端和cd到
ex1.m
所在的目录。您可以通过启动octave
并输入文件名而不使用.m
扩展名来运行程序。键入ex1
。或者,如果您不想在程序运行完成后进入倍频程外壳,可以从终端键入倍频程-q ex1.m
。阅读并询问教授。不知道如何处理你得到的脚本文件意味着你需要学习更多关于什么是八度音阶和脚本,而不仅仅是如何运行它。我会的,但这只是一个免费的在线课程,我无法访问老师。