//www.tianjin-qmedu.com/matlabcentral/answers/questions MATLAB答案-新问题 2021 - 09 - 03 - t15:56:47z 标签:www.tianjin-qmedu.com, 2005:问题/ 1446139 2021 - 09 - 03 - t14:07:52z 2021 - 09 - 03 - t15:56:47z 切断新的实体到达服务器,直到服务器再次完全空 在这种情况下,请假设实体创建者创建实体的速度比服务器服务实体的速度快得多,导致服务器在模拟启动后很快就满容量。我的问题是:我希望服务器开始接受实体,直到它达到最大capa。然后,在它为所有实体提供服务并且所有实体都离开之前,它不应该接收任何新的实体(因此,在块中的实体数量回到零之前,不应该有新的实体到达)。然后它应该再次充满,直到它充满,以此类推。我不想要的是,当一个被服务的实体离开时,一个实体从实体创建者那里重新到达。服务器的capa应该填满到最大值,新的授权到达服务器应该被切断,直到服务器再次完全空。我不知道如何创造一个这样的机制。实体门块让我很累,但我不能让它工作。如果有人能提供一个解决办法,我将不胜感激。提前谢谢! 罗伯特Kugler //www.tianjin-qmedu.com/matlabcentral/profile/authors/10712813 标签:www.tianjin-qmedu.com, 2005:问题/ 1445479 2021 - 09 - 02 - t16:56:21z 2021 - 09 - 03 - t15:56:21z 与数据吻合 我有一个实验数据,我想做cole cole拟合使用方程εr(ω) = ε' r(ω) - jε " r(ω) = εro + Δεr/1 + (jωτ)^1-α +σs/jωε0我试图用曲线拟合工具箱做这个,但不能做它。然后我要从方程中求出系数。我附上了csv文件和代码,我使用这个:fid = fopen('Ist.csv');= textscan (fid, ' % % f % f’,‘Headerlines’,1,“分隔符”,',');文件关闭(fid);%date = datevec(out{1});col1 =出{1}col2 = {2} Matlab的方程形式:输出= e + d / ((1 - (j。*ω。* t) ^ (1 a))) + s / (j。*ω。* es); 茉莉花Boparai //www.tianjin-qmedu.com/matlabcentral/profile/authors/11011672 标签:www.tianjin-qmedu.com, 2005:问题/ 1446214 2021 - 09 - 03 - t15:53:05z 2021 - 09 - 03 - t15:53:05z 应用程序设计器:触发ValueChanged回调文本编辑字段的默认值 在附加的简单App Designer App enter_name。mlapp中,您在顶部字段中输入您的名字,然后按enter键后,名称出现在底部字段中。我正在用默认名称“David”填充顶部字段。现在,如果您单击顶部字段并按Enter(有意接受默认名称),InputValueChanged回调将永远不会被调用,并且底部字段中也不会出现David的名字。在InputValueChanged回调被触发之前,您需要在顶部字段中添加或编辑一些内容。是否有办法改变或覆盖这种行为? 大卫Aronstein //www.tianjin-qmedu.com/matlabcentral/profile/authors/12854886 标签:www.tianjin-qmedu.com, 2005:问题/ 1445989 2021 - 09 - 03 - t10:40:25z 2021 - 09 - 03 - t15:51:48z Simscape专用电力系统中电动汽车承载能力评估 你好,我正在尝试对配电系统中的电动汽车(EV)进行承载能力分析,换句话说,就是电力系统在不违反电压限制和其他电能质量指标的情况下能够处理的电动汽车总负载。利用Simscape中的专用电源系统库开发了基于组件的电动汽车充电器负载模型。现在我将在IEEE-123总线系统中模拟这个负载模型,并在Simulink中进行负载流分析。万博1manbetx问题是,我必须迭代增加配电网中的电动汽车数量,以找出最大电动汽车数量之后,电能质量恶化。换句话说,我想把开发的电动汽车负荷模型连接到配电系统的随机节点上。在每次迭代期间,我想自动连接额外的EV负载模型到系统中的一个节点。你能建议这是否可以在Simulink中实现吗?万博1manbetx Haroon征服者 //www.tianjin-qmedu.com/matlabcentral/profile/authors/22459364 标签:www.tianjin-qmedu.com, 2005:问题/ 1445134 2021 - 09 - 02 - t08:41:21z 2021 - 09 - 03 - t15:47:13z 最小化SimEvent模型的初始化时间 我正在做一个项目,我应该使用SimEvent模拟一个生产设施。模型本身按预期工作,但随着它的增长,初始化时间与运行时相比非常长。目前,初始化需要大约100-120秒,编译需要20秒,运行时大约0.2秒。所以设定的模拟时间不受影响,例如我可以模拟1年或20年的时间大致相同。在模型中,我使用了多个“simulink函数”(大约35个),它们都包含M万博1manbetxATLAB函数,调用它们是为了打开实体门,并在存储中保持一定数量的实体(就像这个示例:https://se.mathworks.com/help/simevents/ug/use-an-attribute-queue-to-model-a-storage-tank.html)或定义组装顺序。对于程序集,我使用复合实体创建器以及资源获取/发布器和实体服务器。每个实体都是最终产品的一部分,最终产品加起来总共有35个,它们在制造过程中被组合在一起。这是一个简单的模型。我尝试过使用性能顾问和禁用零交叉,改变为离散变量步长求解器,只编译时,发现/知道依赖关系,但它只帮助一点。然而,当只运行像mark和按F9这样的几行来更改参数时,初始化时间只需要大约20秒,但如果我运行脚本,它将需要大约100-120秒(脚本只包含对变量的赋值)。 This would be fine if I only wanted to try a few parameter change but my task involves a Sensitivity analysis which takes forever since each iteration takes 100-120 seconds (Parallelization does help thought), here I want to use the Sensitivity Analyzer App (sim. Design Optimization toolbox) since I would like to do a few hundred simulations. Either way, is there any way for me to speed up the initializing, I'm asking here because I really dont know what Simulink/Matlab is doing while initializing and therefore is it hard to improve. Niklas拉尔森 //www.tianjin-qmedu.com/matlabcentral/profile/authors/9551144 标签:www.tianjin-qmedu.com, 2005:问题/ 1445834 2021 - 09 - 03 - t06:41:06z 2021 - 09 - 03 - t15:45:36z 产生一些声音,并将所有的声音随机呈现给左右耳 大家好,我生成45个声音,并把所有的单元格数组(5*3*3),现在我想呈现所有的声音在左耳和右耳随机,但我不能。我的意思是所有的声音应该选择一个时间和随机。如果你知道,请帮助我。(提前谢谢)。这是我写的代码:我有问题在行(30)%%行30% %%在这部分我有问题,我想呈现所有的声音,是在内存的左和右随机以及没有重复和所有的声音应该被选择。清晰;clc;关闭所有;SamplingRate_Hz = 48000;F=[250 500 1000 2000 4000]; A=[5 10 15]; T=[1 2 3]; memoryR{1,1}{1,1}{1,1}=0; memoryL{1,1}{1,1}{1,1}=0; memory{1,1}{1,1}{1,1}=0; for i=1:length(F) for j=1:length(T) for k=1:length(A) Frequency_Hz = F(1,i); time_p = T(1,j); Amplitude = A(1,k); t=0:(1/SamplingRate_Hz):(time_p-1/Frequency_Hz); y=Amplitude*sin(2*pi*Frequency_Hz*t); xt_ramped = toneburst(SamplingRate_Hz,y); OutR = [zeros(size(t)); xt_ramped]'; % Right OutL = [ xt_ramped ;zeros(size(t))]'; % Left %%Right memoryR{1,i}{1,j}{1,k} = OutR; %%left memoryL{1,i}{1,j}{1,k} = OutL; end end end %% In this part I have problem, I want to present all of sounds that are inside the memory to left and right randomly as well as without repetition and all sounds should be select. memory={memoryL memoryR}; %% %% here is my function(toneburst) function xt_ramped = toneburst(SamplingRate_Hz,y) xt =y; fs=SamplingRate_Hz; ramp_dur=0.0025; %ramp duration in seconds %setup ramp rampSamps = floor(fs*ramp_dur); window=hanning(2*rampSamps)'; %hanning window is cosine^2 this will change depending on the kind of ramp you want w1=window(1:ceil((length(window))/2)); %use the first half of hanning function for onramp w2=window(ceil((length(window))/2)+1:end); %use second half of hanning function of off ramp w_on_xt = [w1 ones(1,length(xt)-length(w1))]; w_off_xt = [ones(1,length(xt)-length(w2)) w2]; xt_ramped = xt.*w_on_xt.*w_off_xt; end PLEASE HELP ME EVERYBODY mohadeseh zamani //www.tianjin-qmedu.com/matlabcentral/profile/authors/23487966 标签:www.tianjin-qmedu.com, 2005:问题/ 1446184 2021 - 09 - 03 - t15:11:03z 2021 - 09 - 03 - t15:44:21z 如何从单元格数组中提取单元格数组(日期) 我有一个单元格数组,我想做一个矩阵,并从中创建图形。我以前做过类似的事情,它工作,但自从我的matlab更新到新的,我不能重新创建我的结果,在另一个数据提取遇到了相同的问题。好了,这是我的代码:%下面的行将读取excel表到matlab,使他们%是兼容的Therm1 =可读('Thermister data.xlsx');%转换数据从表到单元格,然后一个数字数组thermister1 = table2cell(Therm1);Thermister2 = cell2mat(thermister1);弹出以下问题:%错误使用cell2mat(第45行)%输入单元格数组的所有内容必须具有相同的数据类型。% Error in Thermisters(第19行)% thermister2 = cell2mat (thermister1);一旦我的表在一个单元格数组中,它看起来更像这样:我已经尝试将列2-6分别作为一个矩阵,它工作了,但我不能将日期和时间提取到一个矩阵中,因为每个单独的日期在它自己的1x1单元格数组中。我该如何解决这个问题? 劳拉·阿尔瓦雷斯·萨利纳斯 //www.tianjin-qmedu.com/matlabcentral/profile/authors/19737933 标签:www.tianjin-qmedu.com, 2005:问题/ 1445974 2021 - 09 - 03 - t10:02:23z 2021 - 09 - 03 - t15:43:49z 用sym解两个方程组 亲爱的社区,我正试图解决以下两个方程:Y1=C*(a*sin((theta/b)+ C)+d) Y2=C*(e*sin((theta/f)+g)+h)关于变量“theta”和“C”。我想做的是解决第一方程关于“C”,关于“θ”和解决第二个方程,但对于第二个解算器我已经使用C值到目前为止我所做的是:信谊b C C d f e g h Y1 Y2θS1 =解决(日元= = C * (a * sin((θ/ b) + C) + d), C) % #求解C S2 =解决(Y2 = = (S1) * (e * sin((θ/ f) + g) + h),θ)% #解出θ然而,这产生以下:S1 = y₁/ (d + * sin (C +θ/ b))警告:无法找到明确的解决方案。有关选项,请参见帮助。在solve(第317行)S2 =空sym: 0-by-1有人知道问题在哪里吗? 里克·奥利维拉 //www.tianjin-qmedu.com/matlabcentral/profile/authors/4066711 标签:www.tianjin-qmedu.com, 2005:问题/ 1446094 2021 - 09 - 03 - t13:22:44z 2021 - 09 - 03 - t15:37:29z 如何求2sin(3t) - 4x在x(0) = 0时的自然和强制响应的闭合解 到目前为止,我已经使用化解和有以下代码:syms x(t) eqn = diff(x,t) == 2*sin(3*t)-4*x;S = dsolve(eqn),其结果为S = C1*exp(-4*t) - (2*cos(3*t + atan(4/3)) /5然而,看到结果,我不太确定我是否做对了。任何帮助将不胜感激。谢谢! 当归比罗 //www.tianjin-qmedu.com/matlabcentral/profile/authors/19537347 标签:www.tianjin-qmedu.com, 2005:问题/ 1446204 2021 - 09 - 03 - t15:33:24z 2021 - 09 - 03 - t15:33:24z 在Matlab FMINCON中,最优解中的一些值仍然违反约束限制 利用Matlab中的fmincon函数对6自由度机械臂进行运动优化。我所考虑的约束,是一组非线性约束/方程。目标和约束集写在下面。目标= @ (h) h (1) + (2) + h (3) + h (4) + h (5) (6) + h + h (7) + h (8) + h (9);受下列约束的:1已经(i) = [(w (i + 1) / 2) * h (i) + (q - q (i + 1)(我))/小时(我)+ ((w (i) - w (i + 1) h (i)) / 6) = < 400 2混蛋(i) = ((w (i + 1) - w (i)) / h (i)) = < 240 3 (i) = ((w (i) / (h (i))) (t (i + 1) tx) + (w (i + 1) / (h (i))) * (tx-t(我)))= < 250年我获得结果的目标函数;h(i)(1.7372,11.5479,1.9821,0.8572,0.2308,3.1043,2.3440,2.2312,2.0215)但是在绘制之后,我看到有一些点仍然是违规的。例如,在值(11.5479)处不满足任何约束。此外,下面的消息还显示解算器提前停止。Fmincon停止,因为它超过了函数计算限制,选项。maxfunctionassessments = 3000(默认值)。 May I know the reason to not getting the optimal value on some points such as in case of (11.54) .Thanking you in anticipation. 穆罕默德·赛义德 //www.tianjin-qmedu.com/matlabcentral/profile/authors/14940308 标签:www.tianjin-qmedu.com, 2005:问题/ 150830 2014 - 08 - 14 - t14:16:04z 2021 - 09 - 03 - t15:31:15z 用于状态流的XML模式 我想能够检查XML文件是否是有效的状态流。在哪里可以找到一些XML模式? Pavla //www.tianjin-qmedu.com/matlabcentral/profile/authors/4789680 标签:www.tianjin-qmedu.com, 2005:问题/ 1446199 2021 - 09 - 03 - t15:30:56z 2021 - 09 - 03 - t15:30:56z 图像分析。测量弯曲灯丝的半径作为弧长的函数 我需要帮忙测量下面图像上灯丝的半径。到目前为止,我的方法是将图像二值化并填充空洞,这将产生下一个图像BW。我接下来要做的是找到中心线并测量中心线的半径。然而,这正是我失败的地方。为了找到中线,我首先尝试使用鲍斯克尔,但结果并不令人满意。我按照图片分析师(Image Analyst)建议的方法在他回答这个非常相关的问题https://nl.mathworks.com/matlabcentral/answers/508300-how-to-find-the-centreline-of-two-curves?s_tid=mwa_osa_a上找到灯丝的中心线。但对我来说,半径在变化,所以最小距离方法不太管用。%找到2条边并将其标记为BWE=edge(BW);防波堤入口= bwlabel(防波堤入口);%获取每条边的点[row,col]=find(BWE==1);edge1 =(行、列); [row,col]=find(BWE==2); edge2=[col,row]; x1=edge1(:,1); y1=edge1(:,2); x2=edge2(:,1); y2=edge2(:,2); %find the closest point on edge 1 for each point of edge 2 [D,idx]=pdist2(edge1,edge2,"euclidean","Smallest",1); edge1_closest=edge1(idx,:); %plot the edges and the minimum distance between them over the original image imshow(I) hold on plot(edge1(:,1),edge1(:,2),'*b') plot(edge2(:,1),edge2(:,2),'*r') for c=1:size(edge1,1) plot([edge1_closest(c,1);edge2(c,1)],[edge1_closest(c,2);edge2(c,2)],'g') end hold off The result is If I close in yu can see that the center of the green lines do not represent the centerline :( And this is where I stand. Any hep to obtain a better centerline or to find a way to measure the radius as a function of the arc length is very much apreaciated Thank you all for your help, Bernardo 贝尔纳多·帕拉西奥斯·穆尼斯 //www.tianjin-qmedu.com/matlabcentral/profile/authors/18072752 标签:www.tianjin-qmedu.com, 2005:问题/ 99084 2011 - 04 - 14 - t18:36:00z 2021 - 09 - 03 - t15:30:00z 为什么我在Simulink模型中收到关于奇点的错误消息?万博1manbetx 我在我的Simulink模型中收到以下关于奇点的错误消息:error: block at time的导数是NaN的Inf。万博1manbetx停止模拟。解中可能有一个奇点。如果不是,尝试减少步长(通过减少固定步长或通过收紧错误容错)。我已经尝试减少步长和调整公差,但我仍然收到这个错误信息。我也尝试过改变求解器,有些求解器只会到达模拟的一个点,然后挂起。 MathWorks支万博1manbetx援小组 //www.tianjin-qmedu.com/matlabcentral/profile/authors/4622813 标签:www.tianjin-qmedu.com, 2005:问题/ 1445904 2021 - 09 - 03 - t08:41:46z 2021 - 09 - 03 - t15:29:58z 如何绘制正态概率密度函数? 嗨,我正在用这个命令绘制概率密度函数:mx = mean(RMS_vp);sx = std(RMS_vp);norm_vp = normpdf(RMS_vp,mx,sx);问题如附图所示。首先,它不接触左边的x轴。其次,当我将其绘制为实线时(见中间的图像,许多线显示为放大(蓝色图像)。我该如何解决这些问题? 尼萨尔艾哈迈德 //www.tianjin-qmedu.com/matlabcentral/profile/authors/18006795 标签:www.tianjin-qmedu.com, 2005:问题/ 1446194 2021 - 09 - 03 - t15:29:55z 2021 - 09 - 03 - t15:29:55z 如何改变每一个其他点的分辨率? 你好,你好,我想知道如何改变我的网格的分辨率到每一个其他网格点。我一直在研究如何改变它,但还没有找到。%加载名为XBeach_masonboro_grid的文件。mat加载XBeach_masonboro_grid。mat figure() %绘制地底曲面(z)作为空间(xgrid,ygrid)的函数pcolor(xgrid,ygrid,z) title(“马森波罗岛网格”)在阴影平面上的网格,我能够得到该图来显示,但不知道如何更改每一个其他网格点的分辨率。谢谢你! 尼古拉斯Deosaran //www.tianjin-qmedu.com/matlabcentral/profile/authors/19207774 标签:www.tianjin-qmedu.com, 2005:问题/ 1446189 2021 - 09 - 03 - t15:29:46z 2021 - 09 - 03 - t15:29:46z 在没有体积数据的情况下绘制多个三维等高线 我试图在同一个3D图中绘制多个等高线,没有体积数据。得到的图看起来像一个切片图,例如,两个正交的平面各显示一个等高线。相反,我有两个不同等高线的数据,我想把它们放在相同的3D图中,彼此正交。我看到的答案是,如果你有体积数据(contourslice或slice),可以在3D中绘制多个等高线,或使用plot3在3D中绘制多个2D线,但我还没有看到版本可以做到我所寻找的。 丹尼尔 //www.tianjin-qmedu.com/matlabcentral/profile/authors/3504105 标签:www.tianjin-qmedu.com, 2005:问题/ 1445674 2021 - 09 - 02 - t23:34:24z 2021 - 09 - 03 - t15:28:35z 拟合正弦曲线与数据 亲爱的matlab社区,我正试图将一些数据点适合以下方程(即:“y = a+b*sin(x-c)”),我的“x”和“y”值为:x = [0,15,30,45,60,75,90,105,120,135,150,165,180,195,210,225,240,255,270,285,300,315,330,345,360];y = (-0.267268221867135, -0.224927234804625, -0.189541103134544, -0.138342286610894, -0.0566423048346959, 0.00234570638697967, 0.0651873879993542, 0.127045214064366, 0.187359039666987, 0.221423324938789, 0.256601680672827, 0.255278492431207, 0.267669889966578, 0.232962110292877, 0.197299723252563, 0.130461415017413, 0.0624973744048143, -0.00389440045935707, -0.0720465871266569, -0.132628373295696, -0.194175941787212, -0.234779045975818, -0.254184352991033, -0.252575588397041, -0.245570829777601);到目前为止,我尝试使用曲线拟合工具中的自定义方程。然而,这条曲线并没有得到适当调整。然而,通过使用“sum of sin”拟合工具,它工作得很好。但是用不同的方程(y = a*sin(b*x+1))我发现了@Star Strinder发布的一些信息,显示了一种将数据拟合到方程的方法,如a +b*sin(2*pi*x)。/c + d).代码工作正常。但这个方程仍然和我想要的不一样。有没有可能重新排列代码,得到我想要的方程?代码如下:yu = max(y); yl = min(y); yr = (yu-yl); % Range of ‘y’ yz = y-yu+(yr/2); zx = x(yz .* circshift(yz,[0 1]) <= 0); % Find zero-crossings per = 2*mean(diff(zx)); % Estimate period ym = mean(y); % Estimate offset fit = @(b,x) b(1).*(sin(2*pi*x./b(2) + 2*pi/b(3))) + b(4); % Function to fit fcn = @(b) sum((fit(b,x) - y).^2); % Least-Squares cost function s = fminsearch(fcn, [yr; per; -1; ym]) % Minimise Least-Squares xp = linspace(min(x),max(x)); figure(1) plot(x,y,'b', xp,fit(s,xp), 'r') grid 里克·奥利维拉 //www.tianjin-qmedu.com/matlabcentral/profile/authors/4066711 标签:www.tianjin-qmedu.com, 2005:问题/ 1445524 2021 - 09 - 02 - t17:42:05z 2021 - 09 - 03 - t15:17:47z 遗传算法并行计算 大家好,我正在使用遗传算法代码'ga'优化我的函数。然而,这将占用大量的模拟时间。我已经尝试在gaoptimset中添加“'UseParallel',true”。但是现在,代码在第一次迭代之后就停止了。请帮我解决。先谢了。 Ashok Das //www.tianjin-qmedu.com/matlabcentral/profile/authors/6073934 标签:www.tianjin-qmedu.com, 2005:问题/ 304652 2016 - 09 - 27 - t02:33:21z 2021 - 09 - 03 - t15:11:59z 当以管理员身份运行但不正常时,License Manager错误-9 我有Ubuntu 16.04和一个学生版本的Matlab,并想安装一个统计和机器学习工具箱的试用版本。但是安装程序没有权限(Access Denied: Unable to write to /usr/local/MATLAB/R2016b.请选择不同的文件夹)。所以我试图运行Matlab与根权限使用sudo Matlab &,但我得到许可证签出失败。License管理器错误-9您的用户名与License文件中的用户名不匹配。要在这台计算机上运行MATLAB,您必须运行激活客户机来重新激活您的许可证。请访问://www.tianjin-qmedu.com/support/lme/R2016b/9诊断信息:特性:MATLA万博1manbetxB License路径:/ home/pjhellemn/. MATLAB/ r2016b_licenses:/usr/local/MATLAB/R2016b/licenses/ License .dat:/usr/local/MAT LAB/R2016b/licenses/license_pjhellemn-联想- idepad - y700 - 14isk_3284817_r2016b . txtlic许可错误:-9,57。我如何允许Matlab运行与根权限,以便我可以安装工具箱? 保罗Hellemn //www.tianjin-qmedu.com/matlabcentral/profile/authors/8607892 标签:www.tianjin-qmedu.com, 2005:问题/ 898462 2021 - 08 - 15 - t02:09:41z 2021 - 09 - 03 - t15:11:29z 需要帮助绘制错误条到我的数据线图 我很难沿着我的数据线图绘制错误条。错误使用errorbar>checkSingleInput(第272行)YNegativeDelta必须为空或与YData相同的大小。错误在errorbar(第135行)yneg = checkSingleInput(neg, sz, 'YNegativeDelta');错误在Experiment1_ParticipantLearningRate_Figure2(第41行)errorbar(y, eb_interval, allsubs_cond0_stderr)下面是我使用的脚本。对于添加的上下文,allsubs_response_cond0_trials和allsubs_response_cond1_trials都是120 x 40的矩阵,表示来自40个参与者的120个试验的概率正确。%%%参与者学习率图%%% load(' experiment1_allsub .mat') %创建图并绘制数据图;情节(光滑(平均(allsubs_response_cond0_trials 2))),“线宽”,2);hold on plot((smooth(mean(allsubs_response_cond1_trials, 2))),'LineWidth',2);%在左下角创建图例({'Concrete First','Abstract First'},'Location','southeast') %创建ylabel ylabel('Probability of Correct Response','FontSize',24,…' font ','Times New Roman'); % Create xlabel xlabel({'Trial Number'},'FontSize',24,'FontName','Times New Roman'); % Defines participant learning rate standard error for each condition allsubs_cond0_stderr = std(allsubs_p_correct_hist_cond0)./sqrt(length(allsubs_p_correct_hist_cond0)); allsubs_cond1_stderr = std(allsubs_p_correct_hist_cond1)./sqrt(length(allsubs_p_correct_hist_cond1)); %Transposes learning curve dimensions to compute error bars(changes 120x40 %to 40x120) allsubs_response_cond0_trials = allsubs_response_cond0_trials'; allsubs_response_cond1_trials = allsubs_response_cond1_trials'; % Creates errorbars interval at every 10 trials along the x-axis from 10 to % 120 eb_interval = 10:10:120; % Creates point on y-axis along data to plot error bars. My intention here % is to take the mean probability of correct of all 40 participants at each % desired interval point. y = mean((allsubs_response_cond0_trials(:,eb_interval))); % Plots error bars errorbar(y, eb_interval, allsubs_cond0_stderr) %Formats current axis and current figure set(gca, 'FontSize', 18, 'FontWeight', 'bold') set(gcf, 'Color', 'w') 瑞安·加拉格尔 //www.tianjin-qmedu.com/matlabcentral/profile/authors/14985658 标签:www.tianjin-qmedu.com, 2005:问题/ 1446179 2021 - 09 - 03 - t15:02:37z 2021 - 09 - 03 - t15:06:58z 有什么有效的方法来识别大数组中的一组1吗? 我有一个名为link_slots的数组,包含800个由1、0和-1组成的元素。例如:1 1 1 1 -1 0 0 0 1 1 -1 0 0 1 1 1 1 1 -1 0 0 ....1表示已占用,0表示未占用-1表示一组1的末尾。我想知道每组1的起始和结束指标。例如,在这里,以[1,9,14]开始,以[3,10,17]结束。我的代码工作,但通过Profiler发现,它需要很多时间。有什么有效的方法来解决这个问题吗?考虑到我必须对大小为800的元素的多个数组执行此操作。i = 1;当(i Jaya Lakshmi Ravipudi //www.tianjin-qmedu.com/matlabcentral/profile/authors/19489167 标签:www.tianjin-qmedu.com, 2005:问题/ 1445739 2021 - 09 - 03 - t02:06:22z 2021 - 09 - 03 - t15:05:47z 将数组放入表中 嗨,我有6个长度相等的数组,每个数组代表一个特定的参数,数组中的每个槽代表参数的值,我想将数据制表,这样我就可以滚动查看所有的数据一次。我该怎么做?下面的图像是我正在寻找的,理想情况下,我可以在最左边的列中指定一个标签。 Tolga Karabetca //www.tianjin-qmedu.com/matlabcentral/profile/authors/9001461 标签:www.tianjin-qmedu.com, 2005:问题/ 1444689 2021 - 09 - 01 - t12:35:13z 2021 - 09 - 03 - t14:51:34z Sym矩阵可以用非逻辑/非整数进行索引。错误吗? a = sym([1 2;3 4]) a (.5) a (1.1) a([1.2 2.2])但是元素索引产生一个错误a(1.2,2.2)但是注意,错误消息是关于位置2的索引。对于实数组,误差是第一个位置的下标。我猜这是个窃听器吧? 保罗 //www.tianjin-qmedu.com/matlabcentral/profile/authors/35216 标签:www.tianjin-qmedu.com, 2005:问题/ 1446174 2021 - 09 - 03 - t14:50:39z 2021 - 09 - 03 - t14:50:39z 如何结合多个表在一个excel文件在一个单一的sheey 我有一个多页的excel文件。每个工作表有单列和350-450行数据。那里大约有80-95张床单。如何把所有列在表在一个单表?我需要每个表的名称来作为标题在最后编译表。我是一个初学者。请务必帮忙。 Srikant Sekar //www.tianjin-qmedu.com/matlabcentral/profile/authors/22945753 标签:www.tianjin-qmedu.com, 2005:问题/ 1446169 2021 - 09 - 03 - t14:50:12z 2021 - 09 - 03 - t14:50:12z 如何获取绘制的颜色 亲爱的所有人,我想得到一个数据集的rgb颜色代码,我正在绘制一个热图。有人知道它们被储存在哪里或者如何提取它们吗?%经验。Data = [0.216745778875956 0.0122005059399983 0.0162673412533310 0.00149830774701733 0.263389055948955 0.342338724357287 0.0955767041221151 0.119981642250681 0.0606266369191968 0.759691756727176 0.514382973045806 0.668104140446562 0.720311719592812 0.671178482390491 0.278785037951106 0.476509405546337 0.409639773389851 0.582438199698988 0.567789956119946 0.281777114781149 0.674368366676059 0.188936792339474 0.746659486291274 0.827451886871509 0.708089195819381 0.345204905187858 0.4927275626262270.453467008650955);无花果=热图(数据、“Colormap”飞机); 尼尔斯·爱 //www.tianjin-qmedu.com/matlabcentral/profile/authors/17632215 标签:www.tianjin-qmedu.com, 2005:问题/ 1446164 2021 - 09 - 03 - t14:47:26z 2021 - 09 - 03 - t14:47:26z 从Simscape多体模型中提取固有频率和振型 嗨,我目前有一个Simscape多体系统模型,我正在使用作为验证的手段。我试图提取系统的模态属性,如特征值来计算固有频率和特征向量来计算模态振型,但我不太确定如何去做这一点。我已经在以前的帖子中读到,Simscape多体解决了“黑盒子”下的运动方程,这是不可用的用户,但与Simscape ver 2019a(我正在使用的),我可以请求帮助,如果这是现在可能的,例如,如果有一个块我应该使用?非常感谢Edward 爱德华狂吠 //www.tianjin-qmedu.com/matlabcentral/profile/authors/7080181 标签:www.tianjin-qmedu.com, 2005:问题/ 1446159 2021 - 09 - 03 - t14:46:10z 2021 - 09 - 03 - t14:46:10z 翼型坐标的b样条拟合 大家好,我是一名航空航天工程师,我目前在一个翼型优化项目工作。我想创建一个翼型参数化从RAE2822开始,其中我知道坐标。在一开始,我试图得到一个独特的b样条表示为整个翼型曲线,即找到一个独特的曲线,适合翼型曲线。我还没能做到(有人有想法吗?)无论如何,我找到了spap2函数,我一直在使用它来找到b样条最适合的坐标我有,保持分离翼型的下部和上部。尝试一些不同的结序列,发现一些似乎有希望,但我得到了一个奇怪的行为在前缘(即翼型的“鼻子”)。b样条曲线非常精确地遵循原始曲线,但显示出“尖”的行为。我现在附上我的脚本。我猜这个问题来自于曲线开始处的大导数,但我不是很确定。有人能帮忙吗? Thank you in advance filename = 'RAE2822.txt'; % attached here coords = readtable(filename); x_0 = coords.Var1; y_0 = coords.Var2; % separation of upper and lower parts of the airfoil xaxis = sort(x_0(1:65)); x_1 = x_0(1:65); y_1 = y_0(1:65); x_2 = [0; x_0(66:end)]; y_2 = y_0(65:end); % plot of the original coordinates plot(x_1, y_1, x_2, y_2); hold on; % definition of the knot sequence x = [0, 0.025, 0.05, 0.2, 0.55, 1]; degree = 3 %b - spline degree knots = augknt(x,degree+1); %weights w1 = ones(size(x_1)); % w1(end) = 1000; w2 = ones(size(x_2)); w2(1) = 1000; %least squares b-spline fit of the upper curve (suction side (AKA SS)) BS_SS = spap2(knots, degree+1, x_1, y_1,w1); fnplt(BS_SS); %least squares b-spline fit of the lower curve (pressure side (AKA PS)) BS_PS = spap2(knots, degree+1, x_2, y_2, w2); fnplt(BS_PS); axis equal xlim([-0.01, 0.05]) % comment if you want to see the whole parametrization. Here you can see the problem 马可Zanichelli //www.tianjin-qmedu.com/matlabcentral/profile/authors/8888970 标签:www.tianjin-qmedu.com, 2005:问题/ 1446149 2021 - 09 - 03 - t14:16:55z 2021 - 09 - 03 - t14:43:12z 如何将32x32x2x20000转换成20000x1单元阵列? 如何将32x32x2x20000转换成20000x1单元格阵列,我从cnn网络的输出中得到了一个数据,我想将32x32x2x20000转换成20000x1单元格阵列,在每个单元格中都有32x32x2数据。任何人都可以帮忙,谢谢! 死去的王 //www.tianjin-qmedu.com/matlabcentral/profile/authors/20003465 标签:www.tianjin-qmedu.com, 2005:问题/ 1445459 2021 - 09 - 02 - t16:08:23z 2021 - 09 - 03 - t14:38:45z 用bvp4c求解多特征值ODE问题 你好,我正在按照bvp4c手册解决一个具有两个特征值的特征值问题。我得到一个错误'使用vertcat的错误:数组的维度被连接不一致'。然而,我认为这个错误可能是由于我的代码中的一些其他不一致。有人能帮忙吗?我的代码:清除所有%参数全局L Num Num = 3000;格点的%数量。3000就够了。L = 1.0;tau0_init = 0;% 2特征值deltaL_init = 0.1*L; ss = linspace(0, L, Num); solinit = bvpinit(ss, @mat4init, [tau0_init, deltaL_init]); options = bvpset('Stats','on','RelTol',1e-5,'NMax',Num); sol = bvp4c(@bvp_RHS, @bvp_BC, solinit, options); fprintf('The eigenvalues are approximately %.2f.\n',sol.parameters) figure plot(sol.x, sol.y) xlabel('s') grid legend(compose('$y_{%2d}$',1:11), 'Location','bestoutside', 'Interpreter','latex') %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function yinit = mat4init(x) % initial guess for the solution global L yinit = [-sin(pi/L*x) % theta -pi/L * cos(pi/L*x) % theta' 0.1 % x 0.1 % y ]; end function dyds = bvp_RHS(x, y, tau0, deltaL) % Total 4 variables. % NB: eigenvalues tau0 and deltaL must be a function input even though if not present % in any equation below. global L dyds = [ y(2) -tau0*sin(y(1)) +(L-x)*cos(y(1)) cos(y(1)) sin(y(1)) ]; end function res = bvp_BC(yL, yR, tau0, deltaL) % BCs at L and R boundaries, with constraint for eigenvalues tau0 and deltaL. global L res = [ yL(1) yL(2) yL(3) yL(4) yR(1) yR(3)- 0.5*(L-deltaL) ]; end Anshuman朋友 //www.tianjin-qmedu.com/matlabcentral/profile/authors/14581993 标签:www.tianjin-qmedu.com, 2005:问题/ 1446029 2021 - 09 - 03 - t11:48:24z 2021 - 09 - 03 - t14:30:21z simulink中输出信号的问题万博1manbetx 你好,我用fdatool创建了3个滤波器,一个低通(20-250 hz),一个带通(250-2000 hz)和一个高通(2000-20000 Hz9,导出这3个滤波器,把他们放在simulink中测试3个滤波器。问题是,当引入一个100 hz的信号时,它给我一个信号1 [V]在低通和0.2在带通和1 [V]在高通。万博1manbetx预期的响应是它在带通中输出1 [V],其他信号被衰减(图1)。附加的配置图像图1:其他设置:完整的滤波器: 胡安Chehin //www.tianjin-qmedu.com/matlabcentral/profile/authors/22584832 标签:www.tianjin-qmedu.com, 2005:问题/ 1446154 2021 - 09 - 03 - t14:28:59z 2021 - 09 - 03 - t14:28:59z 无边约束三角剖分 你好,我想对有约束条件的散点进行三角定位。受约束的边是连接红点的红线(见图)。我只知道它们的坐标。如何定义这些边呢?或者还有别的办法吗?先谢谢你了。 尼古拉斯Rogalski //www.tianjin-qmedu.com/matlabcentral/profile/authors/14169015 标签:www.tianjin-qmedu.com, 2005:问题/ 1445909 2021 - 09 - 03 - t08:47:26z 2021 - 09 - 03 - t14:19:27z 输入一串字符和数字,在matlab中相加并返回数字的和,例如:“树枝上有两只蓝色的鸟和4只红色的鸟”——>返回6 请帮我解决这个问题:输入一串字符和数字,在matlab中相加并返回数字的和,例如:‘树枝上有两只蓝鸟和4只红鸟’——>返回6 Phung潘文凯 //www.tianjin-qmedu.com/matlabcentral/profile/authors/23523877 标签:www.tianjin-qmedu.com, 2005:问题/ 1446144 2021 - 09 - 03 - t14:09:46z 2021 - 09 - 03 - t14:09:46z 我如何自定义气缸旋转轴? 嗨,我有一个2D图形,我想通过圆柱体使其3D。但是圆柱绕x轴旋转。有什么办法可以改变吗?例如绕y轴旋转 阿里alizadeh //www.tianjin-qmedu.com/matlabcentral/profile/authors/23727021 标签:www.tianjin-qmedu.com, 2005:问题/ 1445759 2021 - 09 - 03 - t03:11:59z 2021 - 09 - 03 - t14:05:54z 通过叠加2D图层渲染3D形状 我对MATLAB的使用比较陌生,所以我对这里具体的编程函数不太习惯。我试图通过叠加2D图层渲染一个3d形状的模型。最初的二维极坐标图是这样的:t = 0:0.01:2*pi;R = sin(t)³+ cos(t)³;或者,我们也可以使用笛卡尔坐标系来代替极坐标,我将把这个层称为“豆形”。目标是创建类似的bean形状,并在z轴上连续堆叠它们,以创建一个3D模型。(也许应该使用笛卡尔坐标系。)相似度的比值将遵循y=sin(z)从0到。(所以这个形状从0开始,随着z的增加而变大,在z= /2处最大,然后再变小。) The biggest layer would be the same as r = sin(t).^3 + cos(t).^3 since the ratio of similarity would be y=1. For an easier understanding, I will use 7 discrete bean shapes. Shape #1 goes on the very bottom in the z axis, then on top of Shape #1 goes Shape #2, and then #3, #4, ..., #7 (Which would be the biggest layer). On top of #7 goes #6, then #5, #4, ... #1. The only difference is that we are not using 7 discrete layers, but stacking an infinite amount of layers (from z=0 to z=pi) continuously (which is same as integration). I would also like to know how to calculate the volume of the 3D shape after rendering this. Thanks in advance! 승준 이 //www.tianjin-qmedu.com/matlabcentral/profile/authors/23720382 标签:www.tianjin-qmedu.com, 2005:问题/ 419230 2018 - 09 - 16 - t11:47:49z 2021 - 09 - 03 - t14:01:13z 圆图和圆上的随机点 你好,我在matlab上用参数方程画了一个圆。我给出xcenter ycenter r(x1,y1,r1) s是等距点的个数(圆上的距离相等)我在圆上画了一些点我想在周围随机画4个点。我的代码是:t1 = 0:(pi/(5*s1)):2*pi;% s1是x1unit = r1 * cos(t1) + x1;y1单位= r1 * sin(t1) + y1;a1 = x1unit (1:10: s1 * 10);圆b1上的百分数=y1unit(1:10:s1*10);Plot (x1, y1unit, 'b', x1, y1, 'ok');%圆Plot (a1, b1, 'o');我想要在圆上3,4或5或更多的随机点。但是我不能成功,是的。 Could you help me? Thanks in andvance, Eleni agou //www.tianjin-qmedu.com/matlabcentral/profile/authors/9064481 标签:www.tianjin-qmedu.com, 2005:问题/ 1443294 2021 - 08 - 30 - t12:23:53z 2021 - 09 - 03 - t14:00:58z 如何导出实时脚本到乳胶激光器文档类? 大家好,我在徘徊,如果有任何方法导出Matlab实时脚本在乳胶激光演示。将实时脚本导出到latex中,然后重新排列代码以生成一个beamer文件,这需要太多的时间。从现场脚本做演示有什么捷径吗? Barbab //www.tianjin-qmedu.com/matlabcentral/profile/authors/12193332 标签:www.tianjin-qmedu.com, 2005:问题/ 1446129 2021 - 09 - 03 - t13:45:49z 2021 - 09 - 03 - t14:00:46z 设置路径的“添加子文件夹”功能 在使用“设置路径”窗口中的“添加子文件夹”功能时,MATLAB会添加用户指定文件夹的所有子文件夹。但是,通常情况下,有些子文件夹不应该添加到路径中。具体来说,用于MATLAB源代码版本控制的.git、.hg或.svn文件夹不属于该路径,并且在这样的文件夹中通常有许多子文件夹(通常每次提交一个文件夹)。令人烦恼的是,这会造成一种情况,你要么返回使用“添加文件夹”,而不是单独添加你想要的MATLAB路径上的文件夹,要么使用“添加子文件夹”,然后手动清理之后,选择。git文件夹及其所有子文件夹,然后点击“删除”按钮。如果“添加子文件夹”命令能自动识别普通版本控制系统使用的文件夹,并在添加到路径时排除它们,那就太好了。 马特Latourette //www.tianjin-qmedu.com/matlabcentral/profile/authors/7983670 标签:www.tianjin-qmedu.com, 2005:问题/ 1446134 2021 - 09 - 03 - t13:49:08z 2021 - 09 - 03 - t13:49:08z 如何训练带有轨迹的自伪造地图? 我有一个移动的人的轨迹(x,y点)的数据,我想分类轨迹,如果它的正常或不寻常的行为使用SOM,但我不知道如何做,我找不到这个问题的任何类似的例子。甚至不知道如何将输入设置为具有X和Y点的文件。 Kordian Skop //www.tianjin-qmedu.com/matlabcentral/profile/authors/14924844 标签:www.tianjin-qmedu.com, 2005:问题/ 1446084 2021 - 09 - 03 - t13:04:41z 2021 - 09 - 03 - t13:49:04z 在MATLAB中访问子文件夹的子floders 嘿,我有一个由40个子文件夹组成的主文件夹。每个子文件夹都有另外3个子文件夹,这些子文件夹包含'.xml'文件。你们谁能帮我用matlab代码访问这些“。xml”文件? //www.tianjin-qmedu.com/matlabcentral/profile/authors/19955399 标签:www.tianjin-qmedu.com, 2005:问题/ 1445999 2021 - 09 - 03 - t10:54:03z 2021 - 09 - 03 - t13:44:35z 在.executable app中CD的替代方案是什么? 嗨,我正在将mdf转换为mat,同样我已经创建了可执行的应用程序。而执行以下命令,当前的字典应该是文件夹有。mdf文件。如果我通过输入cd命令,那么它会在运行可执行应用程序时出错。有什么解决方案?doscmd = ['"' converterfile '" -C:' convtype '.dll -IF:"' inifile '" "' files{f} '"' tempconvfilename];[status, result] = dos(doscmd); Kaustubh远足 //www.tianjin-qmedu.com/matlabcentral/profile/authors/23142717 标签:www.tianjin-qmedu.com, 2005:问题/ 1446114 2021 - 09 - 03 - t13:35:03z 2021 - 09 - 03 - t13:41:50z sql查询非常慢 我有一个相当简单的sql查询,我使用从ms - sql数据库获取数据。如果我使用Microsoft SQL Server Management Studio,它需要不到一秒钟。在Matlab中,完全相同的查询需要超过100秒。我使用数据库资源管理器应用程序的自动生成的代码与一些修改。我做错什么了吗?有什么方法可以提高性能吗?这段代码通过%连接到数据库,执行SQL查询,并将数据导入到% MATLAB(R)工作区,来再现使用数据库资源管理器应用程序获得的数据。要使用此代码,请在database命令中添加连接到%数据库的密码。%由MATLAB版本9.3 (R2017b)和数据库工具箱版本8.0在2019年9月9日12:19:26自动生成%%设置首选项prefs = setdbprefs('DataReturnFormat');setdbprefs('DataReturnFormat','table') %%连接数据库conn =数据库('something', ", "); %% Query sqlquery=['SELECT ...]; %% Execute query and fetch results curs = exec(conn,sqlquery); curs = fetch(curs); MDdmTable = curs.Data; close(curs) %% Close connection to database close(conn) %% Restore preferences setdbprefs('DataReturnFormat',prefs) %% Clear variables clear prefs conn curs 弗雷德里克· //www.tianjin-qmedu.com/matlabcentral/profile/authors/8020 标签:www.tianjin-qmedu.com, 2005:问题/ 1446124 2021 - 09 - 03 - t13:40:42z 2021 - 09 - 03 - t13:40:42z 如何以编程方式执行Simbiology参数扫描? 你好,我有一个Simbioogy变体,我想扫描它的参数值2倍的变化超过10次运行。首先,我如何扫描变量中包含的所有参数以获得2倍的变化?这可以使用Sibiology变体或我需要从我的模型选择每个参数使用:p1= sbioselect(m2, '名称','kNeu2NA0', '类型','参数');%m2是我的模型kNeu2NA0是我选择的一个参数值。提前谢谢, Fearass Zieneddin //www.tianjin-qmedu.com/matlabcentral/profile/authors/12668131 标签:www.tianjin-qmedu.com, 2005:问题/ 1445324 2021 - 09 - 02 - t13:29:49z 2021 - 09 - 03 - t13:40:04z 如何计算矢量场的涡量和旋转 你好,我需要用旋度函数计算向量场的涡量和旋转量,但我只得到Infs和NaNs的结果。我有4000个二维流场的快照,每个快照是159x99个向量,包含x和y坐标,单位是mm, U和V分量,单位是m/s。x和y变量是159x99倍,Udatar和Vdatar变量是4000x159x99倍。包含的MAT文件包含流场的第一个快照。首先,我要计算第一个快照的旋度。谢谢你的帮助。我的代码:关闭所有;清晰;input_folder = uigetdir;cd (input_folder); load('PIVkolmo_example.mat'); I=159; J=99; IJ=[159 99]; % Ures1=reshape(Udatar(1,:,:),I,J); % Vres1=reshape(Vdatar(1,:,:),I,J); [curlz1,cav1] = curl(x,y,Ures1,Vres1); 员工切赫Michalek //www.tianjin-qmedu.com/matlabcentral/profile/authors/12175557 标签:www.tianjin-qmedu.com, 2005:问题/ 1446119 2021 - 09 - 03 - t13:35:42z 2021 - 09 - 03 - t13:35:42z X和Y的观察次数不同。 function [result] = multisvm(TrainingSet,GroupTrain,TestSet,Group_Test1) %用相应的组向量对给定的训练集建模,%使用支持向量机分类器根据%一与所有的关系对给定的测试集进行分类。此代码由科迪纽伯格cneuburg@fau.edu %佛罗里达大西洋大学,美国佛罗里达州…%此代码改编自Anand Mishra的多支持向量机函数%发现在//www.tianjin-qmedu.com/matlabcentral/fileexchange/33170-multi-class-support-vector-machine/ %GroupTrain=GroupTrain';万博1manbetxu =独特(GroupTrain);numClasses =长度(u);% TestSet = TestSet ';% TrainingSet = TrainingSet ';结果= category .empty();%构建模型models = cell(numClasses,1);for k=1:numClasses %向量化语句,将Group %二值化,其中1是当前类,0是所有其他类G1vAll=(GroupTrain==u(k)); %models{k} = fitcsvm(TrainingSet,G1vAll); models{k} = fitcsvm(TrainingSet,G1vAll,'KernelFunction','polynomial','polynomialorder',3,'Solver','ISDA','Verbose',0,'Standardize',true); if ~models{k}.ConvergenceInfo.Converged fprintf('Training did not converge for class "%s"\n', string(u(k))); end end %classify test cases for t=1:size(TestSet,1) matched = false; for d=1:numClasses if(predict(models{d},TestSet(t,: ))) matched = true; break; end end if matched result(t,1) = u(d); else result(t,1) = 'No Match'; end %-------------------------------- end Accuracy = mean(Group_Test1==result) * 100; fprintf('Accuracy = %.2f\n', Accuracy); fprintf('error rate = %.2f\n ', mean(result ~= Group_Test1 ) * 100); end >> HOG2 Error using classreg.learning.FullClassificationRegressionModel.prepareDataCR (line 231) X and Y do not have the same number of observations. Error in ClassificationSVM.prepareData (line 632) classreg.learning.FullClassificationRegressionModel.prepareDataCR(... Error in classreg.learning.FitTemplate/fit (line 217) this.PrepareData(X,Y,this.BaseFitObjectArgs{:}); Error in ClassificationSVM.fit (line 240) this = fit(temp,X,Y); Error in fitcsvm (line 334) obj = ClassificationSVM.fit(X,Y,RemainingArgs{:}); Error in multisvm (line 29) models{k} = fitcsvm(TrainingSet,G1vAll,'KernelFunction','polynomial','polynomialorder',3,'Solver','ISDA','Verbose',0,'Standardize',true); Error in HOG2 (line 37) result1= multisvm(Feat1,Group_Train1,Feat2,Group_Test1); >> 日出 //www.tianjin-qmedu.com/matlabcentral/profile/authors/16482360 标签:www.tianjin-qmedu.com, 2005:问题/ 1446089 2021 - 09 - 03 - t13:07:24z 2021 - 09 - 03 - t13:35:35z 如何存储大对象而不耗尽内存? 你好,我正在处理非常大的对象(即20个维度为2000x7x2000x350的矩阵),这是全矩阵(不可能应用稀疏函数)。然而,看起来我的电脑没有足够的RAM来存储它们,MATLAB的内存也用完了。你知道我该如何处理这个问题吗?谢谢 莎拉zoi //www.tianjin-qmedu.com/matlabcentral/profile/authors/4565002 标签:www.tianjin-qmedu.com, 2005:问题/ 1446104 2021 - 09 - 03 - t13:31:05z 2021 - 09 - 03 - t13:34:43z 二维傅里叶变换用于曲面拟合 我有一个分散的x,y,z数据我在寻找傅立叶级数它能将分散的数据组成一个曲面。有人能提出什么好方法来解决这个问题吗?我试过使用fft2,但数据非常随机,振幅和相位谱非常难以解释。 “普里特维”系统的Sangani //www.tianjin-qmedu.com/matlabcentral/profile/authors/19737102 标签:www.tianjin-qmedu.com, 2005:问题/ 1446099 2021 - 09 - 03 - t13:26:13z 2021 - 09 - 03 - t13:32:07z 每十秒数一次 你好,我试图总结每十秒我有cloumn(11),其中包含日期和时间,我试图写在cloumn(12)哪十秒是他们,如前十秒是数字1,后十秒是数字2,我必须写哪个代码? 恩典khashman //www.tianjin-qmedu.com/matlabcentral/profile/authors/22943698 标签:www.tianjin-qmedu.com, 2005:问题/ 1446109 2021 - 09 - 03 - t13:31:30z 2021 - 09 - 03 - t13:31:30z 如何利用模拟退火来优化基于模拟的多准则问题? 大家好,我试图优化一个Simulink模型的一些参数,它工作得很好。万博1manbetx该模型的结果是3个值(使用的能量、运行时间和产生的成本),因此这是一个多准则问题。到目前为止,对于这个用例,我使用了加权和方法(将所有这些标准相加)和模式搜索算法。由此产生了两个主要问题:如何使用模拟退火算法优化多准则?当我从三个输出函数形成结构时,simulannealbnd报告错误。2.是否有可能通过约束告诉算法,不是所有的值都被允许,但有一定的步长(例如lb=10 - ub=100,每步10)? 罗宾·沃尔特 //www.tianjin-qmedu.com/matlabcentral/profile/authors/9482161 标签:www.tianjin-qmedu.com, 2005:问题/ 1445334 2021 - 09 - 02 - t13:40:38z 2021 - 09 - 03 - t13:23:36z Shuffle (mbq)非常慢 我用yolov3深度学习和一个只有126张图片的自定义数据集运行对象检测。epoch本身以合理的速度运行,但是调用reset(mbqtrain) shuffle(mbqtrain)的函数花费了不合理的25秒进行重置,111秒进行shuffle。(都是用简单的tic toc测试的)。这大大减慢了训练时间。该系统运行在6酷睿i5-10600, Nvidia 1050 Ti和16gb RAM上。我还没有用“车辆”测试时间,但我意识到时代之间也有停顿。有什么想法可以解决这个问题吗? 马蒂·Kaupenjohann //www.tianjin-qmedu.com/matlabcentral/profile/authors/8437772 标签:www.tianjin-qmedu.com, 2005:问题/ 1446044 2021 - 09 - 03 - t12:34:31z 2021 - 09 - 03 - t13:20:03z 如何将代码转换为函数,而其中一个输入是字符串 我写了一个代码,它的工作没有蚂蚁错误或问题。我想把它变成一个函数。这个函数有4个输入,其中3个是数字,最后一个是一个矩阵,它的条目是字符串。这里是我写的代码的总结:NOH=输入('请输入箍层数:');NOC=input('请输入交叉层数:');tetta=input('请输入交叉层的方向:');for i=1:NOH+NOC A(1,i)=input('请输入第i层的方向:');(1,我如果strcmp(),“h”)t_h (i) = (Ns * T / B) / (V_f * ro_f);t_c (i) = 0;tetta =π/ 2; end elseif strcmp(A(1,i),'c') t_c(i)=(2*Ns*T/B*sin(tetta))/(V_f*ro_f); t_h(i)=0; end As it can be observed NOH,NOC, tetta are 3 numeral variable and A[1,NOH+NOC] is a matrix which entries of that could be {'h'} or {'c'}. I wrote this function as below but its not working. I really appreciate your kind instructions in this matter. function[PS]=stiffness1(NOH,NOC,tetta,[A(1,NOH+NOC)]) ..... end reza Shahzadi //www.tianjin-qmedu.com/matlabcentral/profile/authors/23696666