https://au.mathworks.com/matlabcentral/answers/questions MATLAB的答案——新问题 2021 - 09 - 23 - t19:57:04z 标签:au.mathworks.com, 2005:问题/ 1459549 2021 - 09 - 23 - t19:57:04z 2021 - 09 - 23 - t19:57:04z 如何积累值从1到最后时间 我有超过10000个文件,我想所有这些时间之间积累给定变量的值,然后在一个阴谋的形象。我能怎么做?文件是1000 x1000矩阵。 粉红色的花 https://au.mathworks.com/matlabcentral/profile/authors/18011377 标签:au.mathworks.com, 2005:问题/ 1459339 2021 - 09 - 23 - t14:48:07z 2021 - 09 - 23 - t19:56:26z 如何分配索引函数处理? 我试图近似函数的积分“fun_1”和“fun_2”在给定的区域。在一个“f”似乎好了。但我想用一个向量的“f”本月一个数字“TL值的向量。我不知道如何处理这个问题。代码:γ= 1.4;R = 286;T = 273.15;c₁= sqrt(γ* R * T);c₂= c₁h = 0.00163;rho_s = 2750; M = 0; m = rho_s*h; eta = 0.01; E = 72e9; v = 0.30; D = E*h^3/(12*(1-v^2)); f_c1 = c_1^2/(2*pi)*(m/D)^0.5; f_c2 = c_2^2/(2*pi)*(m/D)^0.5; f = linspace(55,7700,n); for i=1:numel(f) omega(i) = 2*pi*f(i); phi_2 = @(phi_1,beta) acos(c_2/c_1.*cos(phi_1).*(1+M.*cos(beta).*cos(phi_1)).^-1); tau = @(phi_1,beta) ((0.5*(rho_2*c_2/(rho_1*c_1))^0.5... +0.5*(rho_1*c_1/(rho_2*c_2))^0.5*sin(phi_2(phi_1,beta))./(sin(phi_1).*(1.0... +M*cos(beta).*cos(phi_1)))+0.5*eta*m*omega(i)*(rho_1*c_1*rho_2*c_2)... ^-0.5.*(f(i)/f_c2).^2.*sin(phi_1).*cos(phi_2(phi_1,beta)).^4).^2).^-1; fun_1 = @(phi_1,beta) tau(phi_1,beta).*sin(phi_1).*cos(phi_1); q_1(i) = integral2(fun_1,12*pi/180,90*pi/180,0,2*pi); fun_2 = @(phi_1,beta) sin(phi_1).*cos(phi_1); q_2 = integral2(fun_2,12*pi/180,90*pi/180,0,2*pi); tau_avg = q_1/q_2; TL = -10*log10(tau_avg); end 穆罕默德SD https://au.mathworks.com/matlabcentral/profile/authors/15860640 标签:au.mathworks.com, 2005:问题/ 1459544 2021 - 09 - 23 - t19:55:49z 2021 - 09 - 23 - t19:55:49z 我怎么能近似非线性函数使用RBF内核和亚当参数optimasation算法? 你好,假设在一个2 d平面点集(在2 d平面协调2079点),我打算近似函数,F,这样xn + 1 = F (xn),其中xn是当前点和xn + 1是下一个点。我怎么能使用RBF内核实现MATLAB的函数近似(前10 RBF的中心和内核宽度)和亚当优化算法来减少这种损失函数?我将感激如果你能阐明这个问题。附件是数据。 球风硬朗 https://au.mathworks.com/matlabcentral/profile/authors/23196602 标签:au.mathworks.com, 2005:问题/ 1459159 2021 - 09 - 23 - t10:54:07z 2021 - 09 - 23 - t19:55:26z 玩矩阵和数字值 我想有一个矩阵X有一个word等ABCD这个词已经12号标志矩阵X, X = 0(5,5)我有desided将如:启动一个B C D开始0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 B C D 0 0 0 0 0 0 0 0 0 0我将从开始到12号的,把X(开始)位置然后我从a到B,把12号X (a, B)位置等等的行和列,我怎么能把这些职位的数量,我怎么能告诉矩阵,例如位置X(3、3)应该使用,把数量,如果在给定单词你来到BB,或者在这个例子中我们有ABCD,我怎样才能把矩阵,当你来到CD然后把12 X的值(4、5)?矩阵X需要了解,如果我开始一个字所以把12号位置X(1、2),那么我来AB,所以我从a到B,所以价值12应该放在X(2,3)等等,直到ABCD词完成(这意味着为公元前做这一次和一次CD,并保存矩阵X的新valuses 12神在这些位置。有点难以解释,但是我希望它让感觉 Nicle戴维森 https://au.mathworks.com/matlabcentral/profile/authors/23541484 标签:au.mathworks.com, 2005:问题/ 1459539 2021 - 09 - 23 - t19:53:56z 2021 - 09 - 23 - t19:53:56z 错误使用arrayfun所有输入参数必须是相同的大小和形状 我试图在一个字符串转换为二进制数字代码:sbox = [12; 5、6、11、9 0; 10; 13; 3、14、15; 8; 4, 7; 1; 2);f = @ (x) dec2bin (x, 4);l = arrayfun (f sbox UniformOutpot,假);但我得到以下错误错误使用arrayfun所有输入参数必须是相同的大小和形状。之前的输入大小16尺寸1。输入# 3大小1错误在nl(第3行)l = arrayfun (f sbox UniformOutpot,假);我也试着输入sbox =(1, 1, 1),但它给了我同样的错误 伽柏Riccardi https://au.mathworks.com/matlabcentral/profile/authors/14065658 标签:au.mathworks.com, 2005:问题/ 1456819 2021 - 09 - 20 - t09:48:34z 2021 - 09 - 23 - t19:51:07z 我怎么能画出衍生品解决方案的组件系统的常微分方程? 我有以下代码函数求解常微分方程的一个系统:功能dwdt =耦合(t, w)β= 1 + exp (- t);δ= 2 + exp (- t);伽马= exp (- t);f1 = 1 / (t + 1);f2 = 1 / (t + 2);r1 = 1 / (t + 2) ^ 2;r2 = 2 / (t + 1) ^ 2;dwdt = 0 (4,1);dwdt (1) = w (2) f1 * w (1);dwdt(2) =β* w (1) f1 * w(2) +伽马* w (3) r1 * w (1) ^ 2; dwdt(3)=w(4)-f2*w(3); dwdt(4)=gama*w(1)-delta*w(3)-f2*w(4)-r2*w(3)^2; xdot=w(2)-f1.*w(1); end With the commands >> tspan = [0 50]; z0=[0.01 0.01 0.01 0.01]; [t,z] = ode45(@(t,z) coupled(t,z), tspan, z0); figure plot(t,z(:,1),'r',t,z(:,3),'b'); legend('x(t)','y(t)'); I have plotted the first w(1) and the third w(3) components of the solution. But I want also to plot on the same interval, with the same initial data, the derivatives of w(1) and w(3), i.e., dwdt(1)=w(2)-f1*w(1) and dwdt(3)=w(4)-f2*w(3) If I add the command line plot(t,z(:,1),'r',t,z(:,2)-f1*z(:,1),'b'); I get the message Unrecognized function or variable 'f1'. How dwdt(1) and dwdt(3) can be plotted ? Cris19 https://au.mathworks.com/matlabcentral/profile/authors/12867802 标签:au.mathworks.com, 2005:问题/ 1459509 2021 - 09 - 23 - t19:30:29z 2021 - 09 - 23 - t19:49:40z 在MatLab帮助策划扩散方程 我目前正在扩散分布为一个工程类项目。类需要我使用MatLab的许多问题,一个程序,我有最小的经验。目前,我试图找出如何图菲克第二定律(方程C (x, t) = N * e ^ (- x ^ 2 / (4 dt)) / sqrt (4 pidt), D和N给出常数。)。我在想如果有人能教我如何在MatLab绘制这个函数或提供一个模板脚本使用。最终结果应该类似这样的:我将不胜感激任何帮助或暗示有人可以提供。非常感谢你,祝你有美好的一天。 安东尼通力 https://au.mathworks.com/matlabcentral/profile/authors/23967977 标签:au.mathworks.com, 2005:问题/ 1459534 2021 - 09 - 23 - t19:49:36z 2021 - 09 - 23 - t19:49:36z 如何选择多组数据点的散点图(如浇注在细胞流式细胞仪/排序)? 我有2列向量绘制散点图。这是细胞分类数据。我希望能够门数据通过多个多边形在特定区域的情节和出口选定的数据点。这是可能的吗?我用R2019b。 汉娜哈勒 https://au.mathworks.com/matlabcentral/profile/authors/16336921 标签:au.mathworks.com, 2005:问题/ 1458779 2021 - 09 - 22 - t19:24:35z 2021 - 09 - 23 - t19:49:32z 找到所需数量的高频率值直方图 我有一个60032 x1矩阵。与数据,我做了一个柱状图。我想要三个最重复值。我希望本中心,这样我可以画出另一个图。谁能帮我做这个吗?提前谢谢:) pratapaneni奇 https://au.mathworks.com/matlabcentral/profile/authors/19746832 标签:au.mathworks.com, 2005:问题/ 1458749 2021 - 09 - 22 - t18:13:57z 2021 - 09 - 23 - t19:48:53z 合适的二阶微分方程参数数据 我有一个二阶微分方程的一些可调参数,我需要适合一些数据。我花了一些时间在其他帖子的答案(Torsten StarStrider尤其是,一些关键的助攻),终于得到我脚本运行,但事情不是正确的。我怀疑这是我失踪传入y (t)数据的函数微分方程组,但我不确定。我希望有人能明白我失踪。数据拟合函数应该遵循数据更为紧密。数据是y vs t, diff. eq. y”= a, y的函数”。这是我的脚本:清除所有关闭所有clc Time_data = (0.8273;1.1104;1.3940;1.6584; 1.8764 ; 2.0173 ; 2.1239 ; 2.2343 ; 2.3498 ]-.35 ; % independent variable, experimental data Y_data = [ 1.5025 ; 2.4650 ; 3.4274 ; 4.3976 ; 5.3600 ; 6.3302 ; 7.2965 ; 8.2590 ; 9.2253 ] ; % dependent variable, experimental data a_m_guess = 200 ; %init guess for a_m, the parameter to be fitted a_m = lsqcurvefit(@(am,t)FittingFunction(am,t),a_m_guess,Time_data,Y_data) ; figure %plot the data as well as the fitted function hold 'on' plot(Time_data, Y_data, 'ko', 'DisplayName','data') plot_times = linspace(0,max(Time_data),100) ; plot(plot_times, FittingFunction(a_m,plot_times),'-r','DisplayName','fit') ; xlabel('time'), ylabel('Y'), legend('Location','NorthWest') function F = FittingFunction(a_m,Time_data) init_slope = 3.39 ; %This is a boundary condition tspan = Time_data ; InitConds = [0 init_slope] ; %y(t=0)=0, y'(t=0)=Us [t_atTdata,y_atTdata] = ode45(@(t,y)SysOfDiffEqns(t,y,a_m),tspan,InitConds) ; F = y_atTdata(:,1) ; %return y only, not y and y' end function Y = SysOfDiffEqns(t,y,a_m) % y''=a(a_m,y') is the 2nd order diff eq. % a is a function of a_m() and y'(t) % need to fit a_m to available pairs of t_data and y_data % to make system of 1st order deff eqs, % substitute Y(1) = y % Y(2) = y' % makes a system of two first order ODEs: % Y(1)' = Y(2) % Y(2)' = a Y = zeros(2,1) ; % initialize output matrix D = 8.7049 ; % constant input parameter U_m = 0.95*D ; % costant input parameter U = y(2) ; % U is dy/dt a = a_m*((D-U)/(D-U_m))*exp((U-U_m)/(D-U_m)) ; %acceleration function, only valid for U 克里斯托弗·奈尔 https://au.mathworks.com/matlabcentral/profile/authors/2570891 标签:au.mathworks.com, 2005:问题/ 1459529 2021 - 09 - 23 - t19:38:22z 2021 - 09 - 23 - t19:43:51z 连接失败错误4频道 我已经成功地创建了第一个Thingspeak频道和Mbar上传数据(1变量)。这工作得很好。这是作品的上传功能——Python3覆盆子π。def uploadData(压力,cTemp): #上传不使用Thingspeak.com cTemp mBar =压力timenow = datetime.now ()。strftime (“% Y - % m - H % d %: % m: % S ') params = urllib.parse。urlencode ({field1的:mBar,“关键”:关键})标题= {“Content-typZZe”:“应用程序/ x-www-form-urlencoded”,“接受”:“text / plain”}康涅狄格州= http.client.HTTPConnection (api.thingspeak.com: 80)试题:conn.request(“文章”、“/更新”,params,标题)响应= conn.getresponse() #打印(mBar)打印(str (response.status) + " " + str (response.reason) + " " + str (timenow) + " " + str (mBar)) # + " " + str(临时))#打印(“\ n”)数据= response.read () conn.close()除了:打印(“连接失败”)我现在试图上传我创建了一个新的渠道,与4个变量,所有从BM688传感器,得到一个“连接faiiled”错误每次上传的代码调用函数。代码的拒绝前往工作好,在控制台显示所有4个变量,并将数据保存到一个csv文件。这是上传功能不工作:def uploadData(温度、压力、湿度、air_quality_score): #上传到Thingspeak.com Mbars =压力timenow = datetime.now ()。strftime (“% Y - % m - H % d %: % m: % S ') params = urllib.parse。urlencode ({field1:温度、“field2”: Mbars,“field3”:湿度、“field4”: air_quality_score,“关键”:关键})标题= {“Content-typZZe”:“应用程序/ x-www-form-urlencoded”,“接受”:“text / plain”}康涅狄格州= http.client.HTTPConnection (api.thingspeak.com: 80)试题:conn.request(“文章”、“/更新”,params,标题)响应= conn.getresponse() #打印(mBar)打印(str (response.status) + " " + str (response.reason) + " " + str (timenow) + " " + str (Mbars)) # + " " + str(临时))#打印(“\ n”)数据= response.read () conn.close()除了:打印(“连接失败”)我不确定参数行代码是正确的,但它不产生任何语法错误,所以我认为这应该是好的。我试着改变参数行1变量,但这并不奏效。我使用API的关键是正确的。 Can someone try to point me in the right direction to find what is wrong please! I would be very grateful! Tim Kendal 蒂姆·肯德尔 https://au.mathworks.com/matlabcentral/profile/authors/23832925 标签:au.mathworks.com, 2005:问题/ 1458619 2021 - 09 - 22 - t13:53:18z 2021 - 09 - 23 - t19:43:36z LSTM网络实现FPGA 这就跟你问声好!我想实现一个LSTM网络的FPGA预测缺陷的检测。我看到深度学习HDL工具箱不支持lstmlayer sequenceInputLa万博1manbetxyer。我的问题是:有一种方法可以在FPGA上实现一个LSTM网络和/或从它生成硬件描述语言(VHDL) / Verilog代码,从Matlab ?提前谢谢! 萨米Foery https://au.mathworks.com/matlabcentral/profile/authors/19831395 标签:au.mathworks.com, 2005:问题/ 1456569 2021 - 09 - 20 - t00:34:25z 2021 - 09 - 23 - t19:38:05z 如何最好地修改FFT本振幅在传输线(DFT,窗口)? 我想做以下:读mono 44.1 khz的音频文件。切这个音频简而言之重叠(视窗化?)段。在这些片段做FFT。最好读的振幅频率垃圾箱。修改一些这些频率振幅的垃圾箱(基于我写一个算法)。与传输线重建音频段这些修改的振幅频率垃圾箱。一首诗在一起这些音频段音频文件的修改以一定频率振幅在特定时间点用最小的副作用。现在我是刚刚开始用Matlab和正在寻找任何相关例子我可以学习如何做。另外,有些事情我还不清楚关于窗口和FFT。窗口。 Am I correct in thinking that for the above example I can best window and overlap the short segments in such a way that by simply adding the windowed overlapping segments I get the original audio again? So for instance if I use triangular windowing with 50% overlap on both sides, that I will get the original audio back once I stitch these segments together again? Are there other windows that will work in this way? (for instance Hann?) Or am I altogether thinking wrong on how to best use windowing for what I want to do? For FFT. I understand that the first half of the resulting frequency bins are the bins with the relevant amplitudes (for FFT length of 512, bins 0 to 255 represent the relevant frequencies and contain their amplitudes, bin 256 contains the nyquist if I understood correctly). The second half of the bins (257 to 512), can I just ignore those when modifying the amplitude of the first half? For instance if I have a 1kHz sine wave, do the FFT, modify the amplitude of the bin that contains the 1kHz tone by dividing the amplitude in half, then do an IFFT. Will the endresult be that 1kHz sine reduced in amplitude by 6dB or am I missing something? Many thanks for any help / pointers! 毕达哥拉斯 https://au.mathworks.com/matlabcentral/profile/authors/17242127 标签:au.mathworks.com, 2005:问题/ 1459524 2021 - 09 - 23 - t19:38:05z 2021 - 09 - 23 - t19:38:05z MATLAB硬件键许可 我们的网站有几个分布式dekstop pc和笔记本电脑,我们利用现场数据进行处理。这些电脑是无法接触到网络。MATLAB提供的硬件关键使用证》模型,如usb软件狗,这样的情况吗?我们想让每一个用户都有自己的电子狗,这样他们就可以从任何电脑的访问MATLAB 泰勒Roberg https://au.mathworks.com/matlabcentral/profile/authors/17300906 标签:au.mathworks.com, 2005:问题/ 1459519 2021 - 09 - 23 - t19:36:44z 2021 - 09 - 23 - t19:36:44z 有办法设置颜色标签属性在macOS MATLAB ? 有一组为MATLAB macOS的颜色标记文件或文件夹吗?我觉得这将是非常有用的显示哪些文件或文件夹已加工或他们的地位在一个工作流。 克里斯·霍夫曼 https://au.mathworks.com/matlabcentral/profile/authors/5796515 标签:au.mathworks.com, 2005:问题/ 1459514 2021 - 09 - 23 - t19:36:18z 2021 - 09 - 23 - t19:36:18z 使用fminbnd函数问题 这个问题给出了方程,要求生成一个用户定义函数n = 2和6;n作为输入向量和r是输出向量。范围从1到5 r值。它还要求图每个n的U (r)曲线在相同的情节和马克最小的点。我写这个代码:函数r_min = Problem_4_15 (n, r1, r2)关闭所有U = @ (x) 4 * ((1 / x) ^ (2。* n) - (1 / x) ^ (n));选择= optimset(“显示”、“iter”);[r_min, U_min] = fminbnd (U, r1, r2,选项);%错误发生rg = linspace (r1, r2);Ug = U (rg);情节(rg, Ug, r_min U_min,“o”)网格包含(分子间距离r *) ylabel(势能U)标题(Lennard-Jones-type无量纲)传奇(函数U,最低r) Matlab报告以下错误:Problem_4_15([2 - 6], 1、5)错误使用fminbnd(第238行)用户提供的目标函数必须返回一个标量值。 Error in Problem_4_15 (line 5) [r_min,U_min]=fminbnd(U,r1,r2,options); Part of the fminbnd function code, where line 238 appears: % Check that the objective value is a scalar if numel(fx) ~= 1 error('MATLAB:fminbnd:NonScalarObj',... % Line 238 getString(message('MATLAB:optimfun:fminbnd:NonScalarObj'))); end How can I solve this problem to make the code work? Thanks in advance. 米蕾Peixoto罗德里格斯 https://au.mathworks.com/matlabcentral/profile/authors/20485828 标签:au.mathworks.com, 2005:问题/ 1456469 2021 - 09 - 19 - t20:59:14z 2021 - 09 - 23 - t19:34:22z 场上的颜色值 我做了一个简单connectfour matlab。有一种可能性,当一个细胞从场上的价值是1,使其红色ans的时候1 -黄色?背景和前景颜色需要改变。 1月沼 https://au.mathworks.com/matlabcentral/profile/authors/19832514 标签:au.mathworks.com, 2005:问题/ 1459504 2021 - 09 - 23 - t19:30:27z 2021 - 09 - 23 - t19:30:27z 删除不需要的数据从一个直方图 在给定下面的柱状图,我想删除所有数据低于4000在Y轴上。如何做到这点呢?提前谢谢:) pratapaneni奇 https://au.mathworks.com/matlabcentral/profile/authors/19746832 标签:au.mathworks.com, 2005:问题/ 1459499 2021 - 09 - 23 - t19:29:55z 2021 - 09 - 23 - t19:29:55z 如何提取关键字之间的最后声明代码? 我创建了一个程序,读取和提取的一个不同侧面代码的某些部分。问题是评论也包含我的‘结束’searchword和停止之前,我想要它。filetoread = fileread (sample_code.m)关键字= ' mybeginningsearchword pulledText =字符串(extractBetween (filetoread,关键字,“结束”,“边界”,“包容性”)当我运行它对于大多数代码的一部分,它的工作原理,但一些文件已经“结束”这个词在评论。导致关键词临时临时雨水F 12%几率在79% % M %当前天时间12:30 %这就是搜索结束这部分丢失的天气多云%当前天气结束%,我希望它搜索结束我试图使用一个模式使用帕特=换行符+“结束”,添加(换行符,“结束”)我试着使用“结束”。这工作文件但不工作之前的文件工作。我可以把字符串和搜索第二或n时间结束出现但不会为其他文件,没有第二个。有搜索到的块。我认为'(?(电导率)expr1 | expr2)”在regexp的路径我需要,但我没有技能或知识的总和。 耶利米Beatima https://au.mathworks.com/matlabcentral/profile/authors/13360744 标签:au.mathworks.com, 2005:问题/ 1459454 2021 - 09 - 23 - t17:58:19z 2021 - 09 - 23 - t19:29:10z 循环单元阵列,由矩阵的每一个细胞 我写了一个循环,从24 x1细胞中提取数据数组,其中每个细胞36000 x16双表。我想找到12列的最大值在每个24细胞并将它们存储在一个矩阵。但是我得到一个错误的数组索引必须是正整数或逻辑值。' % %循环从细胞中提取数据的数组%结果是24 x1单元阵列。每个单元由36000乘16双表k = 1:元素个数(结果)t = {k:}结果;%计算单元内提取每一个矩阵%值感兴趣的是在列12 temp = t(2:最后,十二12);%找到最大值max_column = max(临时);结束 学历Peralai Ravisundar https://au.mathworks.com/matlabcentral/profile/authors/11499519 标签:au.mathworks.com, 2005:问题/ 99067 2013 - 03 - 05 - t15:36:00z 2021 - 09 - 23 - t19:27:32z 为什么我收到许可证管理器错误9 ? 当我试着推出MATLAB,我得到以下错误:错误:许可证付款失败了。无效的主机。许可证管理器错误9 MathWorks支万博1manbetx持团队 https://au.mathworks.com/matlabcentral/profile/authors/4622813 标签:au.mathworks.com, 2005:问题/ 243914 2015 - 09 - 19 - t06:42:09z 2021 - 09 - 23 - t19:24:48z 与matlab的附加元件安装在哪里?我看不出他们在应用程序选项卡。 你好我买了计量经济学、商人、优化。等8附加元件,但我不认为app标签图标。我找不到添加文件当我searech matlab指出在c: \。请帮助! 丹尼尔·菲茨西蒙斯 https://au.mathworks.com/matlabcentral/profile/authors/6760205 标签:au.mathworks.com, 2005:问题/ 1459459 2021 - 09 - 23 - t18:04:47z 2021 - 09 - 23 - t19:15:47z 两个3 * 3矩阵乘法在matlab中使用for循环。 你好;我需要两个3 * 3矩阵的乘法([3 3]*[3 3])使用for循环。谢谢。实际上我要做matlab矩阵乘法的代码。我们将两个矩阵作为一个来自用户的输入并执行在matlab矩阵乘法。这个可以用于数组在matlab乘法。 maede曼迪 https://au.mathworks.com/matlabcentral/profile/authors/23455172 标签:au.mathworks.com, 2005:问题/ 1459494 2021 - 09 - 23 - t19:11:40z 2021 - 09 - 23 - t19:12:50z 我如何删除表,以满足特定的条件由Matlab在Mac Excel ? 你好!我有一个excel文件几十或几百张,其中一些空的,我怎么删除它们,使用MATLAB ?也,我怎么删除表满足特定的条件?例如,如果B1的价值等于B2的价值,我想删除表。非常感谢! ! 尖吻鲭鲨 https://au.mathworks.com/matlabcentral/profile/authors/11330292 标签:au.mathworks.com, 2005:问题/ 1459474 2021 - 09 - 23 - t18:29:03z 2021 - 09 - 23 - t19:11:51z sudo安装不打开安装程序(MATLAB 2021 b) 我在Ubuntu 20.04试图安装MATLAB 2021 b。安装脚本时不会打开安装程序GUI使用sudo运行。安装后运行sudo。/我的终端冻结像掉进了一个怪圈。注意,安装程序GUI打开时。/没有sudo运行安装。另外,我最近安装了2021没有问题。任何想法如何我可以运行安装程序是苏吗? ClaytonA https://au.mathworks.com/matlabcentral/profile/authors/2345083 标签:au.mathworks.com, 2005:问题/ 300733 2016 - 08 - 24 - t12:42:48z 2021 - 09 - 23 - t19:11:09z Powergui FFT分析工具 我想用powergui块进行fft分析。我测量三相信号使用电流测量块连接到一个范围。运行仿真后,powergui的fft分析并没有显示任何东西,名称和输入字段显示“空-”。谁能请建议解决这个问题,尽快。 路加福音Perabo https://au.mathworks.com/matlabcentral/profile/authors/8064743 标签:au.mathworks.com, 2005:问题/ 1459484 2021 - 09 - 23 - t18:54:42z 2021 - 09 - 23 - t19:03:44z 经济学模型令牌(交易crypto-coins)——的建议方法 大家好,我试图建立一个仿真软件模型tokenomics /令万博1manbetx牌加密货币经济学(我新signalprocessing)只对matlab / simulink,没有额外的工具箱。我的问题:基本方法:事件、离散或连续吗?我要介意错误使用不同appraoches和解决?这可能没有Sim事件吗?购买/出售或市场行为——我的想法:白噪声作为测试的启动/集成/计算不同的资金池,我目前使用触发子系统为市场价格计算和设定频率设置为每个购买/出售事件时间窗口。顺便说一句:如何使用事件……?有人做类似的事情吗?我期待你的评论。我将联系模型并定期更新。 安德烈亚斯 https://au.mathworks.com/matlabcentral/profile/authors/2619528 标签:au.mathworks.com, 2005:问题/ 1459489 2021 - 09 - 23 - t18:59:49z 2021 - 09 - 23 - t18:59:49z 不能购买MATLAB在线课程。 Im使用matlab软件和matlab购买基本的学生在线学习课程,但是我的订单状态仍正在处理´后一天。是这样,因为我使用学生许可我个人gmail地址吗?我的学校没有学校的电子邮件地址。 万有谷 https://au.mathworks.com/matlabcentral/profile/authors/23555645 标签:au.mathworks.com, 2005:问题/ 1459369 2021 - 09 - 23 - t15:38:00z 2021 - 09 - 23 - t18:58:53z 确定的顺序压扁数组使用冒号 你好,我需要帮助了解Matlab应用压扁的数组。我知道它使用Fortran的方式获取信息,因此,鉴于天数组,维度的顺序,如期间会改变速度。置将1、2、3等。(而不是N, N, N - 2等如C-manner)。人们所预料的,当一个人试图减少数组的维度使用冒号,减少将以相同的方式访问。然而这似乎不是。例如,我们有一个数组维度(X, Y, Z)。如果我们使用一个(:,:,:)得到数组的副本。如果我们使用一个数组(:,)我们希望与维度(X * Y, Z), i, j元素指向(我div mod X, Y, j)的元素。然而,不,我们得到的是一个数组(X, Y * Z),与我,j元素指向(i, j mod Y, j div Y)元素的为什么会这样?是否可以确定/改变这种行为? Example: x = cat(3,eye(3), eye(3), eye(3)); x(:,:) ans = 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 whereas I would expect 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 same as when there is the 2 d analog x = eye(3); x(:) 1 0 0 0 1 0 0 0 1 Vassilis Lemonidis https://au.mathworks.com/matlabcentral/profile/authors/19910901 标签:au.mathworks.com, 2005:问题/ 1458884 2021 - 09 - 23 - t00:42:56z 2021 - 09 - 23 - t18:58:35z 建议加快循环 我需要运行以下代码参数amnt等于10 ^ 8。循环是非常昂贵的,我写了时间执行的函数参数,amnt。图显示了执行时间的函数矩阵的大小(amnt)和运行12助手(核心)。通过回归似乎当amnt = 10 ^ 8需要超过一个月。简而言之,这段代码的目的是本4矩阵,然后找到最常见的本。我问:谁能推荐一个循环进行向量化方法(s)或另一种的速度呢?使用LocB ismember函数是由Matlab作为标记效率在使用parfor循环。我不明白如何更好地利用它,即修复它。有什么建议吗?谢谢! % Test problem for troubleshooting rang = 100; sz = 10^8; % Some random matrices for this test case. mat1t = randi(rang,[sz 1]) + 50*rand([sz 1]); mat2t = randi(rang,[sz 1]) + 40*rand([sz 1]); mat3t = randi(rang,[sz 1]) + 30*rand([sz 1]); mat4t = randi(rang,[sz 1]) + 20*rand([sz 1]); times = [0,0,0,0,0,0,0,0]; for tm1 = 1:length(times) % Loop just used for timing purposes. amnt = 5^tm1; % Ultimately I want this to be 10^8, i.e. the entire matrices. %amnt = numel(mat1(:)); % ALL mat1 = mat1t(1:amnt); mat2 = mat2t(1:amnt); mat3 = mat3t(1:amnt); mat4 = mat4t(1:amnt); NP = 50; dl = max([range(mat1),range(mat2),range(mat3),range(mat4)])/NP; tol = dl/2; low = min([min(mat1),min(mat2),min(mat3),min(mat4)]); high = max([max(mat1),max(mat2),max(mat3),max(mat4)]); gridp = [low:dl:high]'; datap = [mat1 mat2 mat3 mat4]; whatBin = zeros(size(datap)); tic for k = 1:4 % Loop over the 4 matrices gridp1 = [gridp zeros(size(gridp))]; datap1 = [datap(:,k) zeros(size(datap(:,k)))]; tolp1 = [tol Inf]; [LIA,LocB] = ismembertol(gridp1,datap1,1,'ByRows',true,'OutputAllIndices',true,'DataScale', tolp1); parfor kj = 1:length(mat1(:)) % Loop over all matrix elements for kkj = 1:numel(LIA) % Loop over all bins if ismember(kj,LocB{kkj}) % The use of LocB here is flagged by Matlab as being inefficient. How to fix? whatBin(kj,k) = kkj; break end end end end % End of loop over all 4 matrices % Find the unique rows of the whatBin matrix [u,I,J] = unique(whatBin, 'rows', 'first'); npix = size(u,1); paretoPix = zeros([npix 1]); % Number of pixel occurances for a vector of metrics. parfor j = 1:npix paretoPix(j) = nnz(all(whatBin == u(j,:),2)); end Results = [u paretoPix]; Results = sortrows(Results,-1*(size(whatBin,2)+1)); times(tm1) = toc; end % end of times loop semilogx(5.^(1:length(times)),times,'-o') xlabel('Matrix Elements') ylabel('Time (s)') In this figure, the matrix size is the parameter amnt. Using these values in the curve fit app, the regression equation (2nd order polynomial) indicates that when amnt=10^8 it will take ~month! 保罗Safier https://au.mathworks.com/matlabcentral/profile/authors/12547459 标签:au.mathworks.com, 2005:问题/ 164670 2014 - 11 - 28 - t18:04:50z 2021 - 09 - 23 - t18:53:37z 光耦合器simpowersystem和simelectronics之间的联系 嘿伙计们我想做一些类似于下图所示。我的困难是在控制部分。所有的电路模拟使用simpowersystem图书馆。但在控制部分有光耦合器只能simelectronics库中找到。那么我想这两个库之间的联系的呢?在签证官图电压控制。所以我会比较这与参考电压和通过PI控制器,该控制器的输出电流信号。这是问题!这是光耦合器的输入电流信号。我尝试了S-PS仿真软件信号转换为物理信号输入,但我不知道我是万博1manbetx否做得对,它不工作。 <> 达尼洛NASCIMENTO https://au.mathworks.com/matlabcentral/profile/authors/1189152 标签:au.mathworks.com, 2005:问题/ 1427 2011 - 02 - 16 - t09:53:30z 2021 - 09 - 23 - t18:52:06z 关于MATLAB让你沮丧什么? 我爱MATLAB。它是如此快速和容易编写软件来做你想做的事情。具有优良的调试和分析工具。它是跨平台的,使代码易于分享(假设每的其他人有分叉的许可)。它与其他软件的接口。然而,有些事情惹恼我。我想听到其他人什么事情惹恼他们关于MATLAB。- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -因为这个线程已经变得如此之大是缓慢的加载和导航。请在第二个线程发布新的答案。- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 奥利弗·伍德福德 https://au.mathworks.com/matlabcentral/profile/authors/1073021 标签:au.mathworks.com, 2005:问题/ 733483 2021 - 02年- 02 - t02:10:52z 2021 - 09 - 23 - t18:31:42z 未识别的函数或变量“斜坡” %的例子$信号= y一代(t) = 3 r (t + 3) 6 r (t + 1) + 3 r (t) 3 u(条t - 3) %清除所有;clf;t = 0.01;t = 5: Ts: 5;%万博1manbetx %斜坡信号的支持日元=斜坡(t) 3, 3);%的斜率和先进的3 y2 =斜坡(t 6 1);%的斜率6和先进1 y3 =斜坡(t, 3);%的斜率3%单位阶跃与支持(5,5)y4 = 3 * u万博1manbetxnitstep (t, 3);% 3和幅度推迟3 y = y₁+ y2 + y3 + y4;情节(t、y); %please tell me how to correct this Ramavatar辛格 https://au.mathworks.com/matlabcentral/profile/authors/20727379 标签:au.mathworks.com, 2005:问题/ 1458519 2021 - 09 - 22 - t11:44:27z 2021 - 09 - 23 - t18:31:28z 我怎么从.dat提取特定的行数据的值是变化的文件? 你好,我有一个大.dat文件(附件),我只是感兴趣与特定值的行约束数据的redesing如下所示。这是.dat中的数据文件,如下所示:$ NAME = D_Tstep1_OP_01约束数据1.95063723 e + 00美元改变TOPODRV NAME = M_OP_01 15932 2 1.77575504 e 03 -3.88161658 e-01 17231 2 1.80259062 e 03 -3.91727572 e-01 15291 2 -1.13913637 e-02 2.21583925 e + 00 . . . .约束元数据名称= D_Tstep2_OP_01 3.95063723 e + 00 . . . .从上面的.dat文件,我只需要D_Tstep1_OP_01 = 1.95063723 e + 00的数据值90步(如D_Tstep1_OP_01、D_Tstep2_OP_01 ......., D_Tstep90_OP_01)。说我怎么提取数据有不同的分隔符从.dat文件并将其保存在excel中?我需要excel的数据在以下格式:名称约束数据D_Tstep1_OP_01 1.95063723 e + 00 D_Tstep2_OP_01 3.95063723 e + 00 . . . .D_Tstep90_OP_01 5.95063723 e + 00%这是最后一个值在文件中我很感激你的帮助。提前谢谢你。 Shubham Gorde https://au.mathworks.com/matlabcentral/profile/authors/12763251 标签:au.mathworks.com, 2005:问题/ 1459214 2021 - 09 - 23 - t12:03:43z 2021 - 09 - 23 - t18:30:26z 如何使用Parfeval执行同步并行计算? 嗨,我运行2函数运行一个无限循环中使用parfeval函数提供的并行计算工具。这两个函数之间的同步可能吗?如果是的,那么有什么方法可以建立一个信号量机制或外部控制依赖这些函数的运行时期间?我一直试图让输出使用fetchOutputs返回信号控制导致阻塞调用,扰乱了我的代码的执行。有没有其他方法使用并行计算工具箱来实现这一目标?感谢和问候,Kaushik高达H N Kaushik高达 https://au.mathworks.com/matlabcentral/profile/authors/13295094 标签:au.mathworks.com, 2005:问题/ 1454949 2021 - 09 - 16 - t20:03:12z 2021 - 09 - 23 - t18:29:33z 启用和关闭按钮的功能 你好,我想创建一个GUI,由二维平面和一个游标。用户将光标和探索飞机。基于飞机用户可能下降的位置销通过单击“销”按钮,3针。移动到下一个试验中,“下一个”按钮将启用基于两个条件:1)这三个针都下降2)飞机的1/3。我试图实现这段代码中,70行,但我没有看到“下一个”按钮点亮时的条件履行。谁能告诉我问题是什么,我该如何修复它?代码:函数dragpoints_2 (xData、yData xLower, xUpper, yLower,是的)全球point_count x y全球数分全球区域面积= (1/3)* (20 * 20);assignin(“基地”,“分”,分)数= 0;point_count = 0;点= 0 (1000 2); % First column is x and the second is y %Setting Up The Correct Directories setenv('PATH', [getenv('PATH') ':/usr/local/bin']); addpath('/usr/local/lib/openmha/mfiles/') javaaddpath('/usr/local/lib/openmha/mfiles/mhactl_java.jar') openmha = mha_start; %Starts openMHA software mha_query(openmha,'','read:final_dc_live.cfg'); %Selects the .cfg file to read if nargin == 0 xData = 0; yData = 0; xLower = -20; xUpper = 20; yLower = -20; yUpper = 20; end figure('unit','normalized',... 'position',[.1 .1 .8 .8]); handles.hbutton1 = uicontrol('style','pushbutton',..., 'unit','normalized',..., 'innerposition',[0.02 0.55 .08 .08],'fontname','Arial',... 'fontsize',36,'backgroundcolor','green','string','Pin','Tag','1'); handles.hbutton2 = uicontrol('style','pushbutton',..., 'unit','normalized',..., 'innerposition',[0.02 0.25 .08 .08],'fontname','Arial',... 'fontsize',36,'backgroundcolor','blue','string','Next','Tag','2','Enable','Off'); x = xData; y = yData; ax = axes('xlimmode','manual','ylimmode','manual'); ax.XLim = [xLower xUpper]; ax.YLim = [yLower yUpper]; %can change the marker size or marker type to make it more visible. %Currently is set to small points at a size of 2 so is not very visible. handles.hbutton1.Callback = {@button_callback}; line(x,y,'color','r','marker','.','markersize',105,'hittest','on','buttondownfcn',@clickmarker) %Callback For Start, Stop, Quit Buttons function button_callback(src, handles, ~) global x global y global count global area_explored global area buttonID = src.Tag; %Sets the tag for the buttons stateII= str2num(buttonID); %Converts the tag to a state %Drops the pin when clicks "Save" if (count == 3 || area_explored > area) set(handles.hbutton1,'Enable','Off') set(handles.hbutton2,'Enable','On') else if stateII == 1 % Dropping a pin xy = get(gca,'CurrentPoint'); x = xy(1,1); y = xy(1,2); %location = [x y] viscircles([x,y], 2); count = count + 1; end end function clickmarker(src,ev) set(ancestor(src,'figure'),'windowbuttonmotionfcn',{@dragmarker,src}) set(ancestor(src,'figure'),'windowbuttonupfcn',@stopdragging) function dragmarker(fig,ev,src) global x global y global points global point_count global area_explored %This calculates the area explored by the user x_range = range(points(:,1)); y_range = range(points(:,2)); area_explored = x_range * y_range %get current axes and coords %h2 = findall(groot,'Type','Axes'); buttonID = src.Tag; %Sets the tag for the buttons stateII= str2num(buttonID); %Converts the tag to a state if stateII == 1 h1 = gco; x = h1.XData; y = h1.YData; end try h1 = gca; x = h1.Children.XData; y = h1.Children.YData; catch try x = h1.Children(2).XData; y = h1.Children(2).YData; catch end end %coords=get(h1,'currentpoint'); xy = get(gca,'CurrentPoint'); x_curr = xy(1,1); y_curr = xy(1,2); %get all x and y data %check which data point has the smallest distance to the dragged point x_diff=abs(x-x_curr); y_diff=abs(y-y_curr); [~, index]=min(x_diff+y_diff); %create new x and y data and exchange coords for the dragged point x_new=x; y_new=y; x_new(index)=x_curr; y_new(index)=y_curr; point_count = point_count + 1; points(point_count,1) = x_curr; points(point_count,2) = y_curr; %update plot set(src,'xdata',x_new,'ydata',y_new); function stopdragging(fig, ev, ~) set(fig,'windowbuttonmotionfcn','') set(fig,'windowbuttonupfcn','') Thanks! Chemay绍拉 https://au.mathworks.com/matlabcentral/profile/authors/12108431 标签:au.mathworks.com, 2005:问题/ 1459349 2021 - 09 - 23 - t15:19:45z 2021 - 09 - 23 - t18:29:02z 离散型低通滤波器 嗨,我想上一次一个离散的低通滤波器一阶离散时间积分器。我想过滤频率5赫兹。过滤方程y (k) = (1 a) * y_ (k - 1) + * y_ (k),一个是(T_s / (T_f + T_s))我要如何选择T_f和T_s过滤5赫兹以下谢谢 Bleron Kroni https://au.mathworks.com/matlabcentral/profile/authors/24016059 标签:au.mathworks.com, 2005:问题/ 1459469 2021 - 09 - 23 - t18:21:55z 2021 - 09 - 23 - t18:22:42z isKey搜索键的关联如何映射(containers.Map) 如果M是一个关联映射(containers.Map)和k是一个潜在的关键,到底当我执行isKey (M, k) ?似乎键(M)的输出命令不管“自然”的顺序是M的特定类型的关键。这是否意味着isKey二进制搜索吗?还是isKey线性搜索吗?还是isKey做别的?还是取决于细节,我没有包括在这里吗?谢谢! 赫伯特三角龙 https://au.mathworks.com/matlabcentral/profile/authors/23502735 标签:au.mathworks.com, 2005:问题/ 1459464 2021 - 09 - 23 - t18:21:34z 2021 - 09 - 23 - t18:22:28z 策划多个地块使用相同的方程 我试图重现这样的代码。我的想法是要为每个情节point重新编写一个for循环,但我假设有一个实现更加高效和有效的途径。你可以为我带来这一观点吗?拜托,请让我知道如果有什么我可以修改代码以使它更好,或者更有效率,我只是想变得更好。谢谢你的时间!这是代码代表一个阴谋。clc;清晰;关闭所有;抽搐; Yieldstr = 1000; %KPa f = 0.8; f1 = 0.2; f2 = 0.8; g = 0.6; g1 = 0.4; g2 = 0.4; h = 0.4; h1 = 0.6; h2 = 0.2; l = 0.5; l1 = 0.4; l2 = 0.8; m = 0.6; m1 = 0.2; m2 = 0.1; n = 0.4; n1 = 0.7; n2 = 1; PStress = zeros(134343,3); PStress12 = zeros(134343,2); PStress23 = zeros(134343,2); Shear12 = zeros(42334,2); Shear23 = zeros(42334,2); minValue = -4*Yieldstr; maxValue = 4*Yieldstr; clear i fidelity = Yieldstr/125; i=1; j=1; k=1; for sigx = minValue:fidelity:maxValue for sigy = minValue:fidelity:maxValue for sigz = 0:0 Hill12 = sqrt(((1/2).*((g+h).*sigx.^2)) + ((1/2).*((f+h).*sigy.^2)) - h.*sigx.*sigy); if Hill12 < Yieldstr if (sigx==sigy) %stops code else PStress12(i,1) = sigx; PStress12(i,2) = sigy; i = i + 1; end end end end end G = boundary(PStress12,0); plot(PStress12(G,1),PStress12(G,2),'LineWidth',1.75); axis('tight') title('\sigma_y vs \sigma_x') legend() xlabel('\sigma_x (KPa)'); ylabel('\sigma_y (KPa)'); 凯文Hanekom https://au.mathworks.com/matlabcentral/profile/authors/22062976 标签:au.mathworks.com, 2005:问题/ 279131 2016 - 04 - 15 - t09:04:22z 2021 - 09 - 23 - t18:20:34z 荷兰中学学生资格牌照吗? 你好,我们是两个学生在荷兰参加中学。我们在第五年,编写一个扩展的文章。我们想使用MATLab程序在我们的研究中,和我们学校是学生愿意支付€35版的MATLab。然而,该网站提到学生包只提供给学生参加学位提供研究所。MATLab的网站并不占荷兰学校系统,不同于美国系统,我们想知道我们是否有资格购买和使用这个学生包。你的真诚,以赛亚van Hunen和基努连接器的学生“Middelbare学校“道尔顿海牙,第五年。 以赛亚书范Hunen https://au.mathworks.com/matlabcentral/profile/authors/7974075 标签:au.mathworks.com, 2005:问题/ 116425 2014 - 02年- 17 - t10:28:05z 2021 - 09 - 23 - t18:18:50z 嗨,我正在做我最后一年的项目在虹膜识别,我有本地化的虹膜,我需要打开虹膜图像成矩形图像。我无法找到任何方法. .所以请帮助我 嗨,我正在做我最后一年的项目在虹膜识别,我有本地化的虹膜,我需要打开虹膜图像成矩形图像。我无法找到任何方法. .所以请帮助我。 Jeevan https://au.mathworks.com/matlabcentral/profile/authors/5069956 标签:au.mathworks.com, 2005:问题/ 641925 2020 - 11 - 09 - t05:00:00z 2021 - 09 - 23 - t18:12:59z 硅MATLAB支持苹万博1manbetx果mac电脑吗? mac苹果硅处理器如苹果M1有两种方式来运行应用程序。应用程序构建为苹果硅运行本地,而应用程序为英特尔处理器运行在罗塞塔2环境建造。MATLAB支持哪种方法呢?万博1manbetx MathWorks支万博1manbetx持团队 https://au.mathworks.com/matlabcentral/profile/authors/4622813 标签:au.mathworks.com, 2005:问题/ 1456299 2021 - 09 - 19 - t09:45:46z 2021 - 09 - 23 - t18:06:47z 如何制作一个时间戳的策划(m: s: ms) ? 你好,我有一个应用程序,它被时间价值在TCP(分钟,秒,毫秒)。这个值是生成在matlab模块发送数据。现在我想把这个值来做一些策划的时间戳。我怎么能存档吗?我试着:%保存数据矩阵%让策划时间戳数据。时间戳= datetime (0, 0, 0, 0 app.minute app.second, app.millisecond);%保存数据矩阵进行进一步的操作(绘图、保存)app.x (app.counter:) =(时间戳、accx accy、accz eulx,欧盟,eulz);app.counter = app.counter + 1;但它不工作。非常感谢。 Kaan脊柱 https://au.mathworks.com/matlabcentral/profile/authors/15066066 标签:au.mathworks.com, 2005:问题/ 1457594 2021 - 09 - 21 - t09:44:24z 2021 - 09 - 23 - t18:03:17z 三维表面的粗糙度 大家好,我想计算突出(或粗糙度)从3 d对象从空间协调(x, y, z)云。数据代表一个封闭的3 d表面粗糙的物体,这意味着噪音/粗糙度z分量并不是唯一的,所以它不能代表正如预计z (x, y)表面。这是一个真正的封闭外壳在欧式空间数据集。目标是水印的区域会有高的本地噪声值。我做了这个与z (x, y)表面,但我找不到,,如果有任何在社区内朝这个方向努力。如果任何人有关于这个评估指针我提前谢谢你! Matheus de洛伦佐 https://au.mathworks.com/matlabcentral/profile/authors/22796528 标签:au.mathworks.com, 2005:问题/ 1458409 2021 - 09 - 22 - t09:24:09z 2021 - 09 - 23 - t17:58:13z 非凸目标函数 你好,我有一个目标函数,在一些地区不是凸。有什么方法可以放松,然后使用fmin反对吗?谢谢! !这里有一段代码写证明二阶导数为特定temeprature T_ext是负面的:cell_capacity = 45;T_ext = 25;T = 273.15 + T_ext;B2 = -0.0067 * T + 2.35;% % B1 = 8.89 * 10 ^ 6;b = -0.0053;c = 0.7871; B1=a*T^2+b*T+c; syms x f=B1*exp(B2*x/cell_capacity)*(x^2/(2*0.8*cell_capacity)); p=diff(f); q=diff(p); ff = matlabFunction(q); x=(0.1*cell_capacity):1:(0.9*cell_capacity); figure(1) title('Second derivative for different temperatures') xlabel('Current (Ah)') ylabel('second derivative') plot(x, ff(x)) hold on ff_final=ff(x)'; 尼古拉·Spiliopoulos https://au.mathworks.com/matlabcentral/profile/authors/9122757 标签:au.mathworks.com, 2005:问题/ 1459434 2021 - 09 - 23 - t17:24:58z 2021 - 09 - 23 - t17:55:24z 我想一个函数来删除重复的值,但它消除了重复的值。 我想一个函数来删除重复的值,但它消除了重复的值。也就是说,如果我有一个向量a =(1 2 3 4 5 6 6 6 7),我想要一个输出等于B = (1 2 3 4 5 7)。注意,我要得到相同的顺序与原始矢量,我不想让它来组织。也就是说,如果我有一个向量a =[7 8 9 6 5 2 2 2 1],最后我想要一个向量等于B = [7 8 9 6 5 1]。 胡格内de Souza法 https://au.mathworks.com/matlabcentral/profile/authors/17842373 标签:au.mathworks.com, 2005:问题/ 1459449 2021 - 09 - 23 - t17:52:51z 2021 - 09 - 23 - t17:52:51z 如何使用parpool独立表情吗 如何评估独立表达当地parpool笔记本电脑。当我尝试以下代码,parpool闲置。如何问matlab独立评估表达式。x = 1;y = 2;z = 3;parpool(“当地”,4)s = x + y + z;= 2 * x + z;w = 3 * y + 2 * z; 奥立 https://au.mathworks.com/matlabcentral/profile/authors/5968107 标签:au.mathworks.com, 2005:问题/ 1459374 2021 - 09 - 23 - t16:05:16z 2021 - 09 - 23 - t17:52:44z 如何生成c代码dsp.MedianFilter吗? 我试图从dsp.MedianFilter生成代码。我相信我在这里不能遵守规定的局限性://www.tianjin-qmedu.com/help/coder/ug/use-system-objects-in-matlab-code-generation.html然而,我相信错的到底是什么。当我试图生成代码,我得到:“错误决定类型输入movMed: medObject”。“类dsp。不支持MedianFilter编码器。万博1manbetx类型,因为它是一个处理类。”Am I setuping this up correctly? Thanks. testbench.m t = 1:1:12; medObject = dsp.MedianFilter('WindowLength',4); for i = 1:12 fil(i) = movMed(i, medObject); % end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ movMed.m function f = movMed(t, medObject) f = medObject(t); end 追逐鲍曼 https://au.mathworks.com/matlabcentral/profile/authors/22516663 标签:au.mathworks.com, 2005:问题/ 1459444 2021 - 09 - 23 - t17:31:14z 2021 - 09 - 23 - t17:52:01z 我如何在脚本中执行不定积分? 我有问题17行运行这个脚本,它说我需要更多的输入参数....推力,time_Rocket_Mass都是常数。我试着英尺= int(英尺)英尺= int(英国《金融时报》,t),但同样的问题发生我怎么能无限期集成英尺呢? ? ? 동훈이 https://au.mathworks.com/matlabcentral/profile/authors/21481421 标签:au.mathworks.com, 2005:问题/ 1456944 2021 - 09 - 20 - t13:27:43z 2021 - 09 - 23 - t17:49:45z 我如何扩展网格或冲浪图? 在你开始阅读这个问题之前,我想让你知道,在这个问题上我有一些好建议在这个链接。已经有一段时间我试图解决这个问题但没有任何显著的进步!任何帮助将不胜感激。总之:我有几个点的上半部分旋转椭球体的非均匀分布。我需要画出一半旋转椭球体的一部分。我使用了griddata()函数在matlab找到一组均匀分布的表面情节能够通过使用网格()函数。然而,问题是,我不能得到一个完整的表面图! ! !请参阅附上的照片到一个更好的理解。我需要情节只有一半冲浪,但我附加图与双方为了更清楚half-surf缺失的一部分。点解下列方程:变量是十五,青年志愿,z万博 尤文图斯v。 I solved the equation by using the solve() function for zv. Then, I generated xv and yv variables by using the linspace() and meshgrid() functions, and calculated the corresponding zv variables by using subs() function. Anyone have any ideas on how I can extend the surf to be complete? I tried several times to generate more points by solving the equation in several ways, but I could not get a satisfactory result. Also, I used some extrapolation functions in Matlab as scatteredInterpolant() with different methods linear and natural, but the output was something with many extra meshes. Any ideas? I need extend the surf to be complete (actually, half of it). 马吉德 https://au.mathworks.com/matlabcentral/profile/authors/5991895