上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: 因为工创Ⅲ的缘故不得不重新学习原来大一所学的ESP8266和MQTT服务器相关的知识,但是本人记性实在是非常的差,为了重新学习又在网上搜集了很久的知识,这里为了防止以后出现类似的情况,这里就写一篇博客记录一下。 前置准备 我们首先需要在windows自带的商店中装上ubuntu虚拟机(用于配置服务器 阅读全文
posted @ 2022-02-22 20:50 Mudrobot 阅读(1949) 评论(0) 推荐(0) 编辑
摘要: MATLAB 基础绘图总结 首先先放两个总结的非常好的MATLAB基础绘图博客的链接: MATLAB基础绘图 MATLAB高级绘图 下面只会进行一些补充: heatmap h = heatmap(tbl,xvar,yvar,'ColorVariable',cvar) 使用 cvar 指定的表变量来计 阅读全文
posted @ 2022-02-17 17:09 Mudrobot 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 主要总结了一下常用的表格操作: 创建一个表格table.csv,其内容是: %读取csv文件 T1=readtable('table.csv'); T1 %读取不含列标题的csv文件 T2=readtable('table.csv','ReadVariableNames',false); T2 %如 阅读全文
posted @ 2022-02-17 11:20 Mudrobot 阅读(2177) 评论(0) 推荐(0) 编辑
摘要: 代码如下,直接进行使用即可: function drawplane(points) %points = [0.65612, 0.53440, 0.24175;0.62279, 0.51946, 0.25744;0.61216, 0.53959, 0.26394] p0=points(1,:); p1 阅读全文
posted @ 2022-02-14 14:32 Mudrobot 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 暂时先贴一篇代码: class MyClass: i=123; def f(self): return 'HelloWorld' print(MyClass.i) #print(MyClass.f())#这样使用是非法的 xxx=MyClass(); print(MyClass.f(xxx))#这样 阅读全文
posted @ 2021-11-11 20:26 Mudrobot 阅读(29) 评论(0) 推荐(0) 编辑
摘要: %% %plot plot(cos(0:pi/20:2*pi)) plot(0:pi/20:2*pi,cos(0:pi/20:2*pi)) %从上面可以发现matlab后一次画的图会覆盖前一次画的图 %% %hold on %我们可以使用hold on命令来保留上一次画的图不被擦掉 hold on 阅读全文
posted @ 2021-08-28 21:05 Mudrobot 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 本章节主要介绍了matlab的结构体和cellarrey等重要的类型,然后讲解了一下xlsx与一些基本文件的读写。 详细细节见下面代码: %% %structure student(1).name='John Doe'; student(1).id='jd2@sfu.ca'; student(1). 阅读全文
posted @ 2021-08-28 15:19 Mudrobot 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 基础结构化程式 %% % ifelse a=3 if mod(a,2)==0 disp('even') elseif mod(a,2)==3 disp('impossible') else disp('odd') end %% %switch input=-1 switch input case - 阅读全文
posted @ 2021-08-28 09:10 Mudrobot 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Xpath是在xml文档中搜索内容的一种语言,而html也相当于一种xml,所以我们可以用Xpath的方式在html中寻找我们需要的数据,下面代码就是一个例子,非常的简单,大家阅读一下应该就能明白: # Xpath是在xml文档中搜索内容的一种语言 # html是xml的一个子集 html=""" 阅读全文
posted @ 2021-08-04 14:49 Mudrobot 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 本博客主要用来记录一下学习过程中所使用的代码: 我们以豆瓣电影网为例子,来爬取上面的数据: 链接:豆瓣电影 import requests url="https://movie.douban.com/" resp=requests.get(url) resp.encoding="utf-8" #pr 阅读全文
posted @ 2021-08-04 13:17 Mudrobot 阅读(80) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页