//www.tatmou.com/matlabcentral/answers/questions MATLAB的答案——新问题 2021 - 09 - 26 - t21:46:12z 标签:www.tatmou.com, 2005:问题/ 1461219 2021 - 09 - 26 - t21:24:32z 2021 - 09 - 26 - t21:46:12z 试图压缩信号。 嗨伙计们我试图压缩信号n是时间向量由:n =[0 1 2 3 4 5 6]和xn是向量离散序列的值是:xn =[0 1 2 3 4 1 0]信号压缩“x (2 * n)”x2n = [0 2 2 0 0 0 0]。有什么方法来计算这些新分在matlab ?谢谢! 拉斐尔·奥尔蒂斯 //www.tatmou.com/matlabcentral/profile/authors/22049557 标签:www.tatmou.com, 2005:问题/ 1460459 2021 - 09 - 25 - t08:29:42z 2021 - 09 - 26 - t21:44:30z 重复测量方差分析在MATLAB的语音参数的意义 我n = 32个样本大小,测量2主要参数发出语音和视觉反应时间(RT)在4个不同时间T1基线,T2 10点,3 T3, T4第二天早上7点. .从声音数据4参数频率、抖动、微光和曼使用Praat软件中提取出来的。我想要找出语音参数之间的显著差异,reactiong时间这四个时间间隔在MATLAB中使用R方差分析。请给建议和解决方案。金宝搏官方网站 萨维白肢野牛 //www.tatmou.com/matlabcentral/profile/authors/14970136 标签:www.tatmou.com, 2005:问题/ 1461229 2021 - 09 - 26 - t21:34:36z 2021 - 09 - 26 - t21:34:36z 如何制作gif在MATLAB使用mp4文件吗 我想我的mp4视频压缩成一个gif。 阿努普pandey //www.tatmou.com/matlabcentral/profile/authors/24071049 标签:www.tatmou.com, 2005:问题/ 1461129 2021 - 09 - 26 - t18:38:58z 2021 - 09 - 26 - t21:33:34z 如何策划一个矩阵值在3 d图吗 如何策划一个矩阵值在3 d图x = [0.2:0.5:0.8:1:1.5] y =[0:0.2:0.4:0.6:0.8]我得到了矩阵z =矩阵从excel (5 x5)值,每个值对应于x和y。 abdelmadjid benrabah //www.tatmou.com/matlabcentral/profile/authors/15368338 标签:www.tatmou.com, 2005:问题/ 1461124 2021 - 09 - 26 - t18:32:52z 2021 - 09 - 26 - t21:28:58z 从表中选择一个记录不提供一个精确值 我有一个表,我将加载Excel数据(我还没做过,但我认为我可以粘贴数据)。我的问题是如何选择一个记录。第一个值连续的表将包含时间和选择的“关键”。Matlab将运行一个模拟时间为每次迭代的进步。问题是在迭代中列出的时间不精确匹配表中的列的第一行。Matlab有一个简单的命令,以选择最接近的值的表行第1列(时间)提供从迭代的时间什么时候? 罗伯特Demyanovich //www.tatmou.com/matlabcentral/profile/authors/22629815 标签:www.tatmou.com, 2005:问题/ 1461224 2021 - 09 - 26 - t21:26:30z 2021 - 09 - 26 - t21:26:30z CVX误差线 T = 3;K = 3;q = 1;p = (10 1 8);v = {};v (1) = {(0.08 0.01 1.13;0 0.02 - 1.1;0 0 1.03]};v (2) = {(0.06 0.03 1.07;0 0.04 - 1.16; 0 0 1.04]}; v(3,:) = {[0.03 0.01 1.08; 0 0.08 1.01; 0 0.0 1.1]}; cvx_begin v_max = [0.08 0.01 1.13; 0 0.04 1.16; 0 0 1.1]; variable m(3); expression P(3); for i = 1:T P(i) = (1+1/100)^(m(i)-i)*(1+sum(v_max(m(i),:))); end minimize(sum(P)) subject to for i = 1:T m(i)<=T; m(i)>=i; end cvx_end I get an error as Aniz Mohamed Rafeeck //www.tatmou.com/matlabcentral/profile/authors/23941607 标签:www.tatmou.com, 2005:问题/ 411987 2018 - 07 - 25 - t02:19:19z 2021 - 09 - 26 - t21:16:16z 我们如何评估敏感性和特异性分类学习者应用代码生成? 我已经训练数据集分类学习者应用MATLAB,但我想评估敏感性和特异性通过控制代码生成。 Javaid伊克巴尔 //www.tatmou.com/matlabcentral/profile/authors/11226551 标签:www.tatmou.com, 2005:问题/ 105854 2013 - 10 - 26 - t04:00:00z 2021 - 09 - 26 - t21:13:52z 我怎么能在离线安装MATLAB或其他MathWorks产品机器吗?下载188bet金宝搏 我需要在一台机器上安装MATLAB不能连接到互联网。我怎么能这样做呢? MathWorks支金宝app持团队 //www.tatmou.com/matlabcentral/profile/authors/4622813 标签:www.tatmou.com, 2005:问题/ 1461214 2021 - 09 - 26 - t21:13:29z 2021 - 09 - 26 - t21:13:29z 发现贝塞尔函数的参数(1日)返回已知的解决方案 我有一个表单0.3005 = j₀方程(2.405 x / 165),想要找到x的值(0到160之间),满足这个方程。这个用Matlab我会如何编码?这是我迄今为止。信谊r = 5交货;R = 160;F = (2.405 * r) / (r +交货);率= 0.3005;q = F = =比率;vpasolve (besselj (0 F)) WolframAlpha返回这个方程r = 128.15,但我似乎无法从Matlab得到这个值。 Matlab12345 //www.tatmou.com/matlabcentral/profile/authors/17123788 标签:www.tatmou.com, 2005:问题/ 1461209 2021 - 09 - 26 - t21:13:26z 2021 - 09 - 26 - t21:13:26z 尝试检索和显示一个输入的初始值 从disp (q),我试图展示所选择的时间间隔开始时从x0 x1,循环就这样x0, x1得到改变,因此我想指定一个= x0的初始值,和b = x1的初始值,但是Matlab给出了一个错误:错误sekantH(3)行x0 =一个;谁有解决这个问题我吗?- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -函数f = sekantH (f, x0, x1) x0 =;x1 = b;长格式;托尔= 10 ^ -10;数= 0;因为我= 1:1000 x = x1-f (x1) * (x1-x0) / (f (x1) - f (x0));数=计数+ 1;如果abs (x1 x) < tol打破结束x0 = x1; x1 = x; f = x; count; q = ['Number of iterations on the interval', ' [', num2str(a), ',' ,num2str(b), '] is = ', num2str(count), '. And the root is: ']; disp(q) end 易卜拉欣·阿里 //www.tatmou.com/matlabcentral/profile/authors/23569230 标签:www.tatmou.com, 2005:问题/ 1460774 2021 - 09 - 26 - t00:52:58z 2021 - 09 - 26 - t21:09:58z 龙格-库塔4日订单 我必须发展子例程姑娘叫RK4 (t, delta_t y);在t =时间,delta_t =时间增量,y =向量的状态变量(2 n)。我们还必须发展subrotine文件名为方程式(t y y_dot)计算drivatiev systme。主要目的是为了解决这个差方程。我的问题是我不知道我应该放在输入MATLab解决上述方程。有没有教程或视频展示其中解释了如何使用MatLab RK4吗?任何帮助将不胜感激。 安佳妮 //www.tatmou.com/matlabcentral/profile/authors/15999136 标签:www.tatmou.com, 2005:问题/ 1460659 2021 - 09 - 25 - t17:44:29z 2021 - 09 - 26 - t21:09:14z 如何减少ylabel和y之间的空间蜱虫在Matlab的阴谋? 如何减少y-label和y-ticks之间的空间,换句话说如何接近y-label轴。 努尔Bano //www.tatmou.com/matlabcentral/profile/authors/11967560 标签:www.tatmou.com, 2005:问题/ 1461104 2021 - 09 - 26 - t18:05:45z 2021 - 09 - 26 - t21:05:48z 乘以两个矩阵 乔丹= [cos (kj hj)我* sin (kj hj) / kj;我* kj * sin (kj hj)因为(kj hj)];kj =√nj ^ 2 * k02-x ^ 2);n1 = 1.521; n2 = 2.66; k0 = 1; h1 = 1.5 e-6; h2 = 1 e-6 M1乘*平方米 shiv白肢野牛 //www.tatmou.com/matlabcentral/profile/authors/23092419 标签:www.tatmou.com, 2005:问题/ 1460839 2021 - 09 - 26 - t05:19:44z 2021 - 09 - 26 - t21:03:54z 如何减少空间轴标签和轴之间的蜱虫? x = 1分54秒;情节(x, y₁, k - +, x, y2, b - *) xlim ([1 54] xticklabel_rotate([1分54秒),90 D包含(示例1)ylabel(样2)如何减少空间轴标签和轴之间的蜱虫,i, e。,如何得到轴标签接近轴。 努尔Bano //www.tatmou.com/matlabcentral/profile/authors/11967560 标签:www.tatmou.com, 2005:问题/ 402018 2018 - 05 - 22 - t18:18:42z 2021 - 09 - 26 - t21:02:53z 我不能运行此代码,请修复它 如果真正的%这段代码从4号线N = 33;%多的分量λ= (0.3979;0.8209;0.7666;0.1206;0.8577;…0.2586;0.7049;0.2429; 0.3521; 0.8118; ... 0.1850; 0.5135; 0.3920; 0.7194; 0.6776; ... 0.2065; 0.3197; 0.3226; 0.8566; 0.3348; ... 0.8950; 0.8833; 0.6400; 0.0412; 0.0518; ... 0.9458; 0.2257; 0.7303; 0.2191; 0.0101; ... 0.7205; 0.1289; 0.1327]; MTTR = [0.3546; 0.6970; 0.8490; 0.8724; 0.0411; ... 0.2098; 0.7382; 0.7379; 0.1978; 0.4534; ... 0.2299; 0.0704; 0.3979; 0.8555; 0.6809; ... 0.2954; 0.8536; 0.7195; 0.3405; 0.0495; ... 0.0174; 0.7846; 0.2554; 0.6597; 0.8496; ... 0.2965; 0.2238; 0.0066; 0.0684; 0.4306; ... 0.7953; 0.7759; 0.9673]; power = [0 55 0 16 0 0 0 5 34 0 0 4 40 7 45 15 146 82 ... 0 67 9 405 45 83 0 0 4 0 32 0 28 2 0 450]; users = ceil(power/2)-1; %% failure history duration = 1000; % years interuption = 0; outage_time = 0; maxT = 0; for i = 1:N downT(i),upT(i)] = failure_history2(lambda(i),MTTR(i),duration); cur = max(upT{i}(1:end)); if (maxT < cur) maxT = cur; end interuption = interruption + length(downT{i})-1; outage_time = outage_time + sum(upT{i}-downT{i}); % figure; line(1:length(downT{i}),downT{i}); line(1:length(downT{i}),upT{i},'color','r','Marker','.'); end % INDEXES calculation average_interuption = interuption/duration; average_outage_time = outage_time/duration; customers_num = sum(users); total_power = sum(power); SAIFI = average_interuption*customers_num/customers_num; SAIDI = average_outage_time*customers_num/customers_num; CAIDI = SAIDI/SAIFI; ASAI = (customers_num*8760 - average_outage_time*customers_num)/(customers_num*8760); EUE = average_outage_time*total_power; % kW*hour disp('-------------------------------'); disp('Step 1'); disp(['SAIFI ' num2str(SAIFI)]); disp(['SAIDI ' num2str(SAIDI)]); disp(['CAIDI ' num2str(CAIDI)]); disp(['ASAI ' num2str(ASAI)]); disp(['EUE ' num2str(EUE)]); Fajri Mardiansyah //www.tatmou.com/matlabcentral/profile/authors/12771486 标签:www.tatmou.com, 2005:问题/ 1460954 2021 - 09 - 26 - t10:30:02z 2021 - 09 - 26 - t21:01:48z 6 x6矩阵牛顿迭代需要帮助! ! ! 嗨Matlab专家,请帮助我,我想建立一个脚本使用牛顿拉富生方法计算6个变量:X, Y, Z,α,β,伽马如下矩阵。但我不能成功。请帮助纠正我。很多谢谢!信谊X Y Zαβ伽马;% # codegen函数=π/ 180;theta_b = 15 *函数;theta_p = 15 *函数;R_b = 1;R_p = 0.9; Q0=1; %initial leg length p=[X;Y;Z]; B1=[R_b*cos(15*deg2rad);R_b*sin(15*deg2rad);0]; B2=[R_b*cos(105*deg2rad);R_b*sin(105*deg2rad);0]; B3=[R_b*cos(135*deg2rad);R_b*sin(135*deg2rad);0]; B4=[R_b*cos(225*deg2rad);R_b*sin(225*deg2rad);0]; B5=[R_b*cos(255*deg2rad);R_b*sin(255*deg2rad);0]; B6=[R_b*cos(345*deg2rad);R_b*sin(345*deg2rad);0]; Bx1=B1(1,:); Bx2=B2(1,:); Bx3=B3(1,:); Bx4=B4(1,:); Bx5=B5(1,:); Bx6=B6(1,:); By1=B1(2,:); By2=B2(2,:); By3=B3(2,:); By4=B4(2,:); By5=B5(2,:); By6=B6(2,:); Bz1=B1(3,:); Bz2=B2(3,:); Bz3=B3(3,:); Bz4=B4(3,:); Bz5=B5(3,:); Bz6=B6(3,:); P1=[R_p*cos(75*deg2rad);R_b*sin(75*deg2rad);0]; P2=[R_p*cos(165*deg2rad);R_b*sin(165*deg2rad);0]; P3=[R_p*cos(195*deg2rad);R_b*sin(195*deg2rad);0]; P4=[R_p*cos(285*deg2rad);R_b*sin(285*deg2rad);0]; P5=[R_p*cos(315*deg2rad);R_b*sin(315*deg2rad);0]; P6=[R_p*cos(405*deg2rad);R_b*sin(405*deg2rad);0]; Px1=P1(1,:); Px2=P2(1,:); Px3=P3(1,:); Px4=P4(1,:); Px5=P5(1,:); Px6=P6(1,:); Py1=P1(2,:); Py2=P2(2,:); Py3=P3(2,:); Py4=P4(2,:); Py5=P5(2,:); Py6=P6(2,:); Pz1=P1(3,:); Pz2=P2(3,:); Pz3=P3(3,:); Pz4=P4(3,:); Pz5=P5(3,:); Pz6=P6(3,:); L1=1.1560; L2=1.7842; L3=1.8500; L4=1.1317; L5=0.8071; L6=0.9340; f1=((X+((cos(gama)*cos(beta))*Px1)+(((cos(gama)*sin(beta)*sin(alpha))-(sin(gama)*cos(alpha)))*Py1)+(((cos(gama)*sin(beta)*cos(alpha))+(sin(gama)*sin(alpha)))*Pz1)-Bx1)^2+(Y+((sin(gama)*cos(beta))*Px1)+(((sin(gama)*sin(beta)*sin(alpha))+(cos(gama)*cos(alpha)))*Py1)+(((sin(gama)*sin(beta)*cos(alpha))-(cos(gama)*sin(alpha)))*Pz1)-By1)^2+(Z+((-sin(beta))*Px1)+((cos(beta)*sin(alpha))*Py1)+((cos(beta)*cos(alpha))*Pz1)-Bz1)^2)^0.5-Q0-L1; f2=((X+((cos(gama)*cos(beta))*Px1)+(((cos(gama)*sin(beta)*sin(alpha))-(sin(gama)*cos(alpha)))*Py1)+(((cos(gama)*sin(beta)*cos(alpha))+(sin(gama)*sin(alpha)))*Pz1)-Bx1)^2+(Y+((sin(gama)*cos(beta))*Px1)+(((sin(gama)*sin(beta)*sin(alpha))+(cos(gama)*cos(alpha)))*Py1)+(((sin(gama)*sin(beta)*cos(alpha))-(cos(gama)*sin(alpha)))*Pz1)-By1)^2+(Z+((-sin(beta))*Px1)+((cos(beta)*sin(alpha))*Py1)+((cos(beta)*cos(alpha))*Pz1)-Bz1)^2)^0.5-Q0-L2; f3=((X+((cos(gama)*cos(beta))*Px1)+(((cos(gama)*sin(beta)*sin(alpha))-(sin(gama)*cos(alpha)))*Py1)+(((cos(gama)*sin(beta)*cos(alpha))+(sin(gama)*sin(alpha)))*Pz1)-Bx1)^2+(Y+((sin(gama)*cos(beta))*Px1)+(((sin(gama)*sin(beta)*sin(alpha))+(cos(gama)*cos(alpha)))*Py1)+(((sin(gama)*sin(beta)*cos(alpha))-(cos(gama)*sin(alpha)))*Pz1)-By1)^2+(Z+((-sin(beta))*Px1)+((cos(beta)*sin(alpha))*Py1)+((cos(beta)*cos(alpha))*Pz1)-Bz1)^2)^0.5-Q0-L3; f4=((X+((cos(gama)*cos(beta))*Px1)+(((cos(gama)*sin(beta)*sin(alpha))-(sin(gama)*cos(alpha)))*Py1)+(((cos(gama)*sin(beta)*cos(alpha))+(sin(gama)*sin(alpha)))*Pz1)-Bx1)^2+(Y+((sin(gama)*cos(beta))*Px1)+(((sin(gama)*sin(beta)*sin(alpha))+(cos(gama)*cos(alpha)))*Py1)+(((sin(gama)*sin(beta)*cos(alpha))-(cos(gama)*sin(alpha)))*Pz1)-By1)^2+(Z+((-sin(beta))*Px1)+((cos(beta)*sin(alpha))*Py1)+((cos(beta)*cos(alpha))*Pz1)-Bz1)^2)^0.5-Q0-L4; f5=((X+((cos(gama)*cos(beta))*Px1)+(((cos(gama)*sin(beta)*sin(alpha))-(sin(gama)*cos(alpha)))*Py1)+(((cos(gama)*sin(beta)*cos(alpha))+(sin(gama)*sin(alpha)))*Pz1)-Bx1)^2+(Y+((sin(gama)*cos(beta))*Px1)+(((sin(gama)*sin(beta)*sin(alpha))+(cos(gama)*cos(alpha)))*Py1)+(((sin(gama)*sin(beta)*cos(alpha))-(cos(gama)*sin(alpha)))*Pz1)-By1)^2+(Z+((-sin(beta))*Px1)+((cos(beta)*sin(alpha))*Py1)+((cos(beta)*cos(alpha))*Pz1)-Bz1)^2)^0.5-Q0-L5; f6=((X+((cos(gama)*cos(beta))*Px1)+(((cos(gama)*sin(beta)*sin(alpha))-(sin(gama)*cos(alpha)))*Py1)+(((cos(gama)*sin(beta)*cos(alpha))+(sin(gama)*sin(alpha)))*Pz1)-Bx1)^2+(Y+((sin(gama)*cos(beta))*Px1)+(((sin(gama)*sin(beta)*sin(alpha))+(cos(gama)*cos(alpha)))*Py1)+(((sin(gama)*sin(beta)*cos(alpha))-(cos(gama)*sin(alpha)))*Pz1)-By1)^2+(Z+((-sin(beta))*Px1)+((cos(beta)*sin(alpha))*Py1)+((cos(beta)*cos(alpha))*Pz1)-Bz1)^2)^0.5-Q0-L6; F=[f1;f2;f3;f4;f5;f6]; G=[diff(f1,X) diff(f1,Y) diff(f1,Z) diff(f1,alpha) diff(f1,beta) diff(f1,gama);diff(f2,X) diff(f2,Y) diff(f2,Z) diff(f2,alpha) diff(f2,beta) diff(f2,gama);diff(f3,X) diff(f3,Y) diff(f3,Z) diff(f3,alpha) diff(f3,beta) diff(f3,gama);diff(f4,X) diff(f4,Y) diff(f4,Z) diff(f4,alpha) diff(f4,beta) diff(f4,gama);diff(f5,X) diff(f5,Y) diff(f5,Z) diff(f5,alpha) diff(f5,beta) diff(f5,gama);diff(f6,X) diff(f6,Y) diff(f6,Z) diff(f6,alpha) diff(f6,beta) diff(f6,gama)]; H=inv(G); F0=[0;0;0;0;0;0]; n=10; e=10^-4; for i=1:n F1=F0-H*F; F0=F1; end X Y Z alpha beta gama 杰克董 //www.tatmou.com/matlabcentral/profile/authors/16542405 标签:www.tatmou.com, 2005:问题/ 314438 2016 - 11 - 28 - t05:00:00z 2021 - 09 - 26 - t20:59:50z 为什么我在安装过程中提示需要激活密钥或激活吗? 为什么我在安装过程中提示需要激活密钥或激活吗? MathWorks支金宝app持团队 //www.tatmou.com/matlabcentral/profile/authors/4622813 标签:www.tatmou.com, 2005:问题/ 1460974 2021 - 09 - 26 - t11:07:39z 2021 - 09 - 26 - t20:54:00z 绘图功能,其中包括一笔 嘿,我想情节的结构函数测量的温度数据。netcdf数据。文件。我想计算k求和然后情节/ x。这是我的代码:startLoc = (497870 - 536410);ncread (030608 _nc.100hz_data1, Tt, startLoc);Temp = ncread (“030608 _nc.100hz_data1”、“Tt”);我x = [0:10:10000];k = (497870、536410);信谊kx f = matlabfunction (symsum((临时(k)临时(k + x)) ^ 2, k, 497870, 536410));情节(x, y); I then get the following Errors: >> Sum Error using internal.matlab.imagesci.nc/read (line 554) Wrong number of input arguments. Error in ncread (line 66) vardata = ncObj.read(varName, varargin{:}); Error in Sum (line 3) ncread('030608_nc.100Hz_data1','Tt',startLoc); Thanks for your help :) 乔纳斯Reibenspies //www.tatmou.com/matlabcentral/profile/authors/15310710 标签:www.tatmou.com, 2005:问题/ 1461114 2021 - 09 - 26 - t18:20:12z 2021 - 09 - 26 - t20:50:56z 试图通过一个变量名称的文件xlsread for循环 我试图用xlsread打开一个for循环的每次迭代变量文件名。我最初的代码是用于vj = 1: prime_file_num BaseName = 15 _file_”;k = prime_file_num1 (vj, 1);文件名= [BaseName num2str (k)];[~,~,画]= xlsread(文件名);在一次迭代,就似乎永远磨掉试图读取下一个文件,现在磨甚至在第一次迭代。我试着改变vj = 1的代码:prime_file_num BaseName = 15 _file_”;k = prime_file_num1 (vj, 1);文件名= [BaseName num2str (k)];路径名= '文件C: \ \ MATLAB \ FileName.xlsx”; [~,~,rawS] = xlsread(pathname); But that just returns the error that xlsread can't find the file--its trying to open a file named 'C:\Documents\MATLAB\FileName.xlsx, rather than '15_File_2' for example. Can anybody tell me what I'm doing wrong or is what I'm trying even possible. Thanks 马克。博得纳 //www.tatmou.com/matlabcentral/profile/authors/18292696 标签:www.tatmou.com, 2005:问题/ 1459909 2021 - 09 - 24 - t08:24:02z 2021 - 09 - 26 - t20:48:35z 安装程序安装Matlab作为根用户R2021b时挂在Ubuntu 20.04 我的操作系统是Ubuntu 20.04 LTS。我作为根用户必须安装Matalb,总是做了。这是历史性的,因为所有程序是安装在/ opt专家。我现在MATLAB R2021b下载和安装程序安装MATLAB作为根用户R2021b时挂在Ubuntu 20.04,命令sudo。/安装就挂一个闪烁的光标,不显示MATLAB GUI安装。作为第一个试图解决方案我已经创建了一个MATLAB在/ opt / R2021b文件夹,没有帮助。我也试图安装R2021b通常与违约虽然现在我进步好Matlab GUI,但默认位置/usr/local/MATLAB/R2021b不能创建/然后我必须上。我总是不得不安装MATLAB作为根。任何建议将MATLAB在Ubuntu安装GUI显示R2021b将不胜感激。谢谢你! 史蒂芬Bredenhann //www.tatmou.com/matlabcentral/profile/authors/17100800 标签:www.tatmou.com, 2005:问题/ 1461139 2021 - 09 - 26 - t18:54:53z 2021 - 09 - 26 - t20:44:50z 独特的价值为每个序列的两个相应的变量 你好,我想找一个序列的惟一值a和B的值对应的值例如:a = [1 1 1 2 2 1 1 1 3 3 2 2 2 3 3 3] B =[7 7 7 9 9 7 7 7 7 7 9 9 9 7 7 7]输出Aa = (1 2 3) Bb =[7 9 7]如何实现这一目标? 阿丽亚娜莫拉 //www.tatmou.com/matlabcentral/profile/authors/23633184 标签:www.tatmou.com, 2005:问题/ 1459459 2021 - 09 - 23 - t18:04:47z 2021 - 09 - 26 - t20:43:56z 两个3 * 3矩阵乘法在matlab中使用for循环。 你好;我需要两个3 * 3矩阵的乘法([3 3]*[3 3])使用for循环。谢谢。实际上我要做matlab矩阵乘法的代码。我们将两个矩阵作为一个来自用户的输入并执行在matlab矩阵乘法。这个可以用于数组在matlab乘法。 maede曼迪 //www.tatmou.com/matlabcentral/profile/authors/23455172 标签:www.tatmou.com, 2005:问题/ 1461204 2021 - 09 - 26 - t20:43:08z 2021 - 09 - 26 - t20:43:08z 如何计算水平和垂直相关的音频在matlab ? 嗨如何计算水平和垂直相关的音频在matlab ? reta乔恩 //www.tatmou.com/matlabcentral/profile/authors/23139156 标签:www.tatmou.com, 2005:问题/ 1461064 2021 - 09 - 26 - t16:15:19z 2021 - 09 - 26 - t20:42:14z 个别样品怎么能视觉的阴谋 像罪(2 *π* 100 * t)和t是在0 - 0.5之间,怎么可能有25个样品吗? 燕陈 //www.tatmou.com/matlabcentral/profile/authors/23835481 标签:www.tatmou.com, 2005:问题/ 1459559 2021 - 09 - 23 - t20:00:22z 2021 - 09 - 26 - t20:40:36z 墨西哥人错误的路径名空间 我跑步Matlab R2016b(不,我不能升级它,这就是我的雇主许可)在Windows上,并试图用墨西哥人有人给了我一个c++编译脚本。我需要包括MySQL的编译,我想这样做如下:墨西哥人> <我的脚本我'C: \ \ MySQL \ MySQL服务器8.0 \程序文件包括\ ' MySQL - l 'C: \程序文件\ \ MySQL服务器8.0 \ lib -lmysqlclient我得到以下错误:建筑与“MinGW64编译器(c++)”。使用墨西哥人g++错误:错误:文件\ MATLAB \ R2016b /走读生包括":\计划:无效的论点g++:错误:文件\ MATLAB \ R2016b /模型/包括-fexceptions -fno-omit-frame-pointer化c++ 金宝app11 - o -DNDEBUG C:\Users\marina\ ZooScanDatabase_scripts_GUI_access_09Jun2021_R2016b \ mysql。cpp - o C:\Users\marko\AppData\Local\Temp\ mex_71592438356584_12624 \ mysql。obj:没有这样的文件或目录g++:致命错误:没有输入文件编译终止。它看起来像墨西哥人与空间有问题的路径名我给我和- l。单引号和双qotes我尝试了不同的组合,以及任何报价,但没有效果。有办法解决这个问题吗? 玛丽娜Frants //www.tatmou.com/matlabcentral/profile/authors/24000450 标签:www.tatmou.com, 2005:问题/ 1461084 2021 - 09 - 26 - t17:38:30z 2021 - 09 - 26 - t20:37:59z 独特的价值观为每一个序列 你好,我想找每个序列的惟一值。例如,考虑向量:x = [1 1 1 1 2 2 1 1 1 2 3 3 3];输出(惟一的值)应该:y = [1 2 1 3 2];我怎样才能实现呢? 阿丽亚娜莫拉 //www.tatmou.com/matlabcentral/profile/authors/23633184 标签:www.tatmou.com, 2005:问题/ 1460699 2021 - 09 - 25 - t19:29:46z 2021 - 09 - 26 - t20:32:29z 如何检索列表的数量的平均值法模拟推导? 你好!我目前使用下面的代码来计算平均5000数字模拟与正态分布与变化的平均值和标准偏差,分别从75年到125年和1到40。n = 5000;%的模拟,样本量x1 = 75:125;%的意思是模拟范围日元= 1;%标准差范围i = 1:长度(x1) %对j = 1:长度(y1) % sd Exp_Pw (i, j) =平均(0.5 * (normrnd (x1 (i),日元(j), n, 1)));结束结束的问题是我不知道的5000数字平均从哪里来,我想可能是单元阵列有信息吗?(如果这是名称),请允许我使用这些不同的模拟数字在其他操作。知道怎么做吗?非常感谢! Angelavtc //www.tatmou.com/matlabcentral/profile/authors/17242946 标签:www.tatmou.com, 2005:问题/ 1461199 2021 - 09 - 26 - t20:28:55z 2021 - 09 - 26 - t20:28:55z 每月测量变量的变化,“环境、社会和治理” 背景:我在进行一些研究股票回报特征与公司的环境、社会和治理分数。具体地说,我想测试如果投资公司提高他们的环境、社会和治理成绩在过去12个月收益率更高的回报。问题:我如何衡量每月改变变量的环境、社会和治理绝对值?下面的代码。提前谢谢!环境、社会和治理=兰德(100100);毫克当量=兰德(100100);ret =兰德(100100);T =长度(esg);nAss =大小(环境、社会和治理,2); numPort=3; k=1:(numPort-1); prctlVals=100*(k*(1/numPort)); breakeffort=NaN(T,numPort-1); % loop for ESG effort for i=12:T; effort(i,k)=esg(i,k)-esg(i-11,k); end % loop for breakpoints for i=1:T; breakeffort(i,:)= prctile(effort(i,:),prctlVals); end; bestret=NaN(T,nAss); bestmeq=NaN(T,nAss); worstret=NaN(T,nAss); worstmeq=NaN(T,nAss); besg=NaN(T,nAss); wesg=NaN(T,nAss); % allocating according to best/worst-in-class 12m holding period for i=1:11:T-11; for k=1:nAss; if esg(i,k)>=breakeffort(i,numPort-1); bestret(i:i+11,k)=ret(i:i+11,k); bestmeq(i:i+11,k)=meq(i:i+11,k); besg(i:i+11,k)=esg(i:i+11,k); end if esg(i,k)<=breakeffort(i,1); worstret(i:i+11,k)=ret(i:i+11,k); worstmeq(i:i+11,k)=meq(i:i+11,k); wesg(i:i+11,k)=esg(i:i+11,k); end end end % Weights wbest=NaN(T,nAss); wworst=NaN(T,nAss); for i=1:T; for k=1:nAss; wbest(i,k)=bestmeq(i,k)/nansum(bestmeq(i,:)); wworst(i,k)=worstmeq(i,k)/nansum(worstmeq(i,:)); end end % Calculating weighted and equal portfolio return bestwret=NaN(T,nAss); worstwret=NaN(T,nAss); bestVW=NaN(T,1); bestEW=NaN(T,1); worstVW=NaN(T,1); worstEW=NaN(T,1); for i=1:T; for k=1:nAss; bestwret(i,k)=bestret(i,k)*wbest(i,k); worstwret(i,k)=worstret(i,k)*wworst(i,k); end bestVW(i)=nansum(bestwret(i,:)); worstVW(i)=nansum(worstwret(i,:)); bestEW(i)=nansum(bestret(i,:)/nnz(~isnan(bestret(i,:)))); worstEW(i)=nansum(worstret(i,:)/nnz(~isnan(worstret(i,:)))); end 奥利弗Røst //www.tatmou.com/matlabcentral/profile/authors/18399075 标签:www.tatmou.com, 2005:问题/ 1445349 2021 - 09 - 02 - t13:49:26z 2021 - 09 - 26 - t20:28:52z 如何加快. txt文件保存数据? 你好,我工作在大型数据——几个数百waveforems,每10 e7的采样率。我的目标是将数据保存到txt文件。目前我用“writematrix”和“附加”包括我所需要的所有信息。我的部分代码看起来:i = 1:长度(信号)writematrix(抽样频率(赫兹):,SaveFile,“写模式”,“附加”);writematrix (SampRate SaveFile,“写模式”,“附加”);writematrix(测试时间(秒):,SaveFile,“写模式”,“添加”);SaveFile writematrix (TestTime (i),“写模式”,“添加”);writematrix(振幅(mV):, SaveFile,“写模式”,“附加”);SaveFile writematrix(信号{我},“分隔符”,“空间”,“写模式”,“添加”);SaveFile writematrix(“,“写模式”,“添加”); end As for now, the procoess of saving the data take forever. Is there any way to speed it up? 阿斯特罗 //www.tatmou.com/matlabcentral/profile/authors/19653086 标签:www.tatmou.com, 2005:问题/ 1459944 2021 - 09 - 24 - t09:27:04z 2021 - 09 - 26 - t20:28:28z 内置的“过滤器”功能的作品大大快在Matlab生成的C代码 大家好。我有一个算法使用“过滤器”功能。我们正在测试生成的C版本的主要瓶颈(大约50%的整个时间)在C代码相关处理的“过滤器”,和函数在这叫拿66%。但在Matlab告诉这个函数的完全不同的故事,甚至在“过滤”并不是最耗费时间内函数调用,但像前三。和函数调用“过滤器”就像前十只在分析(如4 - 5%而不是66%)。不幸的是“过滤”是内置函数Matlab所以我不能配置在Matlab真正理解“更多”这一问题。是什么导致了这种行为?我试图以单线程模式运行matlab和玩优化代码生成和编译器标志,但这并不能改变整体的“瓶颈”。 Jakub乔恩 //www.tatmou.com/matlabcentral/profile/authors/12804907 标签:www.tatmou.com, 2005:问题/ 1461194 2021 - 09 - 26 - t20:16:19z 2021 - 09 - 26 - t20:19:02z 如何改变变量值为每一个for循环迭代? 我有一个在for循环,使用多个变量方程。所有的变量(变量a除外)给出了一个txt文件。我希望变量变化值在每次循环后在这个for循环:= 5、10、15、20日25 x 200% Txt文件数据长度f =数据(:1);%的长度是200 z =数据(:,2);%的长度是200 x =数据(:,3);%长度是200 = [5;10;15;20;25)n = 1:长度l (n) (x) = f (n) *(一)- ((z (n))。* ()); end Mathematically, it would look like this: l(n) = f(n)*(5) - (z(n)*(5)) <> then it would loop to the next a value: l(n) = f(n)*(10) - (z(n)*(10)) <> then it would loop to the next a value: l(n) = f(n)*(15) - (z(n)*(15)) <> 安德鲁马屁精 //www.tatmou.com/matlabcentral/profile/authors/23626393 标签:www.tatmou.com, 2005:问题/ 1459134 2021 - 09 - 23 - t10:08:57z 2021 - 09 - 26 - t20:11:03z 从bayesopt困惑最好了,估计可行点吗? 你好,我一直在尝试使用bayesopt研究问题,得到不同的结果。我决定尝试一个简单的例子,试图更好地理解算法。代码:%变量x = optimizableVariable (“x”,[0, 1],“类型”,“真正的”);y = optimizableVariable (“y”,[0, 1],“类型”,“真正的”);optimisation_variables = (x, y);% = bayesopt bayesopt运行结果(@negSumSquared optimisation_variables,“MaxObjectiveEvaluations”, 100年,…“IsObjectiveDeterministic”,的确,“AcquisitionFunctionName”、“expected-improvement-plus”);% = negSumSquared目标函数函数结果= - (X (X)的结果。x ^ 2 + X.y ^ 2);最后当我运行这个bayesopt生成表面,产生以下输出:最佳观察可行点:0.99962 - 0.99902 x y _________ xxx最佳估计可行点(根据模型):_________ 0.0004718 - 0.99888 x y ____困惑我很多是根据模型估计的最佳点。当我运行下面的代码片段:X = 0:0.01:1; Y = X; for i = 1:length(X) for j = 1:length(Y) Z(i, j) = predict(results.ObjectiveFcnModel, [X(i), Y(j)]); end end I can confirm that min(Z) = -2 when X = 1 and Y = 1 as I would expect. So where is bayesopt pulling its best estimated feasible point from if it is not from the objective function model, and why is it so off compared to the true solution and the fitted points? Thanks a lot for the help, Daniel 丹尼尔·戈登 //www.tatmou.com/matlabcentral/profile/authors/5770972 标签:www.tatmou.com, 2005:问题/ 1461149 2021 - 09 - 26 - t19:05:28z 2021 - 09 - 26 - t20:08:28z 你好,每一个,我可以编写一个代码给我n个整数与不同的每个数字之和与其他没有重复,必须从1米。 阿里 //www.tatmou.com/matlabcentral/profile/authors/24070117 标签:www.tatmou.com, 2005:问题/ 1461164 2021 - 09 - 26 - t19:36:06z 2021 - 09 - 26 - t20:00:33z 如何从一个矩阵绘制特定的值10 * 10吗 我有一个10 * 10的5列的矩阵值> 0和其他5列有价值= 0。我只是想画出输出值> 0。请建议我一个代码。谢谢 纳迪姆泰姬 //www.tatmou.com/matlabcentral/profile/authors/24069825 标签:www.tatmou.com, 2005:问题/ 1460264 2021 - 09 - 24 - t19:36:42z 2021 - 09 - 26 - t19:54:35z 我怎么能增加订单中的数据 我已经给这些数据我想把每一行的长度最短的(S),最长(L)或其他(P或者Q)所以我可以使用这个方程S + L = P + Q到目前为止这是我的代码。 杰克WISNIEWSKI //www.tatmou.com/matlabcentral/profile/authors/16078350 标签:www.tatmou.com, 2005:问题/ 1460304 2021 - 09 - 24 - t21:28:46z 2021 - 09 - 26 - t19:53:29z 月度数据传播到天 你好,我是新Matlab和我试图传播月度数据表索引。例如:日期数据01/1982 0.15 02/1982 -0.02 03/1982 -0.05我想实现……日期数据1/1/1982 0.15 0.15 0.15 0.15 1/2/1982 1/3/1982 1/4/1982 ....-0.02 -0.02 -0.02 -0.02 0.15 1/31/1982 2/1/1982 2/2/1982 2/3/1982 2/4/1982我换句话说,我试图把一个表与240行(20年个月)有7300行(20年天)。这是很容易在matlab可行吗?非常感谢任何建议。 Ajay古普塔 //www.tatmou.com/matlabcentral/profile/authors/23440744 标签:www.tatmou.com, 2005:问题/ 1461189 2021 - 09 - 26 - t19:52:10z 2021 - 09 - 26 - t19:52:10z 正弦信号的采样和FFT信号 有一个50 hz正弦信号信号g (t) =罪(2 *π* 50 * t) 0≤t < 0.1和采样250 hz的速度,我怎么能阴谋这个信号和25个样本定义从0 - 0.1 - 0.1但不inlude年代?我怎么得到这个信号的幅度谱和相位谱吗? 燕陈 //www.tatmou.com/matlabcentral/profile/authors/23835481 标签:www.tatmou.com, 2005:问题/ 1461184 2021 - 09 - 26 - t19:49:21z 2021 - 09 - 26 - t19:49:21z 有可能颜色scatter3根据其均值和最大价值 我有速度分布在3 d cos希尔prrofile散点图。我想看那里的速度增加,面积减少它的价值。 ANKITA MAITY //www.tatmou.com/matlabcentral/profile/authors/11515375 标签:www.tatmou.com, 2005:问题/ 1461179 2021 - 09 - 26 - t19:48:31z 2021 - 09 - 26 - t19:48:31z 模糊图像使用FFT(快速傅里叶变换) 我有一个斜坡的形象(图1.1)。因为每一行的这张图片是一样的,我只是选了第一排,跑FFT,然后自卷积等价于乘法在频域,我乘它的FFT高斯向量。但当我运行传输线产品,我没有得到一个模糊的形象,而不是我只是得到一个完全白色图像(图1.2)。我做错了什么?图1.1,图1.2代码:%导入图像I = imread (“/ MATLAB驱动器/ ramp.png”);%转换为灰度I = rgb2gray(我);imshow (I) %选择一行一行=我(1:);情节(行)%定义高斯向量time_vector = 1:50 0 gaussian_vector = gaussmf (time_vector [1 0]);%计算传输线(FFT () * FFT ()) row_fill =传输线(FFT(行)。* FFT (gaussian_vector))情节(row_fill) %堆栈结果行I_fill = repmat (row_fill, 500, (1);%画出合成图像imshow (I_fill) 卡纳克人Dhotre //www.tatmou.com/matlabcentral/profile/authors/23033637 标签:www.tatmou.com, 2005:问题/ 1461174 2021 - 09 - 26 - t19:47:48z 2021 - 09 - 26 - t19:47:48z 如何修复graythresh错误呢? 你好,我有一个简单的问题与matlab。当我运行下面的代码,它返回错误。什么问题?I = imread (“coins.png”);水平= graythresh(我);我怎么能修复它吗? 马吉德 //www.tatmou.com/matlabcentral/profile/authors/19571784 标签:www.tatmou.com, 2005:问题/ 1461034 2021 - 09 - 26 - t14:40:36z 2021 - 09 - 26 - t19:25:08z 为什么按钮不工作吗? 我写了一个简单的函数图和pusbutton包含创建一个。我预计,按下按钮后,函数将提供答案基于callcack按钮执行的函数:函数[B,成功]= TGA_MAIN (X, Y, L, W, Xb, Yb,磅,世行,字符串)全球B B = 0, X = 0 Xa =成功;丫= Y;La = L;佤邦= W;p = Xb;r = Xb;s =磅;t =白平衡;STR =字符串; handles.load_fig=figure('MenuBar','none','Position',[Xa,Ya,La,Wa]) handles.load_button=uicontrol(handles.load_fig,'style','pushbutton','string',STR,'position',[p,r,s,t]) set(handles.load_button,'callback',{@load_callback,handles}) function load_callback(gcf,event_data,handles) global B x=5; B=x; success=1; My expectation was that after I press button, the answer must be q=5,s=1. However, I see q=0,s=0, which I defined in very beginning of soft. The pressing of the button changes nothing... Example of call: [q,s]=TGA_MAIN(500,400,400,300,120,120,120,50, 'STRING') result is: q = 0 s = 0 谢尔盖Lopatnikov //www.tatmou.com/matlabcentral/profile/authors/5230078 标签:www.tatmou.com, 2005:问题/ 255516 2015 - 11 - 17 - t20:11:03z 2021 - 09 - 26 - t19:24:47z 如何保持数在一个嵌套循环? 你好,我是确定答案很简单但是我不能算出来。假设我有这段代码:I = 1:3 j = 1:3数= ? ?结束结束计数我想要结果数=(1 2 3 4 5 6 7 8 9)谢谢 约翰 //www.tatmou.com/matlabcentral/profile/authors/5918607 标签:www.tatmou.com, 2005:问题/ 1461144 2021 - 09 - 26 - t18:57:23z 2021 - 09 - 26 - t19:18:02z 如何使用interp1命令? 我有代码来绘制这些6数据如下:ph1 = 1;ph2 = 2;ph3 = 3;ph4 = 4;ph5 = 5;ph6 = 6;Vi = 30;签证官= 0:0.1:30;d =签证官。/六世;m1 = d * ph1; m2= d*ph2; m3= d*ph3; m4= d*ph4; m5= d*ph5; m6= d*ph6; floor1= floor(m1); floor2= floor(m2); floor3= floor(m3); floor4= floor(m4); floor5= floor(m5); floor6= floor(m6); Kcm1 = (1-(floor1./(ph1*d))).*(1+floor1-ph1*d) Kcm2 = (1-(floor2./(ph2*d))).*(1+floor2-ph2*d) Kcm3 = (1-(floor3./(ph3*d))).*(1+floor3-ph3*d) Kcm4 = (1-(floor4./(ph4*d))).*(1+floor4-ph4*d) Kcm5 = (1-(floor5./(ph5*d))).*(1+floor5-ph5*d) Kcm6 = (1-(floor6./(ph6*d))).*(1+floor6-ph6*d) figure (1) hold on title('for the output current ripple') xlabel('Duty Cycle') ylabel('Kcm') plot(d,Kcm1) plot(d,Kcm2) plot(d,Kcm3) plot(d,Kcm4) plot(d,Kcm5) plot(d,Kcm6) legend('Phase1','Phase2','Phase3','Phase4','Phase5','Phase6'); grid on hold off What I want to do is that based on an input value (which is going to be a value on the X-axis), I want the output to choose the figures out of these 6 figures that give the minimum Y-axis value. For example, If I put the input value to be 0.5, which is a duty cycle value on the X-axis, then the output should display and recommend (phase-2, phase-4 and figure 6) as they give the minimum value of Y-axis (exactly 0) at this specific input value of 0.5 Another example, If the input value is 0.25, then the recommend figure to be displayed is (phase-4 the yellow one) as this also gives the minimum value on the Y-axis, and so on. I was told that I could use the "interp1" command for each curve and pick the minimum but I don't know how to use it. Please help me out? 穆罕默德Alharbi //www.tatmou.com/matlabcentral/profile/authors/12232891 标签:www.tatmou.com, 2005:问题/ 1461159 2021 - 09 - 26 - t19:15:15z 2021 - 09 - 26 - t19:15:15z 计算体积立方元素的坐标 大家好我要执行三维实体8 nodes-FE分析,我真的需要计算每个立方的体积元素。下面的示例图片的描述。假设我有一个坐标(x, y, z)为每个节点坐标= [0 0 0;0 0 1;1 0 1;2 0 1;2 0 0;1 0 0;0 1 1;1 1 1; 2 1 1; 2 1 0; 1 1 0; 0 1 0] and the corresponding Element connectivites with Element = [ 1 2 3 6 12 7 8 11; 6 3 4 5 11 8 9 10] Please enlighten me to overcome this problem. Thanks for your attention. I'm looking forward to your reply. 常规苏 //www.tatmou.com/matlabcentral/profile/authors/16972302 标签:www.tatmou.com, 2005:问题/ 1461154 2021 - 09 - 26 - t19:06:37z 2021 - 09 - 26 - t19:07:13z 如何计算观察F使用矫正的方法? 我正在进行一些事后我统计方差分析分析作业(这不是真实数据)。我第一次进行了方差分析,看看是有区别的3组(货币、奖金、感情)。%数据输入小集团= [5、4、6、7、5、6、7、5、5、6、6、7、7、5、7、7、8、6、7、7、7、8、7、7、8、5、6、7、7、7];我= [5 4 5 6 7 5 6 7 5 6];好= [6 7 7 5 7 7 8 6 7 7);感觉= [7 8 7 7 8 5 6 7 7 7];%的转置数据行,列anova1 ingroups2 = '(小集团);%单向方差分析(对列作为单独的组)[p(资源统计]= anova1 (ingroups2);我能拒绝零假设,F (2) = 6.18, p = 0.0062,所以我现在已经要求(作业)行为矫正的测试,还有一些其他人。为此,我运行下面的命令。 [c,m,h,gnames] = multcompare(stats,'CType','scheffe'); Using, https://www.danielsoper.com/statcalc/calculator.aspx?id=4 I computed my critical F-value to be 3.35. But how do I compute the observed F in order to compare it against my critical F-value to see if the groups significantly differ? My homework specifically asks for the observed F. I'm a beginner with MATLAB, so I'd appreciate any help. 达拉Bonagura //www.tatmou.com/matlabcentral/profile/authors/23420027 标签:www.tatmou.com, 2005:问题/ 1461059 2021 - 09 - 26 - t16:09:12z 2021 - 09 - 26 - t18:50:12z 解决花费的时间太长,如何优化代码? 基本上,什么标题问道。代码:k = 180;长度= . 05;b = . 01;T0 = 180;Tinf = 25;h = 25;Tsurr = 290;ε= 0.9;θ=每股((b / 2) /长度); stef = 5.67*10^(-8); xchange = b; syms T1 T2 T3 T4 T5 eqn1 = (1-0.5*(xchange/length))*(T0 - T1) + (1-1.5*(xchange/length))*(T2-T1) + ((h*xchange^2)/(k*length*sin(theta)))*(Tinf - T1) + ((epsilon*stef*xchange^2)/(k*length*sin(theta)))*(Tsurr^4 - (T1+273)^4) == 0; eqn2 = (1-1.5*(xchange/length))*(T1 - T2) + (1-2.5*(xchange/length))*(T3-T2) + ((h*xchange^2)/(k*length*sin(theta)))*(Tinf - T2) + ((epsilon*stef*xchange^2)/(k*length*sin(theta)))*(Tsurr^4 - (T2+273)^4) == 0; eqn3 = (1-2.5*(xchange/length))*(T2 - T3) + (1-3.5*(xchange/length))*(T4-T3) + ((h*xchange^2)/(k*length*sin(theta)))*(Tinf - T3) + ((epsilon*stef*xchange^2)/(k*length*sin(theta)))*(Tsurr^4 - (T3+273)^4) == 0; eqn4 = (1-3.5*(xchange/length))*(T3 - T4) + (1-4.5*(xchange/length))*(T5-T4) + ((h*xchange^2)/(k*length*sin(theta)))*(Tinf - T4) + ((epsilon*stef*xchange^2)/(k*length*sin(theta)))*(Tsurr^4 - (T4+273)^4) == 0; eqn5 = 2*k*(xchange/2)*tan(theta)*((T4-T5)/xchange) + 2*h*((xchange/2)/cos(theta))*(Tinf - T5) + 2*epsilon*stef*((xchange/2)/cos(theta))*(Tsurr^4 - (T5 + 273)^4 ) == 0; sol = solve([eqn1, eqn2, eqn3, eqn4, eqn5], [T1, T2, T3, T4, T5]); T1sol = double(sol.T1) T2sol = double(sol.T2) T3sol = double(sol.T3) T4sol = double(sol.T4) T5sol = double(sol.T5) Also, how long would this theoretically take to solve? Thanks. 布洛克法拉利 //www.tatmou.com/matlabcentral/profile/authors/21433362 标签:www.tatmou.com, 2005:问题/ 1461089 2021 - 09 - 26 - t17:45:31z 2021 - 09 - 26 - t18:49:34z 建模浓度(河浓度) 我想模型染料浓度,但我不能让我卡住了。它让一个错误但不会告诉什么是错。任何一个能帮助谢谢吗?%预定义函数(m文件)函数dydt =模型(t y参数,输入)%模型常微分方程(ODE)模型:% dy / dt = f * y (t) + g * u (t t) dxdt = 0; %返回变量如果t - 1 < =参数(3)%延迟初始浓度u_input = 0;其他t_back = t-parameter (3);n =地板(t_back);u_input =输入(n);结束dydt = f * y (t) + g * u (t t)返回;% (.mlx文件)%染料浓度明显;data =负载(“test_data.dat”); time = size(data,1); % simulation time input = data(:,2); % measured top concentration rslt = data(:,3); % measured bottom concentration tspan = [1:1:time]; % time variable inc = data(1,3); % initial bottom concentration %model parameters fparameter = -0.25; gparameter = 0.25; delay = 10.0; options = odeset('RelTol', 1e-3); [t,y]=ode45(@model,tspan,inc,option); plot(tspan, obsv, '-b', 'LineWidth', 0.5); hold on; plot(tspan, input, '-g', 'LineWidth', 0.5); plot(t, y(:,end), '-.m', 'LineWidth', 1); legend('rslt', 'input'); xlabel('time(second)'); ylabel('Concentration'); grid; 鲜明的伏 //www.tatmou.com/matlabcentral/profile/authors/23626639 标签:www.tatmou.com, 2005:问题/ 1459574 2021 - 09 - 23 - t20:45:01z 2021 - 09 - 26 - t18:42:40z 模拟为一个自治系统动力学 你好。我想模拟一个自治系统的动力学由以下方程:x1dot = ax₁+ x2 x2dot = -bx2 + u udot =铜100年我需要模拟动态随机值(x1, x2,和u (t = 0)和100年的随机值常数a, b, c。执行李雅普诺夫分析后给出李亚普诺夫候选函数V(ζ)= 0.5 x1 ^ 2 + 0.5 x2 ^ 2 + 0.5 u ^ 2ζ函数(x1, x2,和你,我确定约束,b和c: 1 > 0 b > / c > 1/2我知道策划微分方程,但从我在网上看到了我想我需要使用数值函数。我x1dot代码如下:函数[x1dot] = f (x1, x2) x1dot x1 + x2 = - *;结束(x1, x2) =数值(“f”, [0200], 0);情节(x1, x2)如果我赋值,代码将运行,但我困惑如何分配100随机变量同时约束大于零。我也是困惑如何分配100随机值x1, x2, u和如何画出他们每个人与时间的情节与每个100轨迹显示。在这个问题上我很困所以感谢任何帮助。谢谢。 马修Tortorella //www.tatmou.com/matlabcentral/profile/authors/23613239 标签:www.tatmou.com, 2005:问题/ 600943 2020 - 09 - 28 - t00:16:06z 2021 - 09 - 26 - t18:39:35z 选择/打开文件不同的工作在不同的操作系统? 作者用Matlab的m文件给我一份试用。后启动,使用应用程序的第一个步骤是选择一个. txt文件打开和处理。作者写在Matlab在Windows 10系统。当我运行它在macOS 10.15.7 Matlab R2019b,选择打开. txt文件并不能像预期的那样运行。的步骤是:——点击“打开”按钮在Matlab应用程序的窗口——当一个文件目录窗格中出现,改变参数选择“所有Matlab文件”到“所有文件*。*”——选择. txt文件和我的问题是,在我改变选择参数”所有文件“如上所述,. txt文件仍然是灰色的,不能选择。所以我试图消除可能的原因。这听起来像是可以在Windows和Mac系统的行为会有所不同吗?我觉得Matlab很OS-blind。或有任何其他建议可能的解决方案吗?金宝搏官方网站 弗兰克·奥唐纳 //www.tatmou.com/matlabcentral/profile/authors/7366214 标签:www.tatmou.com, 2005:问题/ 1460654 2021 - 09 - 25 - t17:43:20z 2021 - 09 - 26 - t18:37:34z 创造1000个不同的矩阵 Bi的我有1000个不同的值,我想创造1000 C矩阵不同的顺序(12日1),其中每个元素(12日1),是矩阵包含是值的Bi和每个元素(12日1),2矩阵包含2 nd Bi的价值。等等。和1000年不同矩阵将打印在命令窗口和它的名字像C1, C2, C3……C1000。 Deepesh Kumar Gupta //www.tatmou.com/matlabcentral/profile/authors/19847993