octave

octave 3.8.1 can't stop execution in gui command window

我的梦境 提交于 2021-02-18 09:53:29
问题 I'm running octave 3.8 with the gui in Ubuntu 14.04. I have an infinite loop somewhere in my program and it seems like the terminal doesn't respond to the typical keypresses to stop execution. (eg. Ctrl+C, Ctrl+Z) When I run programs in the terminal, I can just press Ctrl+C, but that doesn't seem to work here. What can I do to halt execution? 回答1: To stop a running command or script in octave GUI or prompt: Ctrl + C you will see: less -- (f)orward, (b)ack, (q)uit To abort (and close the GUI

Please Explain Octave-Error : operator /: nonconformant arguments (op1 is 1x1, op2 is 1x10)

那年仲夏 提交于 2021-02-18 08:43:17
问题 I have an issue running a certain script in octave. This is the code that produces the error: #germanium T=410:20:600; x=linspace(400,410,100); y=linspace(10^9,10^9,100); k=8.5*10 .^(-5); Eg=0.59; Nc300=1.02*10^13; Nc=Nc300*((T/300).^(3/2)); n=Nc*(e.^(-Eg/(2*k*T))); plot(T,n,x,y,'m'); grid on xlabel('Temprature'); ylabel('Electron Density n'); title('Germanium n(T)'); As mentioned in the Title, the error that is produced is the following: error: ger5: operator /: nonconformant arguments (op1

Please Explain Octave-Error : operator /: nonconformant arguments (op1 is 1x1, op2 is 1x10)

蓝咒 提交于 2021-02-18 08:42:31
问题 I have an issue running a certain script in octave. This is the code that produces the error: #germanium T=410:20:600; x=linspace(400,410,100); y=linspace(10^9,10^9,100); k=8.5*10 .^(-5); Eg=0.59; Nc300=1.02*10^13; Nc=Nc300*((T/300).^(3/2)); n=Nc*(e.^(-Eg/(2*k*T))); plot(T,n,x,y,'m'); grid on xlabel('Temprature'); ylabel('Electron Density n'); title('Germanium n(T)'); As mentioned in the Title, the error that is produced is the following: error: ger5: operator /: nonconformant arguments (op1

Split the dataset into two subsets in matlab/octave [closed]

丶灬走出姿态 提交于 2021-02-17 07:19:04
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . Improve this question Split the dataset into two subsets, say, "train" and "test", with the train set containing 80% of the data and the test set containing the remaining 20%. Splitting means to generate a logical index of length equal to the number of observations in the dataset, with 1 for a

pdflatex to convert octave code into pdf documents

廉价感情. 提交于 2021-02-17 06:38:06
问题 I am attempting to publish some Octave code as a PDF, however, I keep on getting the same error message: 'pdflatex' is not recognized as an internal or external command, operable program or batch file. I have also downloaded MikTex now but it still does work when I use the command options.format='pdf'; options.showCode = false; publish('document1.m',options) Why is this not working? 来源: https://stackoverflow.com/questions/61815611/pdflatex-to-convert-octave-code-into-pdf-documents

吴恩达《机器学习》课程笔记

ε祈祈猫儿з 提交于 2021-02-15 11:14:29
吴恩达《机器学习》课程笔记 吴恩达《机器学习》课程笔记——第五章:Matlab/Octave教程 摘要: 这一章的内容比较简单,主要是MATLAB的一些基础教程,如果之前没有学过matlab建议直接找一本相关书籍,边做边学,matlab的编程入门还是比较容易的。 在这里想讲一下matlab和Python的区别: 吴恩达教授在刚开始教机器学习课程的时候,主要用的是matlab/octave,他给出的理由是 阅读全文 posted @ 2019-02-24 23:13 李是李雅普诺夫的李 阅读(4) | 评论 (0) 编辑 吴恩达《机器学习》课程笔记——第四章:多变量线性回归 摘要: 4.1 多维特征 在之前的内容中,只探讨了单一特征的回归模型,也就是 m 个样本实例中,每个样本实例 x 只有一个特征,比如房价预测中的 m 个样本中,每个样本只有“房间尺寸”这一个特征。 在实际情况中,更多的是涉及到多维特征模型,比如影响房价的因素(即特征)除了房间尺寸外,还有房间数、楼层等等。这 阅读全文 posted @ 2019-02-24 19:25 李是李雅普诺夫的李 阅读(90) | 评论 (0) 编辑 吴恩达《机器学习》课程笔记——第三章:线性代数回顾 摘要: 吴恩达机器学习的课程中,关于线性代数方面的介绍比较少,而且比较简单,适合于系统学习过线性代数课程的人

error: 'python_ipc_popen2' undefined near line 62 column 15 When running Octave

心已入冬 提交于 2021-02-11 14:45:01
问题 Trying to run Octave on Mac. When I run the diagnose command sympref diagnose . I get that everything is configured fine: Symbolic package diagnostics ============================ Python and SymPy are needed for most features of the Symbolic package. The Python interpreter is currently: "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3". Computers may have more than one Python interpreter installed. If you need to, you can select a different one using the PYTHON environment

problem when trying to load data with textscan

浪尽此生 提交于 2021-02-11 14:13:05
问题 I want to load a set of data that contains variables type string and float. But when I use textscan in octave, my data doesn't load. I got matrix 1x6 (i have 6 features), but in this matrix I got cells that contains nothing(cells that are 0x1). my code: filename='data1.txt'; fileID = fopen(filename,'r'); data = textscan(fileID,'%f %s %s %f %f %s','Delimiter',','); fclose(fileID); when I for example try data(1): >> data(1) ans = { [1,1] = [](0x1) } >> there is it there is my set Also my file

Update matrix, single column per row where row index is in vecor

拟墨画扇 提交于 2021-02-10 19:40:28
问题 Is there a way to update different column in each row of matrix, where row indices are stored in vector. Example mx = zeros(10,10); cols = [2 3 5 4 6 8 9 1 2 3]'; for i = 1:size(mx,1) mx(i,cols(i)) = 1; end mx produces 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 The question is, whether I can do it without the for loop? 回答1: You can

Update matrix, single column per row where row index is in vecor

末鹿安然 提交于 2021-02-10 19:40:01
问题 Is there a way to update different column in each row of matrix, where row indices are stored in vector. Example mx = zeros(10,10); cols = [2 3 5 4 6 8 9 1 2 3]'; for i = 1:size(mx,1) mx(i,cols(i)) = 1; end mx produces 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 The question is, whether I can do it without the for loop? 回答1: You can