https://jp.mathworks.com/matlabcentral/answers/questions MATLAB答案-新規の質問 2021 - 09 - 26 - t09:55:27z 标签:jp.mathworks.com, 2005:问题/ 1460909 2021 - 09 - 26 - t08:37:40z 2021 - 09 - 26 - t09:55:27z 加载mat文件匹配特定的字符串,包括不同的字符串 我有一个包含n个。mat文件的文件夹,文件的名称如下所示(2002年到2020年的log10的最新残留物,海拔,纬度,longitude) latest_res_log102002_alt latest_res_log102002_lat latest_res_log102002_long latest_res_log102003_alt latest_res_log102003_lat latest_res_log102003_long . . . .我希望在只搜索年份时一次加载三个文件。即latest_res_log102015_alt、latest_res_log102015_lat和latest_res_log102015_long。怎么做呢?请帮帮我。 穆罕默德优素福 https://jp.mathworks.com/matlabcentral/profile/authors/9098232 标签:jp.mathworks.com, 2005:问题/ 1460914 2021 - 09 - 26 - t08:41:10z 2021 - 09 - 26 - t09:53:59z 如何将所有成功的迭代输出一个接一个地存储在一个表中? 下面的行是用来生成一个逻辑数组,帮助我们定位数据中的一些表,我们如何使用这个数组中的1来一个接一个地将每个成功的迭代输出存储在一个表或矩阵中?对于i= 1: maxsplitting k=1;B = (196611110928:1:196612011745);Array_of_Tables(i,:) = any(ismember(str2num(char(results{k,2}{i}.Date)),B));tableidx =找到(Array_of_Tables);k = k + 1;结束 malak奥萨马 https://jp.mathworks.com/matlabcentral/profile/authors/20681547 标签:jp.mathworks.com, 2005:问题/ 1460899 2021 - 09 - 26 - t08:23:53z 2021 - 09 - 26 - t09:50:02z 如何检查矩阵的列是否有相同的值? 你好,我有一个基本的问题。我有一个7x21的双矩阵,我想将每一列与其他列进行比较。我想知道第一列的值在接下来的20列中是否重复。在所有前五列或其后五列中的第6列中的值。 Agnese Chini https://jp.mathworks.com/matlabcentral/profile/authors/21899607 标签:jp.mathworks.com, 2005:问题/ 1460919 2021 - 09 - 26 - t09:05:30z 2021 - 09 - 26 - t09:21:25z 相等约束下的绝对值 我想知道如何在等式约束下写出绝对值。var10(i) = var10(i-1) + (0.5/4500) * (ABS (0.25*var7(i))) / var9(i) my Input(i)是一个长度为350*1的正整数值向量,这是一个连续变量的测量值。Prob =优化问题;%等式约束probo .约束。econs6 = optimconstr(N);%非线性与absoulte probt . constraints .econs6(1) = var10(1) == (0.5*(1/4500) * abs((var7(1) *0.25))) ./ var9(1);prob.Constraints.econs6 (2: N) = var10 (2: N) = = var10 (1: N - 1) + (0.5 * (1/4500) * abs ((var7 (2: N) * 0.25)))。/ var9 (2: N);x0。var7 = 0 (size(N));x0。var9 = 0 (size(N)); x0.var10 = zeros(size(N)); [values,fval,exitflag,output] = solve(prob,x0,'Options',options); thanks in advance for hints. Housam https://jp.mathworks.com/matlabcentral/profile/authors/5787873 标签:jp.mathworks.com, 2005:问题/ 1460929 2021 - 09 - 26 - t09:20:53z 2021 - 09 - 26 - t09:20:53z 用Ode45求解动力学问题(ISA模型) 如何在微分函数2中表示可变密度?我已经在complex_atm_model中建模了大气密度的高度(这是一维运动模型中的位置),但我在尝试使用ode45求解时遇到了麻烦。什么好主意吗? JXT119 https://jp.mathworks.com/matlabcentral/profile/authors/19513595 标签:jp.mathworks.com, 2005:问题/ 1460924 2021 - 09 - 26 - t09:13:24z 2021 - 09 - 26 - t09:13:24z 在Zynq上使用“Build, Deploy and& Start”时如何结束任务? 大家好,我使用Matlab 2020b和Xilinx Zynq UltraScale+ MPSoC ZCU102评估工具包进行基于模型的开发。我发现,当我构建ARM可执行文件时,“监视和调优”将启动一个任务,该任务将跟随我的“停止时间”,但当我使用“构建、部署和启动”时,直到我关掉Zynq板,该任务才会停止。那么,如何在Zynq上使用“build, Deploy and& Start”方法创建带有停止时间的任务呢?非常感谢 丹 姚 https://jp.mathworks.com/matlabcentral/profile/authors/23013436 标签:jp.mathworks.com, 2005:问题/ 1460894 2021 - 09 - 26 - t08:19:42z 2021 - 09 - 26 - t09:09:11z audiowrite R2020b错误 [y, Fs] = audioread (InFilename);Downsample fprintf('\n下采样的声音\n') x = y(1:2:长度(y));fs2 = Fs/2;%的声音(x, fs2);%保存结果为down.wav audiowrite(x, fs2, 'down.wav'); Babacar迪昂 https://jp.mathworks.com/matlabcentral/profile/authors/10874729 标签:jp.mathworks.com, 2005:问题/ 1446904 2021 - 09 - 05 - t03:22:26z 2021 - 09 - 26 - t09:04:14z 无法读取SPCImage FLIM软件生成的。img文件 我无法将SPCImage FLIM软件生成的8位256x256像素的。img文件读入MATLAB。我无法使用analyze75read(),因为我没有任何与.img文件相关联的头文件,dicomread()返回一个空数组,tgspcread()不起作用,给出以下错误信息:错误使用tgspcread(第183行)路径名/i1。img似乎不是一个SPC格式文件。错误read_lifetime_image(第4行)x= tgspread (filename1); Sabyasachi森 https://jp.mathworks.com/matlabcentral/profile/authors/23465410 标签:jp.mathworks.com, 2005:问题/ 1460904 2021 - 09 - 26 - t08:30:30z 2021 - 09 - 26 - t09:03:15z AppDesigner按“Enter”键停止编辑字段输入 Bellow是我的应用程序(AppDesigner),我想“在[名称/ID]中键入一些内容,然后按“Enter”键调用[转换]按钮”Bellow是我失败的代码,它是“更改-回调”,每次我输入时都会检查。这是不优雅的,我实际上想'Enter'停止输入并调用[convert] BR 狮子座翟 https://jp.mathworks.com/matlabcentral/profile/authors/15002158 标签:jp.mathworks.com, 2005:问题/ 1460884 2021 - 09 - 26 - t08:01:51z 2021 - 09 - 26 - t09:02:01z 求解大频率范围的方程 我想在1Khz到100MHz的频率范围内求解下面的方程。方程为因子=Rsh/(Rsh+j*2*pi*frequency*Lsh),其中Rsh=0.01*pi, Lsh=5*10^-9。但当我运行代码时,它显示矩阵失配频率=1e+3:1e+8;%频率范围Rsh=0.01*pi;d = Rsh +(2 *π*频率*我* 5 * 10 ^ 9);因素= Rsh / d; Tasin Nusrat https://jp.mathworks.com/matlabcentral/profile/authors/24026135 标签:jp.mathworks.com, 2005:问题/ 1460804 2021 - 09 - 26 - t02:48:19z 2021 - 09 - 26 - t08:59:06z 为什么我不能从matlab live脚本打开csv ? 嗨,我是新手,所以这可能是一些基本的,但我想用.csv的文件夹迭代,并使用readmtrix()打开它们,但我得到了错误使用readmatrix(第146行)期望一个字符串标量或字符向量的参数名称错误。下面是我的代码:path = uigetdir();Folder_read = dir(strcat(path,'\my\path\extended\*.csv'));folder_read(folder_read(i).name,1,0);%这里是错误。结束;当我输入控制台>>类(folder_read(I).name)我得到:ans = 'char'我需要做什么才能使它工作? 桑德尔Burian https://jp.mathworks.com/matlabcentral/profile/authors/19685634 标签:jp.mathworks.com, 2005:问题/ 1446869 2021 - 09 - 05 - t00:40:48z 2021 - 09 - 26 - t08:51:42z X和Y的观测值不一样。 setup_folders;Sadtrdinfo = dir(sad1train);%返回文件夹和文件% sad = dir(pwd);返回文件夹和文件sorted_cell_array_of_train_folder_names = setdiff({sadtrdinfo([sadtrdinfo.isdir]).name},{'..','.'});%选择文件夹名称% cell_array_of_train_folder_names(strncmp(cell_array_of_train_folder_names, ".", 1)) = [];删除'。'和'..' %sorted_cell_array_of_train_folder_names = sort_nat(cell_array_of_train_folder_names);% sorted_cell_array_of_train_folder_names = cell_array_of_train_folder_names;如果你没有sort_nat whoos sorted_cell_array_of_train_folder_names %---------------- np = numel(sorted_cell_array_of_train_folder_names);%子文件夹数量train_cats = categorical(sorted_cell_array_of_train_folder_names); Group_Train1 = cell(np,1); for i = 1 : np SFN = sorted_cell_array_of_train_folder_names{i};% extract his name traintifpattern = fullfile(sad1train, SFN, tiffwild); tifListdinfo = dir(traintifpattern); % list all jpg files tifList = fullfile({tifListdinfo.folder}, {tifListdinfo.name}); ms1 = numel(tifList); % ms = number of image files found Group_Train1{i} = repmat(train_cats(i), ms1, 1); end Group_Train1 = vertcat(Group_Train1{:}); save('Group_Train','Group_Train1'); >> 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); >> Note that the actual number of photos is 26770 日出 https://jp.mathworks.com/matlabcentral/profile/authors/16482360 标签:jp.mathworks.com, 2005:问题/ 40165 2012 - 06 - 03 - t10:52:48z 2021 - 09 - 26 - t08:30:02z 利用粒子群算法优化潮流 嗨,这是我的程序。但是我想改变我的程序的功率流。我想比较ieee 30总线的结果,从牛顿拉弗森方法请帮助我......我在等待你的结果....clc;清除所有;关闭所有;ipf = fopen(‘opres75n.in’,‘r’);消息= fopen (' opres75.out ', ' w + ');读取数据no_part=fscanf(ipf,'%f',1);no_var = fscanf (ipf ' % f ', 1); no_units=fscanf(ipf,'%f',1); itermax=fscanf(ipf,'%f',1); temp=fscanf(ipf,'%f',[5,no_units]); temp=temp'; c=temp(:,1); b=temp(:,2); a=temp(:,3); pmin=temp(:,5); pmax=temp(:,4); bng=fscanf(ipf,'%f',no_var); pg=fscanf(ipf,'%f',no_units); pbest=zeros(no_part,1); gbest=0; part_v=zeros(no_part,no_var); wmin=0.4; wmax=0.9; c1=2; c2=2; vmax=(pmax-pmin)/50; % Random Generation of particles % for i=1:no_part % for j=1:no_var % ng=bng(j); % part(i,j)=pmin(ng)+(pmax(ng)-pmin(ng))*rand-pg(ng); % end % end i=1; while i~=no_part+1 for j=1:no_var ng=bng(j); part(i,j)=pmin(ng)+(pmax(ng)-pmin(ng))*rand-pg(ng); end sum_part=sum(part(i,:)); i=i+1; if abs(sum_part)>=0.1 i=i-1; end if i==0 i=1; end end for iter=1:itermax i=1; tic; while i~=no_part+1 sum_part=sum(part(i,:)); if abs(sum_part)>=0.1 for j=1:no_var ng=bng(j); part(i,j)=pmin(ng)+(pmax(ng)-pmin(ng))*rand-pg(ng); end i=i-1; else i=i+1; end if i==0 i=1; end end % Binding Fitness calculation bf=zeros(no_part,no_var); dpmin=pg-pmin; dpmax=pmax-pg; i=1; while i~=no_part+1 for j=1:no_var ng=bng(j); if part(i,j)dpmax(ng) bf(i,j)=part(i,j)-dpmax(ng); end end k=0; for j=1:no_var if bf(i,j)==0 part(i,j)=pmin(ng)+(pmax(ng)-pmin(ng))*rand-pg(ng); k=1; end end if k==1 i=i-1; end i=i+1; end % Optimal Fitness Calculation cost=zeros(no_part,1); for i=1:no_part for j=1:no_var ng=bng(j); cost(i)=cost(i)+(a(ng)+b(ng)*part(i,j)+c(ng)*part(i,j)*part(i,j))*part(i,j); end end % PBEST if iter==1 pbest=cost; part_pb=part; else for i=1:no_part if pbest(i)>cost(i) pbest(i)=cost(i); part_pb(i,:)=part(i,:); end end end %GBEST gbest=min(pbest); for i=1:no_part if gbest==cost(i) part_gb=part(i,:); end end % Velocity w=wmax-((wmax-wmin)/itermax)*iter; for i=1:no_part for j=1:no_var ng=bng(j); part_v(i,j)=w*part_v(i,j)+c1*rand*(part_pb(i,j)-part(i,j))+c2*rand*(part_gb(j)-part(i,j)); if part_v(i,j)>vmax(ng) part_v(i,j)=vmax(ng); end if part_v(i,j)<-vmax(ng) part_v(i,j)=-vmax(ng); end end end % Position Update for i=1:no_part for j=1:no_var ng=bng(j); part(i,j)=part(i,j)+part_v(i,j); if part(i,j)>dpmax(ng) part(i,j)=dpmax(ng); end if part(i,j)pmax(ng) pg(ng)=pmax(ng); end end end end fc=0; for k=1:no_units fc=fc+a(k)+b(k)*pg(k)+c(k)*pg(k)*pg(k); end s=0; for i=1:6 s=s+pg(i); end MANOJ MAHAJAN https://jp.mathworks.com/matlabcentral/profile/authors/3479987 标签:jp.mathworks.com, 2005:问题/ 1447164 2021 - 09 - 05 - t18:07:42z 2021 - 09 - 26 - t08:28:56z 比较图像基于尺寸或形状相似指数? 我有一个简单模型的CAD设计,正在进行3D打印。为了评估打印质量,我们使用光学显微镜图像的模型,定性地决定打印质量。我需要使这个过程量化,但我不确定使用哪个索引或算法。我认为质量的主要属性是尺寸和形状的相似性。我尝试了结构相似指数(SSIM),但由于我是在灰度图像上做的,有时显微镜图像在对比和曝光时不相同,结果并不令人信服。所以SSIM是我想要的,但更关心图像处理可能是通过比较二值图像而不是灰度?还是有其他更好的方法/索引? ahassan https://jp.mathworks.com/matlabcentral/profile/authors/8777411 标签:jp.mathworks.com, 2005:问题/ 821935 2021 - 05 - 05 - t07:24:10z 2021 - 09 - 26 - t08:28:53z Simscape入口的第7.1节任务5的问题 尽管我根据方向正确地配置了模型块和参数,但训练评估说我的输出与答案不匹配。它阻止我继续下一个任务。在这里,我附上了发生问题的第7.1节任务5的两个评估图快照。第一张图显示了信号到结束时间(10秒)的比较。在我看来,需求和我的信号之间完全一致,但它表明在模拟开始时(从0秒到1.0秒左右)有轻微的差异,如红点所示。由于这些错误,评估者说我的信号是不正确的。第二张图放大了红点的细节。在我看来,我的信号对答案有轻微的延迟。我确认我的设置与指示一致,即使从第7.1节开始进行了几次重试,结果也没有变化。我想知道是否还有一个参数需要调整,这个参数没有明确指示。 Can I have your help for solving this problem? 玄人 市川 https://jp.mathworks.com/matlabcentral/profile/authors/22245647 标签:jp.mathworks.com, 2005:问题/ 1451704 2021 - 09 - 12 - t14:59:25z 2021 - 09 - 26 - t08:27:25z 利用深度学习对高光谱图像进行分类 如果你和我遇到同样的问题,你只需要安装最新版本的matlab来解决它(R2021a+) ________________________________________我想试试这个例子:“使用深度学习分类高光谱图像”。使用深度学习- MATLAB和Simulink - MathWorks中国但我找不到帮助函数:“createImagePa万博1manbetxtchesFromHypercube”和“patchesLabeled”,虽然我已经安装了“图像处理工具箱高光谱成像库”,但在我的计算机中没有这些函数 江凯伦 https://jp.mathworks.com/matlabcentral/profile/authors/16231188 标签:jp.mathworks.com, 2005:问题/ 546182 2020 - 06 - 10 - t04:00:00z 2021 - 09 - 26 - t08:25:23z 如何在Ubuntu上创建RoadRunner的桌面快捷方式? 安装并激活RoadRunner后,是否可以创建桌面快捷方式使其更易于访问? MathWorks支万博1manbetx援小组 https://jp.mathworks.com/matlabcentral/profile/authors/4622813 标签:jp.mathworks.com, 2005:问题/ 1460829 2021 - 09 - 26 - t05:12:14z 2021 - 09 - 26 - t08:21:21z 在数组中添加0和1的缺失数字 你好,我有一个1和o的值序列。例子:我有一个一维数组的样子:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0)我想要的是彼此连接,如果计算元素(mod(元素相互连接,10)> 5然后添加(10-mod)的1或0的结果可以是这样的:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0]。 卡迈勒attafkamel https://jp.mathworks.com/matlabcentral/profile/authors/21741833 标签:jp.mathworks.com, 2005:问题/ 1449244 2021 - 09 - 08 - t13:16:23z 2021 - 09 - 26 - t08:18:56z 我想删除这张图片上的线条,我应用了巴特沃斯低通滤波器,但结果不尽如人意 我想删除这张图片上的线条,我首先应用了巴特沃斯低通滤波器,然后锐化了图像,坚果的图像很模糊,在应用imadd()函数后变得很暗。谁能有解决方案clc close all clear all I = imread('pepper_corrupt.tif');N = 4;% n:指数D0 = 20的值;% D0:截止值[R, C] = size(I);%R for行& C for列FT_img = fft2(double(I));%巴特沃斯低通滤波器u = 0:(R-1);v = 0:(R-1);idx = find(u > R/2);u(idx) = u(idx) - R; idy = find(v > R/2); v(idy) = v(idy) - R; [V, U] = meshgrid(v, u); D = sqrt(U.^2 + V.^2); % Calculating Euclidean Distance H = 1./(1 + (D./D0).^(2*n)); % determining the filtering mask G = H.*FT_img; output_img = real(ifft2(double(G))); A=fspecial('average',[5,5]); %brightens the pixel Br_Img=imfilter(output_img,A); Br_Img=5*imsubtract(output_img,Br_Img); Output=imadd(output_img,Br_Img); subplot(1, 3, 1) imshow(I), title('Original Image','color','Red'); subplot(1, 3, 2) imshow(output_img, [ ]); title('Resulting Image','color','Green'); subplot(1, 3, 3) imshow(Output, [ ]); title('Brighten Image','color','Green'); 默罕默德Sahil聊 https://jp.mathworks.com/matlabcentral/profile/authors/22057603 标签:jp.mathworks.com, 2005:问题/ 1460564 2021 - 09 - 25 - t14:22:01z 2021 - 09 - 26 - t08:12:30z 我如何比较一个矩阵的值? 大家好,这是非常复杂的代码。用矩阵命名为meanbasket,这是一个矩阵21x7,我必须检查当一个值在另一列中重复%这是为了在我的磁盘中找到正确的文件夹srcFile = dir('C:\Users\agnes\Pictures\POST PROCESSING 4\PP4 TGC-MED RD 100\*.dcm');pathname = ('C:\Users\agnes\Pictures\POST PROCESSING 4\PP4 TGC-MED RD 100\');我在定义图片numberofimages = 21;Numberofroi = 7;%我正在为寻找一些ROI的参考图像工作,这将需要%创建矩阵I=dicomread('2');imshow(I) R = nan(numberofroi,4);面具=细胞(numberofroi, 1);对于nr = 1:numberofroi h = drawrectangle(gca);等待(h); R(nr,:)=h.Position; masks{nr}=h.createMask; end roibasket = cell(numberofroi,numberofimages); meanbasket = nan(size(roibasket)); for ni = 1:numberofimages for nr = 1:numberofroi filename=(num2str(ni)); pileofimages=dicomread(strcat(pathname,filename)); info=dicominfo(strcat(pathname,filename)); roibasket{nr,ni} = imcrop(pileofimages,R(nr,:)); meanbasket(nr,ni) = mean( pileofimages(masks{nr}) ); %meanbasket is my 7 * 21 matrix, where the values are the averages of the ROIs found earlier %FROM NOW I DON'T KNOW HOW TO CONFRONT THE VALUES OF MY MATRIX end end Agnese Chini https://jp.mathworks.com/matlabcentral/profile/authors/21899607 标签:jp.mathworks.com, 2005:问题/ 1460889 2021 - 09 - 26 - t08:10:11z 2021 - 09 - 26 - t08:10:11z RoadRunner无法发射 我完成了包括激活在内的整个安装流程,并获得了许可证。但当我点击“RoadRunner”图标时,它不起作用,没有响应,没有提示,屏幕上什么也没有显示。我下载了R2021b版本,也尝试了R2020b,但问题还是一样。有人能帮我个忙吗,谢谢。 昊霖 付 https://jp.mathworks.com/matlabcentral/profile/authors/23987539 标签:jp.mathworks.com, 2005:问题/ 1460819 2021 - 09 - 26 - t04:50:24z 2021 - 09 - 26 - t08:08:46z 为什么我一直收到这样的消息:“对于深度学习,模拟目标语言必须设置为c++”? 我使用的是MATLAB R2021b(最新版本)。此错误在以前的版本中也发生过。我将“RL代理”块替换为“MATLAB函数”块,其中包含为我的控制器生成的策略。即使在我将taget语言从“C”更改为“c++”之后,我仍然收到这条消息。对于深度学习,仿真目标语言必须设置为c++。函数“MATLAB函数”(#66.286.341),第13行,第11列:“code . loaddeeplearningnetwork ('agentData.mat','policy')”启动诊断报告。组件:MATLAB函数|类别:编码器错误持久变量'policy'在使用之前必须分配。唯一的例外是使用'isempty(policy)'的检查,可以在赋值之前执行。函数“MATLAB函数”(#66.398.404),第16行,第19列:“policy”启动诊断报告。 Component:MATLAB Function | Category:Coder error Function call failed. Function 'MATLAB Function' (#66.140.167), line 7, column 11: "localEvaluate(observation1)" Launch diagnostic report. Component:MATLAB Function | Category:Coder error Errors occurred during parsing of MATLAB function 'IntegratedSys/MATLAB Function' Component:MATLAB Function | Category:Coder error Errors occurred during parsing of MATLAB function 'IntegratedSys/MATLAB Function' This is the code inside the "MATLAB Function" blcok (which I generated it using the function "generatePolicyFunction"): function action1 = evaluatePolicy(observation1) %#codegen % Reinforcement Learning Toolbox % Generated on: 26-Sep-2021 07:01:45 action1 = localEvaluate(observation1); end %% Local Functions function action1 = localEvaluate(observation1) persistent policy if isempty(policy) policy = coder.loadDeepLearningNetwork('agentData.mat','policy'); end observation1 = observation1(:)'; action1 = predict(policy, observation1); end Ismael https://jp.mathworks.com/matlabcentral/profile/authors/1344148 标签:jp.mathworks.com, 2005:问题/ 1460794 2021 - 09 - 26 - t01:34:11z 2021 - 09 - 26 - t07:56:34z 如何在matlabcentral发布html ? 我用matlab编辑器编写格式化代码,并通过“publish”将其发布为html文档,该文档如何在“matlabcentral”中显示?例如,像this1,像this2这些链接是如何完成的?也就是说,我已经有html文件,如果我发布它到matlabcentral显示?提前非常感谢任何可以帮助我的人,我很感激! https://jp.mathworks.com/matlabcentral/profile/authors/3388605 标签:jp.mathworks.com, 2005:问题/ 1460459 2021 - 09 - 25 - t08:29:42z 2021 - 09 - 26 - t07:56:14z MATLAB中语音参数显著性的重复测量方差分析 我有n=32个样本量,在4个不同的时间测量2个主要参数言语和视觉反应时间(RT), T1基线,T2晚上10点,T3凌晨3点,T4第二天早上7点。利用Praat软件从语音数据中提取了4个语音参数Frequency, Jitter, Shimmer和HNR。我想在MATLAB中使用R方差分析找出这4个时间区间的语音参数与反应时间之间的显著差异。请给出建议和解决方案。万博 尤文图斯 萨维白肢野牛 https://jp.mathworks.com/matlabcentral/profile/authors/14970136 标签:jp.mathworks.com, 2005:问题/ 1460694 2021 - 09 - 25 - t18:55:25z 2021 - 09 - 26 - t07:50:38z 有可能改变Matlab使用的位数吗? 我使用QuTip工具箱来生成随机密度矩阵。这些都是标准的16位数。然而,我想他们只有5,所以我可以很容易地导出他们,而不必四舍五入他们,丢失信息。也许有更好的方法来满足我的需求。 詹尼· https://jp.mathworks.com/matlabcentral/profile/authors/24052976 标签:jp.mathworks.com, 2005:问题/ 1453219 2021 - 09 - 14 - t17:38:38z 2021 - 09 - 26 - t07:50:10z 什么是图像正常化的最佳方法?? 你好,我正在尝试生成一些ground truth (Label)图像,用于开发深度学习算法,以同时降低噪声和增强。然而,图像的某些部分确实受到噪声和伪影的影响。请问你能给我建议什么是最好的图像正常化的方法吗?我之前应用了中值/均值/高斯滤波,BM3D, NLM去噪方法。请查收附件的图片样本。 动态 https://jp.mathworks.com/matlabcentral/profile/authors/10126361 标签:jp.mathworks.com, 2005:问题/ 1453589 2021 - 09 - 15 - t09:10:09z 2021 - 09 - 26 - t07:46:21z 需要帮助从pointcloud层文件获取RBG映像 我试图从点云文件中获取RGB图像。我已经在Matlab中使用以下函数打开了该文件:ptCloud = pcread('final.ply')它显示了pointcloud的以下属性:pointcloud的属性:位置:[256601×3 single] Count: 256601 XLimits: [1×2 single] YLimits: [1×2 single] ZLimits: [1×2 single]颜色:[256601×3 uint8]正常:[]强度:[]现在要获得RBG图像,我使用了以下命令行:>> I = ptCloud.Color;然而,这只是输出一个空白的图形窗口,没有图像显示。有什么建议吗? Abdul Moiz Qarni https://jp.mathworks.com/matlabcentral/profile/authors/14833621 标签:jp.mathworks.com, 2005:问题/ 1460879 2021 - 09 - 26 - t07:45:40z 2021 - 09 - 26 - t07:45:40z 时间0.009995050000000932的瞬态初始化,求解一致状态和模式,未能收敛。 方程定位误差也显示在这里。 Harshit沙玛 https://jp.mathworks.com/matlabcentral/profile/authors/24061113 标签:jp.mathworks.com, 2005:问题/ 1460559 2021 - 09 - 25 - t13:55:17z 2021 - 09 - 26 - t07:43:51z 我如何能解决问题在CVX? 大家好!你能帮我解决这个问题吗?当我在这里运行代码时,它不能正常工作,因为matlab CVX不执行除法。M = 7;Nt = 8;L = 5;Pmax = 40;U = 0.5;西格玛= -70;Delta = -50; SNRdB = 10; gamma = 10.^(SNRdB/10); Iota = 40; h = zeros(Nt,M); g = zeros(Nt,L); for i=1:M h(:,i) =sqrt(1/2)*(randn(Nt,1)+1i*randn(Nt,1)); % Nt antenna to 1 SR end for i=1:L g(:,i) =sqrt(1/2)*(randn(Nt,1)+1i*randn(Nt,1)); % Nt antenna to 1 PU end H = (h*ctranspose(h)); G = (g*ctranspose(g)); cvx_begin variable W(Nt,Nt) variable theta minimize(0); subject to 0 >= abs(trace(W))-Pmax; 0 >= gamma*sigma + gamma*(delta/theta) - abs(trace(H*W)); 0 >= abs(trace(G*W)) - Iota; 0 < theta < 1; W >= 0; cvx_end ----------------------------------------------- This error appears: 范家谦阮 https://jp.mathworks.com/matlabcentral/profile/authors/21837250 标签:jp.mathworks.com, 2005:问题/ 1460709 2021 - 09 - 25 - t19:56:56z 2021 - 09 - 26 - t07:39:55z asalam.A。 我有一个关于计算机的问题(karnaugh map),我当然希望计算机老师给我解释一个问题,x'y'z' + x'y'z + x'yz + xyz'。这就是方程,撇号代表逆,我的答案是x'z+z',对还是错?我要汤姆在十小时内给我答案。 安倍哈菲兹· https://jp.mathworks.com/matlabcentral/profile/authors/24053624 标签:jp.mathworks.com, 2005:问题/ 1455029 2021 - 09 - 17 - t00:31:54z 2021 - 09 - 26 - t07:36:45z 我如何从这个图像中删除白色背景? 我正在做一个项目,我需要从类似的图像中删除背面,以便在100um x 100um矩阵上随机堆叠它们。谢谢你! Riddhiben Joshi https://jp.mathworks.com/matlabcentral/profile/authors/20995287 标签:jp.mathworks.com, 2005:问题/ 1460769 2021 - 09 - 26 - t00:11:21z 2021 - 09 - 26 - t07:36:08z 要求用户插入20张不同图像的算法 我正在编写一个很长的程序,在这个算法中,我想让用户在命令窗口输入20个不同的图像。这是如何实现的呢?我希望能得到一些帮助,非常感谢:) Tarek Hajj Shehadi https://jp.mathworks.com/matlabcentral/profile/authors/18690627 标签:jp.mathworks.com, 2005:问题/ 1456069 2021 - 09 - 18 - t18:56:23z 2021 - 09 - 26 - t07:31:56z 匹配级融合的matlab代码 嗨,谁能帮我找到一个匹配级融合的代码,用于面部和指纹?先谢谢你。致以最诚挚的问候,穆罕默德 穆罕默德Abdul-Al https://jp.mathworks.com/matlabcentral/profile/authors/18315324 标签:jp.mathworks.com, 2005:问题/ 1460009 2021 - 09 - 24 - t11:40:07z 2021 - 09 - 26 - t07:30:30z 文字ベクトルのセル配列から文字の一部だけきりとり新たなセル配列を作る方法を教えてください 例えば下記のような文字列ベクトルのセル配列があるとしますC ={‘abcdefg1’;‘abcdefg2’;‘abcdefg3’;‘abcdefg4’;‘abcdefg5}この各行に入っている文字列から次のようなルールで文字列を引き抜き新たなセル配列Dを作る際はどのように書けばよいでしょうかルール先頭3文字を抜くD = {defg1, cdefg2 '; ' defg3 '; ' defg4”;“defg5”}大量の手持ちのデータのラベルから新たなデータラベルを作りたいのですが上記のようなことを記載できず困っております。ベ,シックなことで恐縮ですが教えていただけますと幸いです。 浩祐 佐々木 https://jp.mathworks.com/matlabcentral/profile/authors/22613504 标签:jp.mathworks.com, 2005:问题/ 1456549 2021 - 09 - 19 - t23:43:27z 2021 - 09 - 26 - t07:30:10z 通过顺序减法去除一个方向的平移模糊或伪影 我有一些细胞图像是在细胞沿着一个方向通过一个小管子时捕捉到的。编辑:运动是向下的,不是向上的。正如你所看到的,在一些图像中,细胞看起来像是在两个不同的时间点捕获的,就好像它对相机来说移动得太快了,但它不是像素的连续模糊,就像在MATLAB的维纳滤波器和盲反褶积示例中那样。我在想,有可能是取单元格中造成重叠的区域,从它下面的区域中减去它,得到真正的基本特征,然后从它下面的区域中减去这个结果,得到真正的基本特征,等等,直到我们知道真正的单元格的特征。有人知道有什么算法可以做到这一点吗?并且可能允许用户调整单元格重叠部分的厚度/它看起来像复制了重叠的次数?最终的结果应该只是一个没有这些重复特征的单元格图像。 AbioEngineer https://jp.mathworks.com/matlabcentral/profile/authors/11132802 标签:jp.mathworks.com, 2005:问题/ 488063 2019 - 10 - 29 - t13:08:32z 2021 - 09 - 26 - t07:29:59z APPdesigner中,可编辑文本框显示文本内容后,如何编程控制其滚动条,使得可以定位到特定的内容 请问APPdesigner中,将可编辑文本框显示文本内容后,如何控制他的滚动属性?我想通过编写代码实现控制文本框的内容滚动到指定位置。看了下uitextarea属性,并没有滚动属性,这个需要如何解决啊?,多谢 解答。 minlei秦 https://jp.mathworks.com/matlabcentral/profile/authors/16133941 标签:jp.mathworks.com, 2005:问题/ 1460874 2021 - 09 - 26 - t07:23:31z 2021 - 09 - 26 - t07:27:41z 如何改变元素的值 我有值p由10000x1个元素组成,以平滑我的计算,我需要改变一个值在p(从4901到4949)和(从4951到5000)的值应该p(4951+4949)/2等等,如果有人能帮助我解决我的问题,我真的很感激 vaya putra https://jp.mathworks.com/matlabcentral/profile/authors/10428756 标签:jp.mathworks.com, 2005:问题/ 1456754 2021 - 09 - 20 - t07:59:54z 2021 - 09 - 26 - t07:24:57z 我试着计算附着在图像中气泡上的粒子的表面积。但我不太确定是怎么回事。边缘检测工作不准确。 Syamsundar Menon Murali Mohan https://jp.mathworks.com/matlabcentral/profile/authors/8567119 标签:jp.mathworks.com, 2005:问题/ 1460864 2021 - 09 - 26 - t06:51:24z 2021 - 09 - 26 - t07:21:54z 如何插值均匀时间网格上的数据 由于从ode45得到的数值解在时间上是不均匀的,我需要获得解的频率功率谱,但首先,我需要在统一的时间网格上插入日期。我怎么才能这样做呢?从ODE45输入vlause后,我完全卡住了!请解释一下步骤!函数DXDT = frs(t,x) DXDT = 0 (3,1);Dx1dt = -((4/5)*x(2)+x(1));Dx2dt = x(3) + ((4/9)*x(2));Dx3dt = (1/8)+((x(1)-2.5)*x(2));结束tspan = [0:10:100]; [t,x]= ode45(@frs,tspan,xi); from here I do not know how to process with the question please help! PetronasAMG https://jp.mathworks.com/matlabcentral/profile/authors/7907889 标签:jp.mathworks.com, 2005:问题/ 1457184 2021 - 09 - 20 - t20:51:07z 2021 - 09 - 26 - t07:19:06z NUFFT中轴的单位是什么 在MATLAB中实现nufft后,X轴和Y轴的单位是什么?下面的例子来自MATLAB文档t = [0:300 500.5:700.5];S = 2*sin(0.1*pi*t) + sin(0.02*pi*t);X = S + rand(size(t));Y = nufft(X,t);N =长度(t);F = (0:n-1)/n;plot(f,abs(Y))我尝试了不同的数据集,X轴总是从0到1。它是标准化的还是缩放的? 哈立德shboul https://jp.mathworks.com/matlabcentral/profile/authors/4656852 标签:jp.mathworks.com, 2005:问题/ 1458309 2021 - 09 - 22 - t07:09:23z 2021 - 09 - 26 - t07:16:38z 删除不需要的图像部分,并保持中心线 我目前从事的是面料疵点检测项目。我做了预处理和边缘检测部分。但是在使用roberts算子进行边缘检测后,我发现在我的图像中有很多噪声,如下所示1)预处理前2)预处理和边缘检测后:-我已经尝试使用中值滤波操作以去除噪声,但它也从感兴趣的像素中去除(中心线(识别图像中的双刺))。3)中值过滤我如何解决这个问题这是我的代码:-关闭所有;清除所有;I = imread(“fab_def.jpg”);I = rgb2gray(我);I = medfilt2(我);% I2 = histeq(我);图; imshow(I); [M,N]=size(I); %% ideal low pass filtering F=fft2(I); u=0:(M-1); v=0:(N-1); idx=find(u>M/2); u(idx)=u(idx)-M; idy=find(v>N/2); v(idy)=v(idy)-N; [V,U]=meshgrid(v,u); D=sqrt(U.^2+V.^2); %% filtering the image P=max(max(F)); H=double(D<=P); % Comparing with the cut-off frequency G=H.*F; % Convolution with the Fourier transformed image g=real(ifft2(double(G))); % Inverse Fourier transform figure; imshow(I),figure,imshow(g,[ ]); % Displaying input and output image %% Edge detection I3=edge(g,'sobel'); figure; imshow(I3); I3=medfilt2(I3); figure; imshow(I3); %% erosion and dilution sel=strel('line',300,90); I4=imclose(I3,sel); figure; imshow(I4); Soma Sekhar Reddy https://jp.mathworks.com/matlabcentral/profile/authors/14394506 标签:jp.mathworks.com, 2005:问题/ 93468 2013 - 04 - 18 - t18:51:00z 2021 - 09 - 26 - t07:15:53z 为什么当我在Windows资源管理器中双击MATLAB文件时,即使我在Windows 7机器上已经打开了一个MATLAB实例,也会打开一个新的MATLAB实例? 我在我的Windows 7机器上有完全的管理权限,我以管理员身份运行MATLAB。然后打开Windows资源管理器,双击MATLAB文件。我希望MATLAB文件在现有的MATLAB实例中打开,而不是启动另一个MATLAB实例,并在编辑器中打开MATLAB文件。如果我在Windows资源管理器中双击另一个MATLAB文件,它将在MATLAB的第二个实例的编辑器中打开。但是,如果我关闭MATLAB的第二个实例,然后双击Windows资源管理器中的MATLAB文件,它将打开另一个MATLAB实例。我以管理员身份运行MATLAB,否则我无法从文件->设置路径->保存菜单中保存路径。我打开了用户控制访问(UAC),出于安全考虑,我无法关闭它。 MathWorks支万博1manbetx援小组 https://jp.mathworks.com/matlabcentral/profile/authors/4622813 标签:jp.mathworks.com, 2005:问题/ 1460589 2021 - 09 - 25 - t15:38:24z 2021 - 09 - 26 - t07:12:42z 我怎样用一个向量来操作一个矩阵? 嗨,我需要奈普。我需要执行以下函数f (x) = || Ax - b || ^ 2 A = [2 3,1 - 2,4 1];B = [2,4, -5];Syms x1 x2 x = [x1 x2];√((A * x-b) ^ 2) ^ 2 Jerson加西亚 https://jp.mathworks.com/matlabcentral/profile/authors/10671792 标签:jp.mathworks.com, 2005:问题/ 1460869 2021 - 09 - 26 - t06:57:59z 2021 - 09 - 26 - t07:09:32z Matlab错误:局部函数定义后定义变量 大家好,我收到一个错误消息,我不确定为什么会发生。程序相信我在函数外部定义的变量在函数本身中使用。谁有办法解决这个问题?我试着把它们移动到不同的行,它仍然失败。我附上代码和错误在这里。此错误总是发生在最后一次函数调用之后的第一行代码上。code: https://codeshare.io/8pr7Rj错误:脚本中的函数定义必须出现在文件的末尾。将“pdex1bc”函数定义之后的所有语句移动到第一个本地函数定义之前。 利德Talreja https://jp.mathworks.com/matlabcentral/profile/authors/18799235 标签:jp.mathworks.com, 2005:问题/ 1460539 2021 - 09 - 25 - t12:23:43z 2021 - 09 - 26 - t07:05:56z 如何减少计算时间与8嵌套循环 我必须对6个耦合方程进行基于搜索的计算来计算满足这些方程的8个未知数的集合。所有未知数都有1000个值,计算量达到10^24。自过去10天以来,代码一直停留在10^13的值附近。有没有人能帮我减少计算时间由于这个大小的矩阵不适合在mamory我已经尝试了以下方式。Matlab代码aa2=0:0.001:1;aa3 = 0:0.001:1;aa4 = 0:0.001:1;bb1组= 0:0.001:1;bb2组= 0:0.001:1;bb3 = 0:0.001:1; bb4=0:0.001:1; jj1=0; k1=0; for i1=1:length(aa2) a2=aa2(i1) for i2=1:length(aa3) a3=aa3(i2); for i3=1:length(aa4) a4=aa4(i3); for j1=1:length(bb1) b1=bb1(j1); for j2=1:length(bb2) b2=bb2(j2); for j3=1:length(bb3) b3=bb3(j3); for j4=1:length(bb4) b4=bb4(j4); a1=a1(a2,a3,a4,b1,b2,b3,b4); B1=B1(a1,a3,a4,b1,b3,b4); B2=B2(a1,a3,a4,b1,b3,b4); B3=B3(a1,a3,a4,b1,b3,b4); B1=B1(a1,a3,a4,b1,b3,b4); B2=B2(a1,a3,a4,b1,b3,b4); B3=B3(a1,a3,a4,b1,b3,b4); k1=k1+1; % five equations f1=2*A1+5*A2; f2=-6*B2-A2; f3=A2-8*B2+A1; f4=-9*B3-A3+A2; f5=A3-2*B3; f6=A3-2*B1+A2; if f1==0.1 && f2==0.4 && f3<=0.2 && f4<=0 && f5=-0.3 && f5=-0.3 jj1=jj1+1; final=[a1; a2;a3;a4;b1;b2;b3;b4]; fprintf('equation satisfied') display(k1) name1=['eqn stisfiled' num2str(jj1) '.csv']; csvwrite(name1,final) end end end end end end end final=[f1 f2 f3 f4 f5]'; end Sanjay singh tomar https://jp.mathworks.com/matlabcentral/profile/authors/17209249 标签:jp.mathworks.com, 2005:问题/ 1460859 2021 - 09 - 26 - t06:49:07z 2021 - 09 - 26 - t07:05:37z 多个数组的赋值 我有5个相同大小的数组。我怎么优化它?比如rhoo = thetaa = thetaa1 = thetaa2 = 0 (ss2121)[ss1, ss2] = size(0:1:38);Zitaa = ones(ss2,121);Rhoo = 0 (ss2,121);theta = 0 (ss2,121);Thetaa1 = 0 (ss2,121);Thetaa2 = 0 (ss2,121); CHANDRABHAN辛格 https://jp.mathworks.com/matlabcentral/profile/authors/17228795 标签:jp.mathworks.com, 2005:问题/ 1459689 2021 - 09 - 24 - t01:48:44z 2021 - 09 - 26 - t06:52:24z 如何计算频谱并找出其最大谱能 我得到了一组方程,我应该把x1, x2,和,x3作为一个三维相位,但是方向要求我省略任何可能的初始瞬态轨迹。请帮忙详细讲解! PetronasAMG https://jp.mathworks.com/matlabcentral/profile/authors/7907889 标签:jp.mathworks.com, 2005:问题/ 1460834 2021 - 09 - 26 - t05:14:37z 2021 - 09 - 26 - t06:50:00z EEGLAB使用ERP创建的地形图 如何统一两张图片左边的Y标签?我用EEGLAB制作了这些照片。 罗莫 https://jp.mathworks.com/matlabcentral/profile/authors/22988957 标签:jp.mathworks.com, 2005:问题/ 1458704 2021 - 09 - 22 - t16:38:05z 2021 - 09 - 26 - t06:46:14z 如何查看jpeg图像一样可以滚动 嗨,大家好,如果我有10个图像jpeg格式,我怎么能查看我的图像,就像可以滚动。不是次要情节。 Mohd akmal masud https://jp.mathworks.com/matlabcentral/profile/authors/10957567 标签:jp.mathworks.com, 2005:问题/ 261365 2015 - 12 - 22 - t05:00:00z 2021 - 09 - 26 - t06:45:48z 在运行SURF或MESH命令时,为什么MATLAB崩溃,提示“MATLAB遇到内部错误,需要关闭”? 为什么每次我在MATLAB中使用图形函数时MATLAB都会崩溃?在MATLAB中运行使用SURF或MESH命令的脚本后,MATLAB崩溃并出现此错误“MATLAB遇到内部错误,需要关闭”。 MathWorks支万博1manbetx援小组 https://jp.mathworks.com/matlabcentral/profile/authors/4622813