哆啦美

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Matlab

摘要:plot(x, y, 'b-', 'LineWidth',1.5); set(gca,'FontSize',10,'fontname','Times New Roman','LineWidth',0.8); xlabel('\fontname{宋体}标题/\fontname{Times New Ro 阅读全文
posted @ 2023-11-03 19:38 哆啦美 阅读(73) 评论(0) 推荐(0)

摘要:GUI坐标轴只显示白色图框 GUI中 hold on hold(handles.axes1,'on') 阅读全文
posted @ 2023-04-15 20:22 哆啦美 阅读(34) 评论(0) 推荐(0)

摘要:clear clc data_line1 = xlsread('24.xlsx','Sheet1','A1:C30');%写入字符串 x1 = data_line1(:,1); y1 = data_line1(:,2); z1 = data_line1(:,3); Point1 = [x4 y4 z 阅读全文
posted @ 2023-04-14 16:31 哆啦美 阅读(641) 评论(0) 推荐(0)

摘要:function [theta,omega,alpha]=crank_rocker(theta1,omega1,alpha1,l1,l2,l3,l4) % 1. 计算从动件的角位移 L=sqrt(l4*l4+l1*l1-2*l1*l4*cos(theta1)); phi=asin((l1./L)*s 阅读全文
posted @ 2023-03-11 20:59 哆啦美 阅读(494) 评论(0) 推荐(0)

摘要:1 阅读全文
posted @ 2023-01-31 13:07 哆啦美 阅读(263) 评论(0) 推荐(0)

摘要:写入txt a=[1,2,3;4,5,6]; save C:\Users\Administrator\Desktop\a.txt -ascii a 参考:https://blog.csdn.net/hengyaha/article/details/78995291 读取txt %对于类似的txt文件 阅读全文
posted @ 2023-01-30 23:00 哆啦美 阅读(495) 评论(0) 推荐(0)

摘要:% 主调用函数(求最大值) clc; clear; close all; % 初始化种群 N = 100; % 初始种群个数 D = 4; % 空间维数 iter = 50; % 迭代次数 x_limit = [10, 13; 14, 25; 3, 8; 0.3, 0.5]; % 位置限制 v_li 阅读全文
posted @ 2023-01-29 17:10 哆啦美 阅读(206) 评论(0) 推荐(0)

摘要:GUI调出文件读取框 [filename,pathname] = uigetfile({'*.xlsx';'*.xls';'*.*'},'选择文件'); strh = [pathname,filename]; %存储文件的路径及名称 global num txt raw [num,txt,raw] 阅读全文
posted @ 2023-01-08 20:23 哆啦美 阅读(76) 评论(0) 推荐(0)

摘要:1 只改变坐标轴刻度,不改变实际值 xtick = get(gca,'XTick'); set(gca,'XTick',xtick,'XTickLabel',xtick/100); 阅读全文
posted @ 2022-05-30 14:58 哆啦美 阅读(96) 评论(0) 推荐(0)