https://kr.mathwands.com/matlabcentral/answers/questions. MATLAB的答案——새질문 2021 - 09 - 28 - t21:37:44z 标签:kr.mathworks.com, 2005:问题/ 1462479 2021 - 09 - 28 - t15:04:10z 2021 - 09 - 28 - t21:37:44z 事件函数的赋值语法无效或解析错误(Simbiology) 我正在向QSP模型添加一个事件,以将函数施加为一个小的正数(例如epsilon)如果其值下降到epsilon。代码的片段是:f_hpd1 ='((syn_ct.pd1_pdl1 + syn_ct.pd1_pdl2)/ pd1_50)';addevent(模型,[f_hpd1'<1e-10'],[f_hpd1'= 1e-10']);在其中,Syn_Ct是隔间名称,pd1_pdl1,pd1_pdl2是盒子syn_ct pd1_50中的物种是型号参数,但我收到此错误消息:使用simbiology时出错。internal.simulate - >从表达式验证报告的错误:无效的分配语法或解析错误事件函数'((syn_ct.pd1_pdl1 + syn_ct.pd1_pdl2)/ pd1_50)= 1e-10'与触发事件中的事件'((syn_ct.pd1_pdl1 + syn_ct.pd1_pdl2)/ pd1_50)<1e-10'。事件函数必须是有效的MATLAB表达式,无法以分号,逗号,注释('%'和可选文本)结尾,或行持续('...'和可选文本)。simresultscell = simbiology中的simresultscell = simbiology .Internal.simulate(mobj,cs,变体,剂量);initial_conditions中的错误(第84行)simdata = sbiosmulate(型号,变体);请帮助我解决这个问题,任何建议都非常感激。谢谢 BK V https://kr.mathworks.com/matlabcentral/profile/authors/22962297 标签:kr.mathworks.com, 2005:问题/ 1459534 2021 - 09 - 23 - t19:49:36z 2021-09-28T21:37:18Z 如何从散点图中选择多组数据点(如流式细胞术/细胞分类中的选通)? 我有2个列向量在散点图上。这是单元格排序数据。我使用参考线(见png)的数据门控,我想能够导出(x,y)数据点之间的具体线。这是可能的吗?我用R2019b。 汉娜·哈勒 https://kr.mathworks.com/matlabcentral/profile/authors/16336921 标签:kr.mathworks.com, 2005:问题/ 877973 2021 - 07 - 13 - t22:25:26z 2021 - 09 - 28 - t21:37:11z 转矩输入不动的转动关节(无抛错) 你好,我正在建立一个三维模型的simscape模型,其中的一部分我已经如下图所示。使我苦恼的机械装置相当简单,只是一个安装在马车上的丝杠。转动关节“Revolute4”给我带来了很多麻烦,我相信它可能(?)与我的丝杠块有关,因为这个块特别证明很难工作..实际上,当我移动小车时,通过移动关节信号,转动关节将输出运动和位置信号。然而,当我尝试用扭矩输入直接驱动到Revolute4(而不是棱柱)时,没有关节的旋转。我该如何解决这个问题?Simscape不会抛出任何错误,因此我或多或少完全不知道如何排除这个问题的故障。我已经附上了我的项目的一部分的图像,不幸的是,我将不能包括整个项目,但我相信这一信息足以开始。谢谢! 卡森·兰斯唐恩 https://kr.mathworks.com/matlabcentral/profile/authors/22917574 标签:kr.mathworks.com, 2005:问题/ 1462514 2021 - 09 - 28 - t16:04:34z 2021-09-28T21:36:49Z 嗨。12345是使用wblrnd函数生成weibull随机数的唯一种子吗? 在simulink中使用实体生成块时,默认种子为12345,用于威布尔或指数金宝app分布随机数的代际时间动作(通过MATLAB动作)。为什么是12345而不是种子0或1?是什么在simulink中证明了这种选择的合理性?是否可以在simulink中使用其他具有weibull分布的种子进行不同的复制?谢谢。 家伙YAKANA https://kr.mathworks.com/matlabcentral/profile/authors/20136427 标签:kr.mathworks.com, 2005:问题/ 870148 2021 - 07 - 01 - t19:28:05z 2021-09-28221:35:49Z Simscape丝杠约束问题 我目前试图实现一个在丝杠上的马车,但它一直围绕平移轴旋转。没有文件,我已经能找到这个地址。我试图通过使用滑块关节约束它来解决这个问题,但这导致了构建中的一个错误。先谢谢你 卡森·兰斯唐恩 https://kr.mathworks.com/matlabcentral/profile/authors/22917574 标签:kr.mathworks.com,2005:问题/ 1462609 2021-09-28T19:11:36Z 2021 - 09 - 28 - t21:33:53z 表排序现在需要对话框选择升序或降序 从R2021a开始,尝试按列对表排序现在会弹出一个对话框,指定是按升序还是降序排序。这是一个麻烦,需要我在繁忙的桌面上找到对话框。以前,单击按一种顺序或另一种顺序排序的向下箭头,然后再次单击按相反顺序排序的箭头。简单。我能找回那种行为吗?我不知道该怎么办。 jkr https://kr.mathwands.com/matlabcentral/profile/authors/8350685 标签:kr.mathworks.com,2005:问题/ 1461639 2021-09-27T13:15:43Z 2021 - 09 - 28 - t21:32:08z 离散传递函数块代替连续传递函数块 朋友们好,我想用一个离散的传递函数块来代替连续的传递函数。在simul金宝appink之后,它没有工作。谁能给我一些建议吗?谢谢。连续传递函数块:离散传递函数块: Guomeng太阳 https://kr.mathworks.com/matlabcentral/profile/authors/23193872 标签:kr.mathworks.com, 2005:问题/ 414380 2018 - 08 - 10 - t12:02:49z 2021-09-28221:31:34Z 基于遗传算法ieee14节点无功优化的Matlab程序 基于遗传算法的ieee14节点无功优化 Girijashankar Sahoo https://kr.mathworks.com/matlabcentral/profile/authors/13276809 标签:kr.mathworks.com,2005:问题/ 1462604 2021 - 09 - 28 - t18:51:07z 2021 - 09 - 28 - t21:31:33z dsolve(diff(X,t))不适用于3x3矩阵 以下代码不适用于3x3矩阵,只能适用于2x2,请帮助解决3x3的错误是什么?A=[-0.120.05 0.05;0.1-0.10;0.02 0.05-0.05]syms x syms x(t)y(t);X=[X;y;b];b=0;[Sx,Sy,Sz]=dsolve(差(X,t)=A*X+b) 陈天乐 https://kr.mathworks.com/matlabcentral/profile/authors/23460152 标签:kr.mathworks.com, 2005:问题/ 454639 2019 - 04 - 05 - t13:39:01z 2021 - 09 - 28 - t21:31:29z 你如何绘制一年中每两个月的数据? 我有一个一年的数据,我需要两个地块,每个月覆盖1 -15和16月底,即该数据的双月地块。数据集不是完全完整的,在一些点上没有数据的第1 /15 /16日(以及其他日子)的一个月。该数据目前是一个时间/日期的时间表,datetime格式为“dd/MM/yyyy HH: MM:ss”。有没有一种方法可以循环利用这些数据来制作这些双月图?我的第一反应是使用Timerange,但不能确定是否有一种方法来定义“半个月”使用这个函数,并每2周或15天绘制一次。下面是一个基本的数据示例(我添加了…date data 01/01/2018 00:00:00 344.98 01/01/2018 00:30:00 304.13 01/01/2018 01:00:00 355.74…13/01/2018 09:30:00 554.13 18/01/2018 10:00:00 344.77 19/01/2018 10:00:00 346.47 27/01/2018 00:30:00 304.13 02/02/2018 01:00:00 357.83 02/02/2018 01:30:00 367.87…31/12/2018 22:30:00 634.63 31/12/2018 23:00:00 400.53 31/12/2018 23:30:00 621.43 Dom史密斯 https://kr.mathworks.com/matlabcentral/profile/authors/6115831 标签:kr.mathworks.com,2005:问题/ 1458479 2021-09-22T10:48:26Z 2021 - 09 - 28 - t21:31:20z 风力涡轮机的要求模型描述文档 很荣幸能在https://ww2.mathwor金宝appks.cn/matlabcentral/fileexchange/25752-wind-turbine-model?s_tid=srchtitle网站上找到一个风力发电机的simulink模型。这对我最近的工作很有帮助。非常感谢分享。但是,当我仔细研究模型的细节时,我经常发现我不能理解模型是如何构建的,也找不到模型的描述文档。我可以要一份这个模型的文档吗?非常感谢! 苏柳 https://kr.mathworks.com/matlabcentral/profile/authors/16986884 标签:kr.mathworks.com, 2005:问题/ 1455969 2021 - 09 - 18 - t14:38:58z 2021 - 09 - 28 - t21:29:06z 弹性材料的设计方法 我想设计一个如图所示的模型,(1)是初始状态,(2)是变形后。・黄色块轴。・蓝色和绿色的灰色块固定块。・灰色块一条弹性材料。・蓝色和绿色块之间的距离是不变的。・旋转蓝色块改变灰色的弹性。如果您能附上您创建的模型,我将不胜感激。 一个 https://kr.mathworks.com/matlabcentral/profile/authors/11624704 标签:kr.mathworks.com,2005:Question/1461869 2021 - 09 - 27 - t19:58:50z 2021 - 09 - 28 - t21:28:39z 如何从分散的数据(及其方差)计算平均路径? 我有一组二维向量,其中包含了每个机器人在实验中的位置。每个向量有不同的大小。我想要计算一条对应于所有路径的平均值(可能还有方差)的路径。这个想法是以一种紧凑的方式表示所有实验的结果。我找到了一个函数,但我不明白它是怎么工作的。我的问题有解决办法吗?我试图填充所有向量,使它们具有相同的大小,然后使用mean()命令,但结果很差。这里是我想要平均的一些路径的图: 阿尔贝托·巴钦 https://kr.mathworks.com/matlabcentral/profile/authors/12750731 标签:kr.mathworks.com,2005年:问题/1462689 2021-09-28620:36:18Z 2021 - 09 - 28 - t21:24:49z 使用二分法/割线法的变体对函数进行编码以查找零 你好,我有一个编程任务我要实现一个matlab函数它是平分和割线法的一个变体。具体细节请见附件。我的代码有点问题。有人能帮我修理一下吗?我的代码如下 : —————————————————————————————————————- 如果真的%代码函数p =二分(f, a, b, tol) w = 1;For i=1:100 p= a +(w*f(a)*(a-b)/f(b)-w*f(a));流(a、b、p f (p));如果f (p) * f (b) > 0 w = 0.5;其他w = 1;a = b; end b=p; if abs(b-a) Lavorizia沃恩 https://kr.mathworks.com/matlabcentral/profile/authors/23605015 标签:kr.mathworks.com, 2005:问题/ 60240 2013-01-29T15:16:37Z 2021-09-28221:24:26Z 澄清和clemvars的效果有什么区别? 澄清和clemvars的效果有什么区别? 杂种狗 https://kr.mathworks.com/matlabcentral/profile/authors/2765343 标签:kr.mathworks.com,2005年:问题/1462699 2021 - 09 - 28 - t20:55:52z 2021 - 09 - 28 - t21:18:08z 在R2021a中可以找到CMake,但在R2021b中找不到 你好,这周我尝试在windows中安装MATLAB R2021b的稳定版本,但是发现rosgenmsg找不到CMake。但是在ubuntu系统中没有问题。>> !where cmake C:\Program Files\CMake\bin\cmake.exe >> !cmake——version cmake version 3.21.3 Kitware维护和支持的cmake套件(kitware金宝app.com/cmake)>> folderpath = "C:\Users\xinxi\Documents\MATLAB\***" folderpath = "C:\Users\xinxi\Documents\MATLAB\***" >> rosgenmsg(folderpath)识别“C:/Users/xinxi/Documents/MATLAB/***”文件夹中的信息文件。正在验证“C:/Users/xinxi/Documents/MATLAB/***”文件夹中的消息文件。[0/2]为自定义消息包生成MATLAB接口…使用ros.internal.utilities. getmakesbinarypath出错(第24行)请安装CMake 3.15.5或更高版本并重新运行命令。在ross .internal. catkinbuilder . getmakepath(第83行)[aPath, aVersion] = ros.internal. tools . getmakmakebinarypath(罗斯.internal. catkinbuilder . cmakeminversion);Error in ros.internal.ROSProjectBuilder (line 408) h.CMakePath = h.CMakePath (); Error in ros.internal.CatkinBuilder (line 25) h@ros.internal.ROSProjectBuilder(varargin{:}); Error in rosgenmsg (line 287) builder = ros.internal.CatkinBuilder(genDir, pkgInfos{iPkg}); My computer also has MATLAB R2021a installed. I tried to run rosgenmsg but without any errors. I have before also used the preview version of R2021b, and there was no problem. 鑫兴 https://kr.mathworks.com/matlabcentral/profile/authors/16072842 标签:kr.mathworks.com,2005:Question/629238 2020 - 10 - 28 - t15:02:57z 2021 - 09 - 28 - t21:14:24z 根据日期/时间排序表 您好,我有一个带有时间戳列的表格,格式为“6/29/2020 12:39:32.910 AM”。我想按发送顺序对表进行排序,但默认情况下Matlab将列视为字符串。我尝试使用datetime将列定义为dat格式:>>t=datetime(T1T2.TimeStamp,'InputFormat,'MM/DD/yyyyy HH:MM:ss.sss),但失败了,可能是因为我没有定义am/PM符号。根据日期值对该表进行排序的最佳/最简单方法是什么?非常感谢,本 本Keshet https://kr.mathworks.com/matlabcentral/profile/authors/11371537 标签:kr.mathworks.com, 2005:问题/ 1462709 2021-09-28221:13:54Z 2021-09-28221:13:54Z 我为我的问题写了一个程序。但问题是,如何使连杆的长度不变。在我的程序中,链接的长度正在改变。但在现实中… %用拉格朗日力学方法模拟耦合摆;清晰;CLC %广义坐标syms t dum_ theta = str2sym('theta(t)');φ= str2sym(φ(t));%常数,长度,质量,g,几何L_1 = 7.5;l2 = 7.5;L_3 = 7.5;1 = 4;m_2 = 4;m_3 = 4; g = 9.81; d_0 = 15; % rest length spring % positions and velocities as function of the generalized coordinates= x1 = L_1 * cos(theta); y1 = L_1 * sin(theta); x2 = 2 * L_2 * cos(theta); y2 = 0; x3 = 2*L_1 * cos(theta)+L_3*sin(phi); y3 = L_3 * cos(phi); x1_dot = diff(x1, t); x2_dot = diff(x2, t); y1_dot = diff(y1, t); y2_dot = diff(y2, t); x3_dot = diff(x3, t); y3_dot = diff(y3, t); % kinetic and potential energy T = m_1/2 * (x1_dot^2 + y1_dot^2) + m_2/2 * (x2_dot^2 + y2_dot^2)+ m_3/2 * (x3_dot^2 + y3_dot^2); k = 0.5; V = -m_1 * g * y1 - m_3 * g * y3 +... 1/2 * k * (d_0-2*L_1*cos(theta))^2; % determine for which theta = alpha and phi = beta the system is at rest % alpha = sym('alpha'); % beta = sym('beta'); % v = subs(V, {theta, phi}, {alpha, beta}); % [alpha, beta] = vpasolve([diff(v, alpha), diff(v, beta)], [alpha, beta]); % Lagrangian L = T - V; % dL/d(qdot) dL_dthetadot = subs(diff(subs(L, diff(theta, t), dum_), dum_), dum_, diff(theta, t)); dL_dphidot = subs(diff(subs(L, diff(phi, t), dum_), dum_), dum_, diff(phi, t)); % dL/dq dL_dtheta = subs(diff(subs(L, theta, dum_), dum_), dum_, theta); dL_dphi = subs(diff(subs(L, phi, dum_), dum_), dum_, phi); % generalized equations of motion deq_1 = diff(dL_dthetadot, t) - dL_dtheta; deq_2 = diff(dL_dphidot, t) - dL_dphi; % abbreviation of variables variables = {theta, phi, diff(theta, t), diff(phi, t), diff(theta, t, 2), diff(phi, t, 2)}; variables_short = arrayfun(@str2sym, {'x(1)', 'x(2)', 'x(3)', 'x(4)', 'thetaddot', 'phiddot'}); deq_1 = subs(deq_1, variables, variables_short); deq_2 = subs(deq_2, variables, variables_short); % solve for thetaddot, phiddot solution = solve(deq_1, deq_2, str2sym('thetaddot'), str2sym('phiddot')); THETADDOT = solution.thetaddot; PHIDDOT = solution.phiddot; % solve non linear ode system time = linspace(0, 60, 2000); % initial conditions [theta, phi, thetadot, phidot] x_0 = [-pi/4 -pi/4 0 0]; str = ['x_dot = @(t, x)[x(3); x(4);', char(THETADDOT), ';', char(PHIDDOT), '];']; eval(str); [t, q] = ode45(x_dot, time, x_0); % Calculute positions as function of generalized coordinates X1 = L_1 * cos(q(:, 1)); Y1 = L_1 * sin(q(:, 1)); X2 = 2* L_2 * cos(q(:, 2)); Y2 = zeros(size(X2)); X3= 2*L_1 * cos(q(:, 3))+L_1*sin(q(:, 3)); Y3 = L_3 * cos(q(:, 3)); % plot solution set(gcf, 'color', 'w') set(gcf, 'position', [10, 100, 750, 750]) h = plot([]); hold on box on axis equal for i = 1 : numel(time) if ~ishghandle(h) break end cla plot([0, X1(i)], [0, Y1(i)], 'k', 'Linewidth', 2); plot(X1(i), Y1(i), 'o', 'MarkerFaceColor', 'k', 'MarkerEdgeColor', 'k', 'MarkerSize', 4 * m_1); plot([X1(i), X2(i)], [Y1(i), Y2(i)], 'k', 'Linewidth', 2); plot(X2(i), Y2(i), 'o', 'MarkerFaceColor', 'k', 'MarkerEdgeColor', 'k', 'MarkerSize', 4 * m_2); plot([X2(i), X3(i)], [Y2(i), Y3(i)], 'k', 'Linewidth', 2); plot(X3(i), Y3(i), 'o', 'MarkerFaceColor', 'k', 'MarkerEdgeColor', 'k', 'MarkerSize', 4 * m_3); axis([-12, 60, -10, 20]); h = draw_spring_2D([0; 0], [X2(i); 0], 12, 0.5); drawnow end function h = draw_spring_2D(A, B, number_of_coils, y_amplitude) persistent t normalvector_AB = (B - A) / norm(B - A); offset_A = A + 1.25 * normalvector_AB; offset_B = B - 1.25 * normalvector_AB; distance_between_offsets = norm(offset_B - offset_A); t = linspace(-pi, number_of_coils * 2 * pi, 500); x_coordinate_between_offsets = distance_between_offsets * linspace(0, 1, numel(t)); % ratio between x amplitude and y ratio_X_div_Y = 0.5; x = x_coordinate_between_offsets + ratio_X_div_Y * y_amplitude * cos(t); y = y_amplitude * sin(t); coil_positions = [x; y]; rotation_matrix = [normalvector_AB, null(normalvector_AB')]; rotated_coil_positions = rotation_matrix * coil_positions; h = plot([A(1), offset_A(1) + rotated_coil_positions(1,:), B(1)], ... [A(2), offset_A(2) + rotated_coil_positions(2,:), B(2)], 'k'); end 人士Nasirshoaibi https://kr.mathworks.com/matlabcentral/profile/authors/23988109. 标签:kr.mathworks.com, 2005:问题/ 1462384 2021 - 09 - 28 - t12:54:01z 2021 - 09 - 28 - t21:05:00z 默认图像意外弹出 大家好,我为这个愚蠢的问题道歉,但我遇到了一个奇怪的问题,当我关闭一个运行在Matlab (R2016a)上的GUI程序后,突然出现了一个倒置的孩子的图像。在关闭程序之前,我检查了一个在工作空间中打开的.mat结构变量。这个变量包含几个字段,其中一个名为“image”。但是,我没有运行任何代码,也没有在命令窗口中输入“image”。我知道类似的线程已经张贴在复活节彩蛋在Matlab,我仍然不明白如何默认图像可以被调用,而没有代码正在运行。感谢您的解释,谢谢! 亚历克斯·罗西 https://kr.mathworks.com/matlabcentral/profile/authors/5290938 标签:kr.mathworks.com,2005:Question/1462214 2021-09-28T08:57:43Z 2021 - 09 - 28 - t21:00:21z 画一幅24小时的信息图,一小时一小时 嘿,我得到了一个持续时间变量,它有从00:00:00到23:59:59的每条消息的de时间,我想画一个图,显示每小时的消息量。我怎么做呢?我做了这个,但我得到了一个错误:Hours_24=(0:1:23)/24;图(1)绘图(24小时,1小时);显示的错误是:使用绘图向量的错误长度必须相同。 vicente noguer. https://kr.mathworks.com/matlabcentral/profile/authors/21533143 标签:kr.mathworks.com,2005年:问题/1462704 2021-09-28620:56:49Z 2021-09-28620:56:49Z 基于遗传算法的ode系统参数估计(covid -19模型) 亲爱的MATLAB专家!我是来自瑞士,开发COVID-19学校房室模型,需要一些急需帮助!我绝对是一个初学者,当涉及到编码,但我设法我的模型编程。不过,我想,以适应十二模型参数(这里P(1)P(12))描述,以提高模型的准确性传输速率一些官方给出的数据。为此,我已经创建了一个使用遗传算法对任务的程序。问题是,我只有数据三的7个州的(易感,感染,诊断,张爱玲,回收,死,总人口),我不太得到合理的价值 - 我想有一些重大问题。另外,(在这里来自意大利)设置初始人口60e6时,没有任何反应(可能计算是困难和耗时太长?)。任何人都可以更新我的代码,以便它正常工作,并给了我0和1之间的花呢参数?我是真的,真的很感谢!这是我的代码:功能EIDAGG_MODELL_PARAMETER清除关闭所有CLC%7次微分方程来描述模型(E,I,d,A,G1,G2,N)函数M = EIDAGG(P,T)%初始与60e6人口条件, 200 infected and 20 diagnosed %people M0 = [60e6;200;20;0;0;0;60e6]; [~,m] = ode45(@DifEq,t,M0); function dM = DifEq(~,k) dMdt = zeros(7,1); dMdt(1) = -k(1).*(p(1).*k(2)+p(2).*k(3)+p(3).*k(4)+p(12))+p(11).*k(7); dMdt(2) = k(1).*(p(1).*k(2)+p(2).*k(3)+p(3).*k(4))-(p(4)+p(5)+p(6)+p(12)).*k(2); dMdt(3) = p(4).*k(2)-(p(7)+p(8)+p(12)).*k(3); dMdt(4) = p(6).*k(2)+p(8).*k(3)-(p(9)+p(10)+p(12)).*k(4); dMdt(5) = p(5).*k(2)+p(7).*k(3)+p(9).*k(4)-p(12).*k(5); dMdt(6) = p(10).*k(4); dMdt(7) = -p(12).*(k(1)+k(2)+k(3)+k(4)+k(5))+p(11).*k(7); dM = dMdt; end M = m; end %From day 1 to day 20 t = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]; %Official data for I, G1 and G2 for the first 20 days k = [3 0 0 19 0 1 77 0 2 129 1 2 213 1 5 311 1 10 385 3 12 588 45 17 821 46 21 1049 50 29 1577 83 34 1835 149 52 2263 160 79 2706 276 107 3296 414 148 3916 523 197 5061 589 233 6387 622 366 7985 724 463 8514 1004 631]; % [theta,Rsdnrm,Rsd,ExFlg,OptmInfo,Lmda,Jmat]=lsqcurvefit(@kinetics,theta0,t,c); ftns = @(p) norm(k-EIDAGG2(p,t)); PopSz = 500; Parameter = 12; opts = optimoptions('ga','PopulationSize',PopSz,'InitialPopulationMatrix',randi(1,PopSz,Parameter)*1E-3,'MaxGenerations',2E3,'PlotFcn','gaplotbestf'); t0 = clock; fprintf('\nStart Time: %4d-%02d-%02d %02d:%02d:%07.4f\n',t0) % [B,fval,exitflag,output,population,scores] = ga(ftns, 53, [],[],[],[],zeros(53,1),Inf(53,1),[],[],opts) %Parameters should have values between 0 and 1 [p,fval,exitflag,output] = ga(ftns,Parameter,[],[],[],[],zeros(Parameter,1),[1;1;1;1;1;1;1;1;1;1;1;1],[],[],opts); t1 = clock; fprintf('\nStop Time: %4d-%02d-%02d %02d:%02d:%07.4f\n',t1) GA_Time = etime(t1,t0); fprintf('\nElapsed Time: %23.15E\t\t%02d:%02d:%02d.%03d\n',GA_Time) fprintf(1,'\tRate Constants:\n') for k1 = 1:length(p) fprintf(1,'\t\tp(%d) = %8.5f\n',k1,p(k1)) end tv = linspace(min(t),max(t)); Mfit = EIDAGG(p,tv); figure(1) plot(t,k,'p') hold on hlp = plot(tv,Mfit); hold off grid xlabel('Zeit') ylabel('Anzahl Personen') legend(hlp,'Empfänglich','Infiziert','Diagnostiziert','Akut gefährdet','Genesen','Gestorben','Location','NE') function solpts = EIDAGG2(p,t) solpts = EIDAGG(p,t); solpts = solpts([2,5,6]); end end 迪伦 https://kr.mathworks.com/matlabcentral/profile/authors/22066844 标签:kr.mathworks.com,2005:问题/ 1457704 2021-09-21T12:26:13Z 2021-09-28T20:52:55Z 如何链接不同的缩放轴在App Designer? 在应用程序设计器中,我有两个轴。在第一个轴上,我加载一个图像并用imagesc显示它。在第二个轴上,我在图像的y方向绘制强度图。现在我想链接轴,当我放大图像时,我也想放大第二个轴。我使用了linkaxes,但它对我不起作用,因为两个轴的比例不同,并且不能放大预期区域。此外,LinkAxis的一个问题是它以两种方式连接轴,因此当我放大图像轴时,我希望第二个轴受到影响,但我不希望它以另一种方式。我只需要在x方向上连接两个轴。 哈米德窑 https://kr.mathworks.com/matlabcentral/profile/authors/16915966 标签:kr.mathworks.com,2005年:问题/1461994 2021-09-28T00:01:00Z 2021 - 09 - 28 - t20:52:51z 使用坐标向量从矩阵和数组中提取数据 我有一个矩阵我想用两个向量的行和列索引坐标来从它中提取元素。特别地,我可以定义一个3 × 3矩阵为a = [1 2 3;3 4 5;我想用两个向量来提取元素(2,2)(3,1)(1,3)我的目的是用每个坐标的向量来做这个。我一直试着写A([2,3 1],[2,3])但这当然行不通。我认为这是一个基本的sintax问题。非常感谢 阿里尔·凯塞尔·阿克曼 https://kr.mathworks.com/matlabcentral/profile/authors/16086440 标签:kr.mathworks.com, 2005:问题/ 1461954 2021-09-27T22:38:56Z 2021-09-28T20:49:42Z 约束变量值 我正在约束我正在模拟的自治系统动态的常数。在一个用于100次迭代的循环中,我想给出“A”随机值大于零,随机值大于1 / a,“C”随机值大于0.5。我对“a”的代码有一个想法,但我对如何限制“b”和“c”混淆,以便它们是特别大于1 / a和0.5的随机值。这是我现在的代码所拥有的:AS = RAND(1,200)* 1000;对于II = 1:100 A =(ii);b = 1 / a;c = ???结束对这个问题的任何建议都非常感谢。谢谢你。 马修·托托雷拉 https://kr.mathworks.com/matlabcentral/profile/authors/23613239 标签:kr.mathworks.com,2005:问题/ 1462684 2021-09-28T20:31:56Z 2021 - 09 - 28 - t20:45:18z 输入阶跃函数错误 m2 = 350;m1 = 10;ks = 10000;kw = 500000;B = 1000;num = kw * [b ks];DEN = M1 * M2 * [1(b / m1 + b / m2)(ks / m1 + ks / m2 + kW / m1)b * kw /(m1 * m2)(ks * kw)/(m1 * m2)];步骤(num,den)错误消息:>>帮助检查函数“步骤”呼叫中丢失的参数数据类型或缺少参数。帮助(第8行)步骤(num,deN)出错 路加福音Figliozzi https://kr.mathworks.com/matlabcentral/profile/authors/19310586 标签:kr.mathworks.com,2005年:问题/1462694 2021 - 09 - 28 - t20:40:48z 2021 - 09 - 28 - t20:40:48z 这个Matlab例子是错的吗?DVBS2编码/解码 我正在尝试通过我自己的脚本替换函数"bchEncOut = encbch(bbFrameTx);"。金宝app我成功地用我自己的BCH编码和解码位,但我在编码后获得的余数(奇偶校验)位不匹配MATLAB的位。我不能找出区别在哪里,因为我不能窥视MATLAB的BCH函数。我甚至使用了他们使用的相同的代模式。BCH编码细节可在ETSI EN 302 307-1 - DVB-S2 Part 1, pg 23-24中找到。 豪尔赫·丽娜 https://kr.mathwands.com/matlabcentral/profile/authors/20606042 标签:kr.mathworks.com, 2005:问题/ 1462659 2021-09-28T20:09:07Z 2021 - 09 - 28 - t20:35:54z 创建矩阵,所以我的问题是如何通过使用MATLAB在图中编程表D !!!!! 如果列>行%右上角D(行,列)=0,如果列==行%对角D(行,列)=0,如果行>列%左下角如果rem(行,2)==0 D(行,1)=0 D(行,1)=0 D(行,1)=0 D(4,3)=6如果rem(行,2)=0和rem 1 D(行,列,列)=1 D(行,列)=4 D(3,2)=4 elseif rem*2端 贾娜·纳斯雷丁 https://kr.mathworks.com/matlabcentral/profile/authors/22314720 标签:kr.mathworks.com, 2005:问题/ 1462669 2021 - 09 - 28 - t20:17:00z 2021 - 09 - 28 - t20:32:05z 想要计算每一行的平均值,但发现错误“ASCII文件的第2行列数必须与前面的行相同”? 你好,我想问一下我的错误脚本,所以我想从第4列计算文件中每行的平均值,而每行的列数不同。我用这个脚本清楚;clc;格式简短;f=dir('D:\full_Data_Cryosat_c2p004.txt');对于A=1:length(f)D=f(A).name;ff=D(:,19:25);数据=荷载(D);数据(isnan(数据))=0;平均值=零(大小(数据,1),4);平均值(:,1)=数据(:,1);对于j=1:尺寸(数据,1)平均值(j,4)=平均值(数据(j,4:结束));结束文件=fopen(strcat('MSL_',D','w');fprintf(文件“%12.6f%12.6f\n”,平均值”);fclose(文件);附件文件中我的文件的结束示例。但使用ASCII文件full_Data_Cryosat_c2p0004.txt第2行上的加载列数发现类似此错误的错误。必须与前面的行相同。脚本_msl(第11行)中的错误数据=加载(D);谢谢你们帮我,伙计们 Retno Purwaningsih https://kr.mathworks.com/matlabcentral/profile/authors/23260045 标签:kr.mathworks.com,2005:问题/ 1459634 2021 - 09 - 23 - t22:27:09z 2021-09-28620:29:38Z 如何根据条件从单元格数组中删除特定的单元格? 我有一个细胞阵列测试(4x189)。每个单元格是一个大小不同的双数组。我想删除所有的细胞,这样(基本上,他们都是7 x4,相同的,但是不同的数字):南1 0.437500000000000 0南南南南南南南南南719 719年南南南南南南南南南南南南你能,请帮我做呢?非常感谢! MaKo https://kr.mathworks.com/matlabcentral/profile/authors/11330292 标签:kr.mathworks.com,2005:问题/ 1462679 2021-09-28620:21:44Z 2021-09-28620:21:44Z 是否可以删除变体子系统中的输入/输出端口? 大家好!我正在做一个Simulink模型,金宝app它使用不同的子系统,包含不同数量的输入端口的不同块。基于前面的选择,我想把一个子系统的输出和另一个子系统的输入结合起来。但如果有额外的端口,我想通过编程删除它。在图片上额外的端口是褪色的圆圈。有办法做到吗? 亚历山大Rodionov https://kr.mathworks.com/matlabcentral/profile/authors/21603125 标签:kr.mathworks.com, 2005:问题/ 1462474 2021 - 09 - 28 - t15:03:39z 2021 - 09 - 28 - t20:20:20z 如何使用FFTshift产生一个0频率中心的图 这是我的plot,但是我不知道为什么在使用FFTshift函数后,正确的plot被移位了,我该怎么解决这个问题呢?fs = 250;t = (0:1 / fs:(0.1台闲置/ fs));% [0, 0.1] g = sin(2*pi*50*t)+0.3;情节(t、g - o)、标题(“g (t) =罪(2 *π* 50 * t) + 0.3”);包含('时间/ s ');ylabel(“g (t)”);网格n =长度(g);L = 25; Y = fft(g); f = fs*(0:L-1)/L; G = fftshift(Y); fshift = (-n/2:n/2-1)*(fs/n); % zero-centered frequency range powershift = abs(G).^2/n; % zero-centered power figure plot(fshift,powershift,'-o') % zero-centered plot which have shifts grid on figure plot(f, abs(Y),'-o'), % correct frequency plot xlabel 'Frequency (Hz)'; ylabel 'Magnitude'; title('Magnitude Plot'); grid on 燕陈 https://kr.mathworks.com/matlabcentral/profile/authors/23835481 标签:kr.mathworks.com, 2005:问题/ 1462674 2021 - 09 - 28 - t20:19:28z 2021 - 09 - 28 - t20:19:28z 使用grt作为后台线程运行外部模式。薄层色谱的目标 你好,我想知道是否可以用grt激活外部模式的“作为后台线程运行”选项。薄层色谱作为目标。如果不能直接设置是否有。tlc变量可以激活该选项?谢谢! Konstantinos https://kr.mathworks.com/matlabcentral/profile/authors/1558401 标签:kr.mathworks.com, 2005:问题/ 396833 2018 - 04 - 19 - t04:00:00z 2021-09-28T20:18:59Z 如何在Simulink Real Time中访问profiler_object的数据?金宝app 如何在Simulink中访问profiler_object的数据?金宝app在文档//www.tatmou.com/help/releases/R2017b/xpc/api/simulinkrealtime.ta金宝apprget.getprofilerdata.html的Output Arguments部分中,它说“您只能通过调用plot和report函数来访问数据本身。”但是,我想访问报告中的数据进行后期处理。我该怎么做? MathWorks支金宝app持团队 https://kr.mathworks.com/matlabcentral/profile/authors/4622813 标签:kr.mathworks.com,2005:Question/1456724 2021 - 09 - 20 - t07:13:43z 2021-09-28620:16:55Z 这溶液是最好的一个机械模拟的电动线性致动器1)的Simscape多体仿真,2)协同仿真使用NX的Simulink金宝app 您好,我是一名机电一体化工程的本科生,正在做我的论文项目,关于解决方案的方法选择,我有以下几个问题,需要专家的帮助。我想选择最简单的解决方案,以满足我的项目需求。问题描述:该项目是关于创建一个电动执行器的机电Matlab/Simulink模型。金宝app模型应包括机械系统的模型,包括静态和动态摩擦。我之所以想要包含机械特性,是因为我想要有一个接近现实生活的模型来表达机械问题,如摩擦或反弹。1)我已经设计了Simulink控制循环。金宝app2)我想选择一种方法,在这种方法中,我可以轻松地更改不同执行器类型和不同尺寸的参数。我已经把CAD模型设计好了。4)我想将Simulink控制回路与执行器模型集成。金宝app1) Simscape Multibody使用SimMechanics将CAD模型作为XML文件从Autodesk Inventor导入到SimMechanics中。 Questions: The imported model is a black box, I need to go back to the CAD model software whenever I want to perform changes to the parameters/ dimensions right? I need to specify the material properties clearly inside the CAD model software before importing it to SimMechanics? Can I apply friction using external force and torque blocks or do I have to go back to the CAD model and apply friction from there? In my opinion, this method only works when I have standardized mechanical equipments for the actuators so I don't have to go back to the CAD model whenever I want to apply changes right? The imported CAD model should be an assembly drawing right?, if not which type of CAD model I should use? Importing the CAD model as a single mechanical components, step files using the Brick Solid block in SimMechanics, and make the connections between the solid blocks using joints and frames. Questions: Here I must specify the forces and torques between the connected bodies by myself from inside SimMechanics, and I have more control over the joints and the forces applied between the bodies but I don’t have control over the dimensions of the bodies and to do that I have to go to the CAD software and modify it from the CAD software whenever I choose an actuator with different dimensions right? Building the SimMechanics model from scratch. Questions: Works fine when the system is not too complicated, I read that there is also a library for the complicated components, but this will increase the complexity of the system, and building the model using CAD software is much easier right? General questions to Simscape multibody: Can I have the Simscape multibody model inside a subsystem and connect it to the control loop inside the Simulink? The input for the Simscape multibody model will be the load applied and the output will be the position and the speed. What are the benefits if I use the Embedded coder to auto-generate a code from the Simscape multibody model? someone before me wrote the c code for the Simulink model control loop manually so I am thinking of auto-generated code from the Simmechanics model and import it to the software platform that includes the c code of the, what do you think about this option? could you please explain to me the limitations? I guess using Simmechanics with Simulink will require me to select a solver that fits with both sim mechanics and Simulink model right? 2) Co-simulation with Simulink using NX Questions: I heard that NX is more user-friendly than Simmechanics, is that correct? I will have real-time communication between Simulink and NX, what are the limitations? simulation speed? will I face problems with solvers in this situation as both NX and Simulink have their own solvers? I won't be able to auto-generate a code from the Simulink model that includes NX right? If I change the dimensions in NX it will automatically update the new information with Simulink right? Can I add the dynamic and static friction from NX? Thank you very much in advance for answering my questions and help me to pick up the best solution to my problem. Reham阿布·拉希德 https://kr.mathwands.com/matlabcentral/profile/authors/23852083 标签:kr.mathworks.com, 2005:问题/ 1462664 2021-09-28620:11:53Z 2021-09-28620:11:53Z 在Simulink编码器中使用自己的自定义“rt_main.c”和系统目标文件grt.tlc金宝app 您好,我想知道是否有可能使grt.tlc目标指向自己的自定义“rt_main.c”在我自己的项目路径,而不是在Matlab的安装路径的预定义“rt_main.c”。基本上在所生成的生成文件的线181应最终:MAIN_SRC = <我自己paht> /rt_main.c谢谢! Konstantinos https://kr.mathworks.com/matlabcentral/profile/authors/1558401 标签:kr.mathworks.com,2005:Question/1459284 2021-09-23T13:12:47Z 2021-09-28620:11:05Z 如何计算Simscape多刚体中多刚体的质心角动量 如何计算Simscape多刚体中多刚体的质心角动量 Jingchao李 https://kr.mathworks.com/matlabcentral/profile/authors/15471591 标签:kr.mathworks.com, 2005:问题/ 1462504 2021 - 09 - 28 - t15:35:13z 2021 - 09 - 28 - t20:11:00z 用之前的数据填充缺失的数据来进行计算 嗨。我有一组来自3天时间段的Sp02数据,我使用它来计算低氧债务。数据存储在单个数组中,我将该数组划分为不同长度的特定时间块,并对每个数据块进行计算。在每个数据块的某些部分,有更大的错误值部分,我想用之前的非错误值填充,这样我就可以在整个数据期间进行计算。我想用错误数据开始之前的最后一个值替换这些坏数据部分,这将取决于坏数据部分在数组中的位置。如果有多个错误值分布在数据数组中,我如何在坏数据开始之前提取最后一个值,并使用单个值替换坏数据?**坏数据是等于500或低于60的值。示例:数据的坏段长度为1 ~ 500。我有从10到30,150到175,220到240,380到410的坏数据。我想从单元格9,149,219和379中取值,并将这些值放入坏的部分,即,单元格9的值将填充10到30,单元格149的值将填充150到175,以此类推.... How would I go about this? Thank you! 艾玛阿特金森 https://kr.mathworks.com/matlabcentral/profile/authors/7193419 标签:kr.mathworks.com, 2005:问题/ 417660 2018 - 08 - 16 - t04:00:00z 2021 - 09 - 28 - t20:08:46z 如果我没有句柄,我如何以编程方式关闭我的“等待栏”? 我使用的一个函数是每次打开一个新的等待栏:waitbar(0, & # 39;请稍等……& # 39;)因为我将从脚本文件中重复调用这个函数,所以我将打开许多这样的等待栏窗口。在我的脚本中添加以下内容并没有帮助:我怎样才能关掉“waitbar";windows编程? MathWorks支金宝app持团队 https://kr.mathworks.com/matlabcentral/profile/authors/4622813 标签:kr.mathworks.com, 2005:问题/ 698720 2020-12-20T17:01:57Z 2021 - 09 - 28 - t20:08:29z 等号右侧输出数量不足,无法满足分配 clc;清除所有;define_constants;tic global FPA Lb Ub Q1 result fprintf('\nReal Power Loss Minimization\n');mpc =工况(“case_ieee30”);NB = (mpc长度。总线(:,PD));问= (mpc长度。分支(:1));NG =长度(mpc.gen (: 1));基于牛顿拉夫森法的载荷流分析 opt = mpoption('VERBOSE',0,'OUT_ALL', 0); results=runpf(mpc,opt); PL=sum(results.branch(:, PF)+ results.branch(:, PT)); fprintf('\nReal power loss %9.4f MW\n',PL); fprintf('\nLoss Minimization Using Flower Polination Algorithm\n'); % Dimension of the search variables Dim=12; popsize=50; N_iter=200; Lb=[50 20 15 10 10 12 0.95 0.95 0.95 0.95 0.95 0.95]; Ub=[200 80 50 35 30 40 1.1 1.1 1.1 1.1 1.1 1.1]; [result , MinCost] = FPA(Dim,popsize,N_iter,Lb,Ub); // ERROR OCCURS HERE This program is about using FACTS devices and Flower Pollination Algorithm but when I try to run this code I get error ERROR: Insufficient number of outputs from right hand side of equal sign to satisfy assignment. Error in File (line 21) [result , MinCost] =FPA(Dim,popsize,N_iter,Lb,Ub); Ashwin年代 https://kr.mathworks.com/matlabcentral/profile/authors/17484469 标签:kr.mathworks.com,2005年:问题/1455004 2021 - 09 - 16 - t22:36:00z 2021 - 09 - 28 - t20:08:12z 两个砖实体的输出几何形状可以合并成一个几何形状吗? 我使用刚性变换将两个Simscape多体砖块实体连接在一起,形成一个单一的固体刚性单元。我想结合输出的几何形状的砖固体到一个单一的几何和运行它的空间接触力块。一个相同的连体砖将连接到相反的端口。现在我知道我可以使用4个空间接触力块来运行4个不同的导出几何组合:G1的U1, U2乐队的< - > G1 (Geometry1单位1地理1单元2)G2的U1, U2乐队的< - > G1 G1 (U1, U2乐队的< - > G2 G2的U1, U2乐队的< - > G2快但这真的开始混乱的单位和砖每单位数量的增加。是否有任何方法来组合导出的几何图形,或者最好的方法是创建单元是Solidworks,并将其作为一个单一单元带入Simscape ?提前谢谢。约翰 约翰O https://kr.mathworks.com/matlabcentral/profile/authors/4995717 标签:kr.mathworks.com, 2005:问题/ 1461414 2021 - 09 - 27 - t08:41:52z 2021 - 09 - 28 - t20:06:41z 如何使用半径/中心位置的for循环在一个圆内绘制多个圆? 嗨,我想在扇区更大的圆圈内绘制多个等化的小圆圈。每个较小圆圈的中心作为相对于更大的Cirlce的中心的径向距离而变化,从附加图像中可以看出。并且较小的圆圈将填充彩色图,范围为0至1.该整个绘图将在1到100秒的时间循环中。如果有人可以分享思想,如果可能的话,这将是很大的帮助。谢谢!sand Sandeep库马尔 https://kr.mathworks.com/matlabcentral/profile/authors/14361853 标签:kr.mathworks.com, 2005:问题/ 826975 2021 - 05 - 11 - t04:49:24z 2021-09-28T20:05:49Z 将复数转换为整数 我有一个指数函数和Cordic指数函数。我看到幂级和CORDIC EXP Func的输出中的差异 - Theta = [-PI:PI / 4:PI] Y = exp(Theta)Y1 = Cordiccexp(θ)Cordic指数仅适用于作为指数工程的复杂数字复杂和真实/整数数字问题 - 如何(数学)将Cordiccexp与缩略量函数相同 慢跑 https://kr.mathworks.com/matlabcentral/profile/authors/7949​​204 标签:kr.mathworks.com, 2005:问题/ 1462654 2021 - 09 - 28 - t20:04:57z 2021 - 09 - 28 - t20:04:57z 使用带有自定义工具链的Simulink编码器构建后自动执行?金宝app 你好,我正在尝试配置我的自定义工具链,以便在用Simulink Coder构建后执行我的应用程序。金宝app自动导出一些环境变量也是必要的。我认为我需要找到一种方法来影响makefile生成过程,以便从244行中的“all: build”到“all: build execute”,但我还没有在tc中找到任何选项。这这。任何提示都将非常感谢!谢谢! Konstantinos https://kr.mathworks.com/matlabcentral/profile/authors/1558401 标签:kr.mathworks.com,2005:问题/ 1462174 2021 - 09 - 28 - t07:22:52z 2021 - 09 - 28 - t20:03:40z 为什么索引从前两列返回值,而不是从整个矩阵? 大家好,我已经将文本文件中的2列向量(分别包含lat-lon值)与矩阵形式的2个变量(也包含lat-lon值)进行了匹配。此文件的输出为lat_txt=tab.lat;%提取纬度值3798x1 double lon_txt=tab.lon;%的列提取经度值3798x1 double lat_i=imresize的列(M_lat,[2030 1354],“双线性”);%M_lat是406x270。所以,我对它进行了插值。lon_i=imresize(M_lon,[2030 1354],“双线性”);%M_lon是406x270。所以,我对它进行了插值将文本文件中的值与lat_i和lon_i mask=ismembertol(lat_txt,lat_i)和ismembertol(lon_txt,lon_i);%匹配给出3798x1逻辑(所有值均为真)接下来,我要做索引,以找出另一个包含整数(0,1,2,3,4)的矩阵“z”中的值。Vol=z(遮罩);%z=2030x1354问题是Vol只返回z的第1列和第2列的值。兹附上z中的数据。它的第一列包含0。所以,Vol显示3798x1,其中第1行到第2030行都是0,然后它开始从第2列和z的第一行获取值。为什么会这样?任何帮助都将不胜感激。 周词 https://kr.mathworks.com/matlabcentral/profile/authors/22927747 标签:kr.mathworks.com,2005:问题/ 1462564 2021 - 09 - 28 - t17:43:40z 2021-09-28 20:00:08Z 向现有表中添加一行 你好,我之前问了一个问题,有人给了我一个文档的链接,这很有帮助,但对当前的问题没有帮助。我有一份名单,上面有21个学生的名字,学号,4个实验成绩1个期中成绩和4个考试成绩。我们被要求添加一行,其中包含我的名字、学生编号和其他分数。我们怎么做呢?我搜索,只找到了矩阵的答案。我们应该使用哪种语法呢? 阿卜杜拉AYYILDIZ https://kr.mathworks.com/matlabcentral/profile/authors/15041773 标签:kr.mathworks.com, 2005:问题/ 1462629 2021-09-28819:32:20Z 2021 - 09 - 28 - t19:55:58z 我有两个相关的优化算法问题。为什么零矩阵被初始化?什么是在这些功能方面的意义/目的是什么? 例如,在这个代码片段中,这个Dimension是什么意思,为什么要使用它。function [LB,UB,Dim,F_obj] = Get_F(F) switch F case 'F1' F_obj = @F1;磅= -100;乌兰巴托= 100;昏暗的= 10;为什么会产生这些零?目的是什么?我们可以初始化1而不是0吗?代码片段。昏暗的= 10; Best_P=zeros(1,Din) 法扎居尔 https://kr.mathworks.com/matlabcentral/profile/authors/13439873 标签:kr.mathworks.com,2005年:问题/184123 2015 - 03 - 20 - t06:05:38z 2021-09-28T19:53:07Z 解矩阵方程? 我试图解决使用MATLAB以下矩阵方程:AU + UB = C A,B和C是已知的矩阵和我要解决的矩阵U. A和B是正方形的,对称的,并且三对角。有没有人对如何使用MATLAB来有效地解决这个系统的建议吗?感谢您的帮助提前! https://kr.mathworks.com/matlabcentral/profile/authors/4248814 标签:kr.mathworks.com, 2005:问题/ 1462644 2021 - 09 - 28 - t19:52:19z 2021 - 09 - 28 - t19:52:19z 工业机械异常检测,02_建模。mlx: extractLabeledData 大家好,在“工业机械异常检测”中,livescript“Part02_Modeling.mlx”第8行是:X=extractLabeledData(featureTrain,“Label”,“After”);当我尝试运行这一行时,matlab返回“unrecognized function or variable extractLabeledData”=>extractLabeledData似乎不为matlab帮助所知,也不是变量。我是否遗漏了什么,如何克服此问题?向Juliette致以最良好的问候 朱丽叶soula https://kr.mathworks.com/matlabcentral/profile/authors/12535701 标签:kr.mathworks.com, 2005:问题/ 1462634 2021-09-28T19:33:14Z 2021-09-28T19:49:42z 如何编写一个函数,输入秒和产出天数,小时和分钟的数量? 我在编写一个函数时感到困惑,该函数可以以秒为输入,并提供以天、小时、分钟和秒为单位的输出(如果适用)。 贾斯汀•李 https://kr.mathworks.com/matlabcentral/profile/authors/19646870 标签:kr.mathworks.com, 2005:问题/ 1462619 2021 - 09 - 28 - t19:20:03z 2021 - 09 - 28 - t19:46:39z 如何从数据提示函数中提取索引值到变量或数组? 当我使用数据提示工具选择图像的像素时,我需要索引值。我需要获取位于白色方框内的像素的所有索引值。我将记录466.833,405.573等,直到我获得白色方形框中的像素的所有索引值。是否有一种方法可以在不手动录制它们的情况下提取所有索引值数据? 加布里埃尔·李 https://kr.mathworks.com/matlabcentral/profile/authors/19665315