刚编写完一个简单的画图程序,代码如下

close all;
clc;
clear;
% sinx
x = linspace(0,2*pi,200);
f1 = sin(x);
plot(x,f1);

title('plot of f_1=sin(x)');
xlabel('x');
ylabel('f_1');
axis([0 2*pi -1.1 1.1]);

% cos(x)
f2 = cos(x);
figure;
plot(x,f2);
title('plot of f_2 = cos(x)');
xlabel('x');
ylabel('f_2');
axis([0 2*pi -1.1 1.1]);

% plot on the same pic
figure;
plot(x,f1,'-go')
hold on;
plot(x,f2,'-r^');
title('plots of f_1=sin(x),f_2 = cos(x)');
xlabel('x');
ylabel('f_1,f_2');
axis([0 2*pi -1.1 1.1]);

legend('f_1','f_2');

gtext('f_1 = f_2 at two places');

结果我将它保存为plot.m文件了,执行后一直出现?? Attempt to execute SCRIPT plot as a function这个提示,结果仔细查找了下原因是因为文件名取错了改为plot2D或者其它都可以了,不能用matlab内部自带的函数名来命名。

Attempt to execute SCRIPT plot as a function?相关推荐

  1. 解决Attempt to execute SCRIPT mexLasso as a function

    Attempt to execute SCRIPT mexLasso as a function: Error in selectFeature (line 22) w = mexLasso(L, A ...

  2. pyinstaller打包py文件生成的exe报错Failed to execute script

    版权声明:转载请注明作者(独孤尚良dugushangliang)出处:https://blog.csdn.net/dugushangliang/article/details/100761976 时常 ...

  3. python使用statsmodels包中的tsaplots函数可视化时间序列数据所有滞后位置个数(级别)的自相关性(plot the autocorrelation function)

    python使用statsmodels包中的tsaplots函数可视化时间序列数据所有滞后位置个数(级别)的自相关性(plot the autocorrelation function) 目录

  4. Pyinstaller 打包exe 报错 “failed to execute script XXX“的一种解决方案

    Pyinstaller 打包exe 报错 "failed to execute script XXX"的一种解决方案 参考文章: (1)Pyinstaller 打包exe 报错 & ...

  5. python gui打包exe pyinstaller打包运行失败 Failed to execute script pyi_rth_multiprocessing

    python 通过pyinstaller打包后,在别的电脑运行失败 Failed to execute script pyi_rth_multiprocessing 在低版本windows7上运行会出 ...

  6. pyinstaller 打包python应用为exe后 打包出现failed to execute script

    pyinstaller 打包python应用为exe后 打包出现failed to execute script 打包后出现如题问题,只需在打包语句中加入pkg_resources.py2_warn这 ...

  7. Python打包exe后报错:Failed to execute script xxxx问题的解决办法

    本篇文章主要讲解,python 通过 pyinstaller 打包python脚本后输出exe,执行时报错 Failed to execute script[脚本无法执行的错误]解决办法 日期:202 ...

  8. pyinstaller 打包 python3项目,遇到failed to execute script XXX 错误的解决方法

    近日修改了之前一个使用pyinstaller可以成功打包的python3项目,在IDE中运行正常,但是打包以后运行exe却出现failed to execute script XXX 弹窗提示,无法正 ...

  9. python-GUI:利用pyqt5设计一个bootloader上位机页面(ZLG驱动)及打包报错faild to execute script pyi_rth_multiprocessing精简方案

    python-GUI:利用pyqt5设计一个bootloader上位机页面 1.下载pyqt5和Qt Designer 2.利用Qt Designer设计页面 步骤一:打开Qt Designer 步骤 ...

最新文章

  1. [TCP/IP] TCP如何实现流量控制和拥塞控制
  2. Redis之压缩列表ziplist
  3. linux 系统调优查看排除方法
  4. linux下测试权限,Linux下进程权限分析
  5. 支付宝核心工程师谈如何成为一名优秀的程序员?
  6. struts2的标签中得到JSP脚本的变量值
  7. sql两张表,分组或row_number()取最新的记录SQL
  8. 七月算法机器学习 7 工作流程与模型调优
  9. (22) 基于动态时空图卷积神经网络的交通流预测
  10. 计算机专业数字逻辑,大学计算机专业数字逻辑课程试卷及答案(4份)
  11. linux挂载移动硬盘 格式化_Linux下挂载移动硬盘(NTFS格式)
  12. 不积跬步无以至千里(C语言笔记)
  13. 程序分析-Joern工具工作流程分析
  14. ccf化学方程式配平检验
  15. 基于stm32单片机智能温控风扇控制系统Proteus仿真
  16. Windows 平台部署前后端分离项目
  17. cgb2110-day01
  18. 创新案例|语言教育App头牌Duolingo如何重新点燃用户增长350%
  19. Oracle误删除数据的恢复方法(转)
  20. 三坐标测量基础知识之日常维护和保养

热门文章

  1. [云炬创业基础笔记]第七张创业团队测试6
  2. 云炬Android开发笔记 5-5,6Loading框架集成与完善AVLoadingIndicatorView
  3. 三分钟带你对 Softmax 划重点
  4. Keras + Windows +Anaconda2-4.2.0 深度学习框架快速搭建
  5. VTK修炼之道83:Pipeline管线执行模型
  6. Delphi指针用法
  7. 【CyberSecurityLearning 77】DC系列之DC-8渗透测试(Drupal)
  8. Jackson 配置 ObjectMapper
  9. S5PV210开发 -- 交叉编译器
  10. 如何设计区块链项目的通证(token)模型