//www.tatmou.com/matlabcentral/answers/questions?term=tag%3A%22plot%22 MATLAB的答案——新问题匹配标签:“阴谋” 2023 - 05 - 28 - t23:06:36z 标签:www.tatmou.com, 2005:问题/ 1974839 2023 - 05 - 28 - t21:18:07z 2023 - 05 - 28 - t23:06:36z 有可能画出曲线变化的颜色在一个阴谋? 想绘制一条曲线不同色彩线段,我需要做下一个情节处理。有可能与标准绘制函数,或者我还需要什么? Merse加斯帕 //www.tatmou.com/matlabcentral/profile/authors/15614680 标签:www.tatmou.com, 2005:问题/ 1974644 2023 - 05 - 28 - t05:29:09z 2023 - 05 - 28 - t18:55:17z 如何在matlab绘制求和函数使用一个for循环 我怎么能这情节求和函数使用一个for循环吗?我开始写这:t = -ππ/ 6:π;s = 0;我= 0:1 s = s +(2/3) *(π^ 2)+((1)^我)* (4 * cos(我* t)) / i ^ 2 Dimitra //www.tatmou.com/matlabcentral/profile/authors/29586616 标签:www.tatmou.com, 2005:问题/ 1974744 2023 - 05 - 28 - t11:54:36z 2023 - 05 - 28 - t14:23:16z 发现价值的直线斜率变化 我怎么能找到点时线的x值(显著)改变方向?我试着拐点,但在这种情况下是行不通的。基本上,我想找的精确值线改变其斜率(箭头所指)。谢谢你! 莉娜Koronfel //www.tatmou.com/matlabcentral/profile/authors/13309032 标签:www.tatmou.com, 2005:问题/ 1974514 2023 - 05 - 27 - t15:38:47z 2023 - 05 - 28 - t04:33:53z 箭头的长度并不代表速度的比率2颤抖的阴谋 我勾勒出两套速度数据为同一位置数据在一个箭袋阴谋。图颤抖(xposition yposition、uvelocity vvelocity, b)抓住箭袋(xposition、yposition v2dprime (1:)”, v2dprime (2:) ', ' r ')轴相等,但视觉从图1中,箭头的长度的第二数据集(红色)相比是巨大的第一个数据集(蓝色)。这正在发生,尽管实际的速度可比或在某些情况下,uvelocity (vvelocity)大于v2dprime。我想向量的长度在每一个点代表原始的实际比速度。如果我关掉缩放,第一个数据集(蓝色)是古怪放大如图2所示。 PASUNURU赛VINEETH //www.tatmou.com/matlabcentral/profile/authors/23445642 标签:www.tatmou.com, 2005:问题/ 406919 2018 - 06 - 22 - t08:59:40z 2023 - 05 - 28 - t04:23:23z 如何设置自定义起源点? 你好,我不能设法找到任何解决这个问题(我必须精确我一个完整的新手与matlab):假设有一个名为“形象”的形象,我和轴显示在屏幕上。我的轴,在默认情况下,从一个边界,零结束(最后一列)。*但我有一个点在“图像”,我想是零,原点。我知道点鼠标输入。我怎么向matlab解释,我想这一点是轴的起源吗?*注:下面的脚本做了好事吗?(我发现它在“如何改变默认的旋转轴在3 d图matlab”)——我今天没有matlab尝试……但我不确定它甚至可以处理我的问题。起源=[13 58]如果你想一些细节的* contexte *这个问题,这就是:我目前在工程和工作我必须做一些实验。在这些实验中,我要两张图片一个燃烧器:燃烧器的冷和一个毕业金属棒泥潭(虽然我不知道这个词存在于英语),另一幅画是燃烧器的功能。在泥潭里帮我变换图像在matlab和知道的距离,然后应用相同的转换在第二幅图,我可以有火焰长度仅仅通过序从一个点到另一个。为了简化操作,我想要的起源在出口处燃烧器,以便我直接出口,当我选择一个点的距离的火焰。 If I am not clear enough, let me know, please. Thank you for your time and patience E.L. Elisa Lafforgue //www.tatmou.com/matlabcentral/profile/authors/13054868 标签:www.tatmou.com, 2005:问题/ 457189 2019 - 04 - 18 - t14:48:12z 2023 - 05 - 28 - t04:15:04z 如何改变原点(0,0)不同坐标在一块吗 我有两个数据集有1100 x1的两倍。行代表不同的时间点,而在每个单元格的值的数据集表示一定的宽度。因此,有1100个时间点。Matlab从时间开始将这些数据视为零。然而,记录从-100年时间。当我用这些数据在同一图2018 (Matlab)情节(x - b);抓住情节(y - r);x和y轴自动放置在底部(x轴)和左(y轴)的阴谋。我想将轴移到时间点0和宽度0。我可以移动x轴:ax。XAxisLocation =“起源”; However, I cannot do the same for the y axis, as Matlab uses as 'origin' for the y axis the default (0,0), rather than the (100,0). I know that I could simply draw a new line to create the new y axis with plot([100 100], ylim, 'k-', 'LineWidth',1); but I want to keep ticks and tick labels as they are in the default settings. How can I move the y axis? Is thre a way to do something like this: ax = gca; ax.YAxisLocation = (ax.XLim(1)+100); %which doesn't working FD //www.tatmou.com/matlabcentral/profile/authors/14832379 标签:www.tatmou.com, 2005:问题/ 1974124 2023 - 05 - 26 - t14:13:09z 2023 - 05 - 27 - t12:01:32z 如何在一块标签节点? 我想添加标签节点”D1, D2, ....,c15”在我的情节和线的颜色改为红色。请帮助。关闭所有;清除所有;clc;θ= linspace(0, 2π,24);θ=θ(1:end-1);(x, y) = pol2cart(θ,1);链接= [1 1 0 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0 1 1 1 1 0;1 0 0 0 1 0 0 1 0 1 1 1 1 0 0 1 1 1 0 0 1 1 0; 1 0 1 0 1 0 0 1 0 0 1 1 -1 1 0 -1 0 0 0 0 -1 -1 0; 1 -1 0 0 -1 0 -1 -1 0 0 -1 1 0 0 0 -1 1 -1 0 -1 -1 0 1; 0 1 -1 0 0 0 -1 1 -1 -1 -1 1 0 0 0 0 -1 0 0 -1 1 0 0; 1 0 0 1 0 0 -1 -1 0 0 0 1 -1 0 0 -1 1 -1 0 -1 -1 1 1; -1 0 -1 0 1 0 0 1 0 1 0 -1 -1 1 1 0 0 0 0 1 1 0 0; 0 0 -1 0 0 0 1 0 0 1 0 0 1 -1 0 1 0 -1 1 1 -1 1 -1; 0 0 -1 -1 0 0 0 -1 0 -1 0 1 1 0 1 -1 1 -1 -1 -1 -1 0 0; 0 -1 -1 -1 1 0 0 -1 0 0 0 0 1 1 0 -1 1 0 0 -1 -1 0 1; 0 0 1 0 -1 0 -1 0 0 1 -1 -1 0 0 -1 0 -1 0 -1 1 1 1 1; -1 0 0 1 1 0 -1 -1 0 -1 -1 1 -1 0 -1 0 0 1 0 1 1 0 1; 0 -1 -1 0 1 0 -1 -1 0 -1 0 0 -1 0 0 -1 1 0 0 1 0 0 -1; 0 -1 0 -1 -1 0 0 -1 0 0 0 -1 1 1 0 0 1 0 0 -1 -1 0 0; -1 0 -1 -1 1 0 0 1 0 1 0 -1 1 1 1 -1 0 0 -1 0 0 -1 -1; -1 0 0 1 0 -1 -1 -1 0 -1 -1 1 -1 0 0 0 0 0 -1 1 1 1 1; 0 -1 -1 0 1 0 -1 -1 0 -1 0 0 1 0 0 1 0 0 0 1 1 1 -1; 1 1 -1 0 -1 0 -1 1 0 1 -1 -1 -1 0 1 0 -1 -1 0 0 1 0 -1; 0 -1 1 1 0 0 -1 -1 1 1 0 -1 -1 1 0 -1 1 0 -1 0 0 1 0; 0 -1 -1 0 1 0 0 1 0 1 0 0 -1 1 0 1 1 0 -1 0 -1 0 -1; 1 1 -1 1 -1 0 0 0 -1 1 0 0 -1 0 -1 -1 -1 0 1 1 1 1 0]; [ind1,ind2]=ind2sub(size(links),find(links(:))); h=figure(1);clf(h); G = plot(x,y,'.k','markersize',20); hold on arrayfun(@(p,q)line([x(p),x(q)],[y(p),y(q)]),ind1,ind2); axis equal off Haya阿里 //www.tatmou.com/matlabcentral/profile/authors/21240561 标签:www.tatmou.com, 2005:问题/ 1974089 2023 - 05 - 26 - t13:21:43z 2023 - 05 - 26 - t13:35:41z datetime fitline不是显示正确的x值 我试图情节时间表变量的线性OLS回归直线,然而在x值越来越扭曲的方式当我画出图他们不正确的日期/ datenum(极其遥远)。这是我迄今为止:日期= datenum (Timetable.Time);myfitD = polyfit(日期、时间表。Var1, 1);fitline = polyval (myfitD、日期);情节(fitline);这条线我需要能够添加到现有的datetime格式的情节X轴在哪里。“时间表变量”日期从01 - 1月- 2015年01 - 1月- 2099年,但根据其目前生产图看起来我好像fitline显示正确的在一个x y值范围(15 90年),我不知道如何将能够添加到另一个图。我使用同样的方法与之前类似的数据集和它工作得很好,所以我不确定问题是什么。额外的上下文,我试图将它添加到图是绘制如下:年={01 - 1月- 2030 ';' 01 - 1月- 2050 '; '01-jan-2070'; '01-jan-2090'}; Xaxis = datetime(Years); scatter(Xaxis, Yvar); x1 = datetime('01-Jan-2020'); x2 = datetime('01-Jan-2099'); xlim ([x1, x2]); NOtway //www.tatmou.com/matlabcentral/profile/authors/27903262 标签:www.tatmou.com, 2005:问题/ 332318 2017 - 03 - 28 - t12:23:03z 2023 - 05 - 26 - t13:16:51z 逆y轴顺序 嗨。我有下面的脚本(附加)b和运行,它可以找到打开这个链接。https://drive.google.com/open?id = 0 b0wqbiczof7xn1bxv1fkvvrct2c它完美地除了我想扭转y轴。我试过几件事,但没有运气。我发现的唯一方法就是做手工。有另一种方式吗? 大卫杜Preez //www.tatmou.com/matlabcentral/profile/authors/7651225 标签:www.tatmou.com, 2005:问题/ 1974029 2023 - 05 - 26 - t10:30:09z 2023 - 05 - 26 - t12:27:34z 我的情节是空白的? 我图生成但没有线出现在图表清晰;关闭所有;clc;%加载截面沿着河rivercrossection =负载(“Cross_Sections_DistanceAlongRiver_X_Y距离。txt”、“\ t”);%加载pre-dredging横截面pre_dredging_crossection =负载(“PreDredgingCS.txt”);pre_dredging_crossection =重塑(pre_dredging_crossection [], 1);%负载post-dredging截面post_dredging_crossection =负载(“PostDredgingCS.txt”);post_dredging_crossection =重塑(post_dredging_crossection [], 1);%计算沉淀物的体积使用详细的截面volume_crossection = sum (post_dredging_crossection - pre_dredging_crossection) * (rivercrossection (2) - rivercrossection (1)) * (pre_dredging_crossection (2) - pre_dredging_crossection (1));%计算速度pre疏浚velocitiesB1 = (200 / (rivercrossection (2) - rivercrossection (1))) * (pre_dredging_crossection (2) - pre_dredging_crossection (1) / (pre_dredging_crossection); %calculate the velocities post dredging velocitiesB2 = (200 / (rivercrossection(2) - rivercrossection(1))) * (post_dredging_crossection(2) - post_dredging_crossection(1)) / (post_dredging_crossection); % Plot the current velocities for the cross section figure(2); plot(velocitiesB1,velocitiesB2,'b-'); xlabel("transect"); ylabel("Current velocity (m/s)"); title("Current velocities before and after dredging"); 伊丽莎白 //www.tatmou.com/matlabcentral/profile/authors/29364004 标签:www.tatmou.com, 2005:问题/ 1973514 2023 - 05 - 25 - t11:27:30z 2023 - 05 - 26 - t12:10:11z 同时显示多阴谋 我想我有几个变量显示在图表,和我写的代码如下:情节(Salinity_stage_max);ylabel (ppm)包含(“天”)标题(盐度)情节(PR);ylabel(“公关”)包含(“天”)标题(“性能比概要”)情节(STEC);抓住ylabel (Kj /公斤)包含(“天”)标题(“热能量消耗率”)推迟但Matlab显示只有最后一个命令的情节,有没有一种方法,使所有情节出现在单独的窗口或在一个分组的窗口 almohanned alsufyani //www.tatmou.com/matlabcentral/profile/authors/13572469 标签:www.tatmou.com, 2005:问题/ 1972914 2023 - 05 - 25 - t04:44:58z 2023 - 05 - 26 - t11:39:11z 如何计算这个pcolor情节和情节? 嗨,我有一个3 d 1100 x800x764大小的矩阵。这形成了一个1100 * 800的网格单元与764种不同的样品。我要计算每个网格单元的平均值来创建一个2 d意味着1100 x800网格单元。pcolor情节应该满足这个条件——这意味着,每个像素的平均值应该大于或等于标准差的比值,像素和样本大小的根源(N = 764)。任何像素不确认这个条件将自动设置为南。剩下的像素应该pcolor映射:任何反馈从你会感谢! ! 阿什法克·艾哈迈德 //www.tatmou.com/matlabcentral/profile/authors/23505095 标签:www.tatmou.com, 2005:问题/ 1973869 2023 - 05 - 26 - t06:35:03z 2023 - 05 - 26 - t06:35:03z 我怎么改变我的拓扑节点? 你好,我想和多个连接PSE PDs在这样的总线拓扑。PSE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | | | | | | PD1 PD2 PD3任何帮助就太好了。谢谢!这是我的代码:%创建连接矩阵连接= 0 (num_nodes + 1);%连接每个PD PSE从左边连接(1、2)= 1;连接(1、3)= 1;连接(1,4)= 1;%对象创建一个有向图g =有向图(连接);% g.Nodes设置节点属性。Name = {PSE的;“PD1”; 'PD2'; 'PD3'}; g.Nodes.Type = {'PSE'; 'PD'; 'PD'; 'PD'}; % Define the node positions nodePositions = [0, 0; 0, -1; 0, -2; 0, -3]; % Define custom markers for PSE and PDs pseMarker = 's'; pdMarker = 's'; % Plot the graph with customized node markers and positions figure; h = plot(g, 'NodeColor', 'r', 'NodeLabel', '', 'MarkerSize', 10, ... 'XData', nodePositions(:, 1), 'YData', nodePositions(:, 2), 'ShowArrows', 'off'); % Customize the node markers hold on; for i = 1:num_nodes+1 if i == 1 marker = pseMarker; else marker = pdMarker; end plot(nodePositions(i, 1), nodePositions(i, 2), marker, 'MarkerSize', 20, 'MarkerFaceColor', 'r'); end hold off; % Adjust the axes limits xLimits = [min(nodePositions(:, 1)) - 1, max(nodePositions(:, 1)) + 1]; yLimits = [min(nodePositions(:, 2)) - 1, max(nodePositions(:, 2)) + 1]; axis([xLimits, yLimits]); % Add edge labels edgeLabels = {'PD1'; 'PD2'; 'PD3'}; edgeIdx = find(connections(2:end, 1)); edgeX = nodePositions(edgeIdx, 1); edgeY = nodePositions(edgeIdx, 2); 迪夫 //www.tatmou.com/matlabcentral/profile/authors/28311262 标签:www.tatmou.com, 2005:问题/ 1973619 2023 - 05 - 25 - t14:39:12z 2023 - 05 - 25 - t16:34:40z 如何绘制大量的个别点吗 我有几个向量(240)每个不同的长度。现在我想任何向量图的每个条目:1)填充的o '如果条目1 2)空(很轻阴影)“o”如果条目是0 3)一个“x”如果条目是2为此我有一个嵌套的循环结构。外层循环遍历通过向量,通过条目的内循环遍历每个特定的向量。里面我有一个如果其他块实现上述策划。的代码如下:figure_counter = figure_counter + 1;图(figure_counter);抓住%设置一个马克斯y值开始策划y_val =长度(window_size_list);k = 1:长度(window_size_list) y_val = y_val - 1;t_val = time_EWS {k}; for j = 1: length(H{k}) if H{k}(j) == 1 H_val = 1; plot(t_val(j), y_val, 'LineStyle', 'none', 'LineWidth', 1, 'Marker', 'o', 'MarkerSize', 5, 'MarkerFaceColor', PS.Grey4, 'MarkerEdgeColor' , PS.Grey5); elseif H{k}(j) == 2 plot(t_val(j), y_val, 'LineStyle', 'none', 'LineWidth', 1, 'Marker', 'x', 'MarkerSize', 5, 'MarkerFaceColor', PS.Red1, 'MarkerEdgeColor' , PS.Red2) else H_val = 0; plot(t_val(j), y_val, 'LineStyle', 'none', 'LineWidth', 1, 'Marker', 'o', 'MarkerSize', 5, 'MarkerFaceColor', PS.Grey1, 'MarkerEdgeColor' , PS.Grey2); end end end xlabel('t'); ylabel('count'); The Problem: The figure is very slow to respond. I am not able to set any figure properties as the property inspector just keeps loading. What can I do to fix this issue? Am I using the wrong function to plot? atharva aalok //www.tatmou.com/matlabcentral/profile/authors/17638486 标签:www.tatmou.com, 2005:问题/ 1972684 2023 - 05 - 24 - t22:16:19z 2023 - 05 - 25 - t16:06:29z 不能写netcdf文件 文件名= " /用户/ gulfcarbon2 /桌面/ AD-ATCOR /输出/ AQUA_MODIS.20190816T194000.L2._Rrs.nc”;信息= ncinfo(文件名);昏暗的= cell2mat ({info.Variables.Dimensions});ncol =暗(1). length;nrow =暗(2). length;%从NetCDF文件读取的变量Rrs412 = ncread(文件名,“Rrs412”);Rrs443 = ncread(文件名,“Rrs443”);Rrs469 = ncread(文件名,“Rrs469”);Rrs488 = ncread(文件名,“Rrs488”);Rrs531 = ncread(文件名,“Rrs531”); Rrs547 = ncread(filename, 'Rrs547'); Rrs555 = ncread(filename, 'Rrs555'); Rrs645 = ncread(filename, 'Rrs645'); Rrs667 = ncread(filename, 'Rrs667'); Rrs678 = ncread(filename, 'Rrs678'); Rrs748 = ncread(filename, 'Rrs748'); Rrs859 = ncread(filename, 'Rrs859'); Rrs869 = ncread(filename, 'Rrs869'); latitude = ncread(filename, 'latitude'); longitude = ncread(filename, 'longitude'); %Threshold rho = log(Rrs555 ./ Rrs667); % Calculate X as log[(max(Rrs443, Rrs489) / Rrs555)] for OC3M algorithm X = log(max(Rrs443, Rrs488) ./ Rrs555); % Initialize an array for the resulting pixels result_image = zeros(size(longitude)); % Apply the condition and equations a0 = 0.283; a1 = -2.753; a2 = 1.457; a3 = 0.659; a4 = -1.403; % Apply the condition and equations threshold = 0.75; % Iterate over each pixel for i = 1:numel(rho) if rho(i) < threshold % Apply the equation pixel = 0.3894 * rho + 2.9642 for rho < threshold result_image(i) = 0.3894 * rho(i) + 2.9642; else % Apply the equation y = exp(a0 + a1 * X + a2 * X^2 + a3 * X^3 + a4 * X^4) for rho >= threshold result_image(i) = exp(a0 + a1 * X(i) + a2 * X(i)^2 + a3 * X(i)^3 + a4 * X(i)^4); end end % % Plot the result on a map % Ad_fig = figure; % m_proj('Mercator','longitude',([round(min(longitude(:,1)))-0.5 round(max(longitude(:,1)))+0.5]),'latitude',([round(min(latitude(1,:)))-0.5 round(max(latitude(1,:)))+0.5])); % m_pcolor(longitude, latitude, result_image); % shading interp; % m_gshhs_f('patch',[.5 .5 .5],'edgecolor','none'); % m_grid('linewi',2,'tickdir','out','box','fancy','fontsize',16); % m_ruler([.7 1],.9,'tickdir','out','ticklen',[.007 .007],'fontsize',12); % h=colorbar; % % set(get(h,'ylabel'),'String',sprintf(result_image),'fontsize',16); % colormap(m_colmap('jet')); % caxis([0 0.03]); % brighten(.2) % m_coast('color', 'k'); % title('Result Image'); % Create a new NetCDF file for the result nc_filename = [filename(1:end-6), 'AD_Rrs.nc']; % Write the result data to the NetCDF file nccreate(nc_filename, 'result_image', 'Dimensions', {'r', nrow, 'c', ncol}, 'Format', 'classic'); ncwrite(nc_filename, 'result_image', result_image); nccreate(nc_filename, 'latitude', 'Dimensions', {'r', nrow, 'c', ncol}, 'Format', 'classic'); ncwrite(nc_filename, 'latitude', latitude); nccreate(nc_filename, 'longitude', 'Dimensions', {'r', nrow, 'c', ncol}, 'Format', 'classic'); ncwrite(nc_filename, 'longitude', longitude); So far I have done to get a plot. Now I want to save it as a netcdf file. I can also save the the .nc file but while opening it in a software such as seadas the longitude and latitude data is missing. error coming such as Error using nccreate 'result_image' exists in file. Can not modify existing variables. Error in AD_Arnab (line 75) nccreate(nc_filename, 'result_image', 'Dimensions', {'r', nrow, 'c', ncol}, 'Format', 'classic'); any help will be appriciated. Arnab保罗 //www.tatmou.com/matlabcentral/profile/authors/26549809 标签:www.tatmou.com, 2005:问题/ 1971414 2023 - 05 - 23 - t15:54:33z 2023 - 05 - 25 - t14:59:28z 如何改变的列数传说而改变线厚度? 我想改变我的列数传说,而改变块的厚度线内的传说不改变故事情节厚度。我发现这里的解决方案改变线厚度“我如何改变字形大小的线宽,一个传奇”。然而,当使用这种方法的传说似乎无论输入值1列。的代码不工作是:[hobj ~, ~, ~] =传奇(finLegend NumColumns”3,“位置”,“最好”);hl = findobj (hobj,“类型”,“线”);集(hl,“线宽”,5);和之前的代码工作,但并没有改变厚度,是:乐金显示器=传奇(finLegend, NumColumns, 3,“位置”,“最好”);我不明白为什么改变从一个到多个输出不让我改变列的数量。使用属性检查器“NumColumns”属性是3,但实际的传说一列。 乔治年代 //www.tatmou.com/matlabcentral/profile/authors/19990563 标签:www.tatmou.com, 2005:问题/ 1973614 2023 - 05 - 25 - t14:35:41z 2023 - 05 - 25 - t14:49:41z 如何画一个图从一个数据,一个参数范围内(不与全方位的数据) 我想画出图(= x(324年:))的范围(0.4,0.9)。我想限制范围内。我不想情节是在全范围内的数据。如何做呢?请建议。负载(H_LC (22) .mat”)谁%编辑-添加上下文图(x(324年:),(323年:),“k”,“线宽”,1)包含(‘\α\ rightarrow美元’,‘颜色’,‘k’) ylabel(‘\β\ rightarrow美元’,‘颜色’,‘k’) 原子 //www.tatmou.com/matlabcentral/profile/authors/2325134 标签:www.tatmou.com, 2005:问题/ 1969409 2023 - 05 - 21 - t12:31:12z 2023 - 05 - 25 - t13:29:38z 传说线颜色相同 如何让不同的颜色在传说,也是冲绿色I3, I2,应该像绘制I3绿色和I2蓝色disp (f2);情节(L_interp I3, g -, L_interp, I2, b,, L_interp,预告,r -, L_interp,我,“k -”);包含(“波长”);ylabel(“我”);传奇(I3, I2);谢谢你! 肖恩 //www.tatmou.com/matlabcentral/profile/authors/22244118 标签:www.tatmou.com, 2005:问题/ 1973099 2023 - 05 - 25 - t06:10:53z 2023 - 05 - 25 - t09:39:37z 提取数据绘制时间序列不同的颜色不同的天 我想把压力数据的时间序列图不同的天,就像我下面的连接。我使用下面的文件读取数据。前的数据集,LTST,索尔也没有连接,我无法提取。我不能够提取都是分开的。我能提取LMST和溶胶使用extractAfter和extractBefore功能有一个“M”分离。任何建议如何提取LTST和索尔? Anirban Mandal //www.tatmou.com/matlabcentral/profile/authors/23619411 标签:www.tatmou.com, 2005:问题/ 1970894 2023 - 05 - 23 - t05:52:23z 2023 - 05 - 25 - t06:51:03z 在3 d绘图数据 我有一个矩阵,包含磁数据3轴(x, y, z)和时间(第4列)。我需要情节的3 d图,而不是点行diffeernt颜色或某种网格/网络结构。我怎么能这样做呢? Kanica Sachdev //www.tatmou.com/matlabcentral/profile/authors/14351192 标签:www.tatmou.com, 2005:问题/ 1972909 2023 - 05 - 25 - t04:43:26z 2023 - 05 - 25 - t05:29:04z 情节不能正确显示 我有一个3 differntal方程组和边界条件。年代(0,t) = 0, M (0, t) = 1, P (0, t) = 0。(1 +δt) = 1, M(1 +δt) = 0, P(1 +δt) = 0。其中三角洲是常数参数范围的值如何包括(1 +δ)边界可以请任何一个正确的代码。我在这里有附加的代码。函数non_steady_mediator m = 0;x = linspace (0,1);t = linspace (0,1);索尔= pdepe (m, @pdex4pde, @pdex4ic @pdex4bc x, t);u1 =索尔(:,:1); u2= sol(:,:,2); u3= sol(:,:,3); %figure plot(x, u1(end,:),'.',... 'MarkerEdgeColor',[0.39 0.83 0.07],... 'LineWidth',2,'MarkerSize',8) %legend('numerical') %surf(x,t,u2) hold on %title('u1(x, t)') %xlabel('Distance x') %ylabel('u1(x,t)') %figure % -------------------------------------------------------------- function [c,f,s] = pdex4pde(~,~,u,DuDx) alpha=2;beta=5;gamma=3;sigma=0.5;varphi=2;omega=2; c = [1;1;1]; f = [1;1;1].* DuDx; F1=alpha^2.*u(1).*u(2)./u(1)+u(2); F2=beta^2.*u(1).*u(2)./u(1)+u(2); F3=gamma^2.*u(1).*u(2)./u(1)+u(2); s = [F1;F2;F3]; % -------------------------------------------------------------- function u0 = pdex4ic(~) u0 = [1;1;1]; % -------------------------------------------------------------- function [pl,ql,pr,qr] = pdex4bc(~,ul,~,ur,~) pl = [0;ul(2)-1;ul(3)]; ql = [1;0;0]; pr = [ur(1)-1;ur(2);ur(3)]; qr = [0;0;0]; MALLIKARJUNA米 //www.tatmou.com/matlabcentral/profile/authors/25088428 标签:www.tatmou.com, 2005:问题/ 1897810 2023 - 01 - 20 - t18:02:46z 2023 - 05 - 25 - t04:09:12z 问题与线宽在Matlab在线:增加的厚度使部分线消失 我有一个奇怪的反应在MATLAB在线。绘制数据极值使用粗线在我的浏览器中有一个奇怪的反应。采取以下代码:v =[1、2、5、10、5、2、1]阴谋(v,“线宽”,5)的最终照片住笔记本似乎变厚度,只有边缘的线段是可见的。然而,当我打开一个单独的图窗口中,可以看到正确的阴谋。这是截图:我与KDE使用Ubuntu 22.04。我试着firefox和铬和怪异的行为依然存在。独立的matlab应用程序,可以显示正确的厚度,看起来这是一个matlab在线问题。我做错了什么吗?有什么设置,我需要调整,以得到正确的行为呢?编辑的例子使这一问题更加明显。 哈马德•本•哈利法•阿勒萨尼 //www.tatmou.com/matlabcentral/profile/authors/28424531 标签:www.tatmou.com, 2005:问题/ 575107 2020 - 08 - 04 - t17:01:06z 2023 - 05 - 24 - t21:41:22z 应用程序与UIAxes缓慢 嗨。我创建的应用程序在应用程序设计师使用组件(如滑动条来控制一个阴谋。当UIAxes策划,有明显的延迟。然而,当应用情节在一个单独的图,没有延迟。有人知道原因,如果有一种阴谋UIAxes没有延误?谢谢。我将使用一个应用程序建模一个圆柱体删除很多额外的不必要的东西,所以问题的类型是尽可能明确。故事情节包括冲浪、补丁和plot3。对于所有应用程序,目标不是绘图数据说,而是创建形状,通常在3维空间。因此,数据通常是数组类型的双通常都不会得到超过100个元素。 I'm using MATLAB R2020a. These are the two methods: I drag and drop a UIAxes on to the app and plot on that axis. This takes about 3 seconds to update the plot each time I move the slider. This is a screenshot of the setup: I create a separate regular figure (not uifigure) and plot it on that. This has almost no delay: This is the code used to create the separate figure and have them aligned neatly (I don't think it's that important but it clarifies what I'm doing): global ax %needed so it can be accessed through component callbacks divide=.2;%the fraction of the screen filled by the app set(0,'units','pixels') pixels=get(0,'screensize'); app.UIFigure.Position=[0,0,divide*pixels(3),pixels(4)]; fig=figure; %new figure fig.Position=[divide*pixels(3),0,(1-divide)*pixels(3),pixels(4)]; ax=axes(fig); %axis it will be plotted on Here is the code which I used (I removed much of the code used in the original app to simplify things) (the code is based off of Clay M. Thompson's cylinder function, and I kept the copyright text in the code): function torsion(ax,ax2,M,G,L,r,display_in) % Clay M. Thompson 4-24-91, CBM 8-21-92. % Copyright 1984-2002 The MathWorks, Inc. cla(ax) % engineering equations: J=1/4*r^4; phi=M*L/(J*G); % set up cylinder: n = 50; r = [r r]'; r = r(:); % Make sure r is a vector. m = length(r); if m==1, r = [r;r]; m = 2; end theta = (0:n)/n*2*pi; sintheta = sin(theta); sintheta(n+1) = 0; x = r * cos(theta); y = r * sintheta; z = (0:m-1)'/(m-1) *L* ones(1,n+1); hold(ax,'on') % plot cylinder surf(ax,x,y,z,'EdgeColor','none','FaceAlpha',1) patch(ax,x(1,:),y(1,:),z(1,:),[.25 0 .7]) patch(ax,x(1,:),y(1,:),z(2,:),[.25 0 .7]) %plot helices z_vals=linspace(0,L,n*L/(2*pi*r(1))); for i=0:n-1 angle0=i*(2*pi)/n; anglef=angle0+phi; theta_part=linspace(angle0,anglef,length(z_vals)); x_part=(r*1.01)*cos(theta_part); y_part=(r*1.01)*sin(theta_part); z_vals=linspace(0,L,length(x_part)); plot3(ax,x_part,y_part,z_vals,'k','LineWidth',.5) end % plot circles for i=z_vals plot3(ax,x,y,i*ones(1,n+1),'k','LineWidth',.5) end end 以法莲Bryski //www.tatmou.com/matlabcentral/profile/authors/14049778 标签:www.tatmou.com, 2005:问题/ 1971354 2023 - 05 - 23 - t13:32:10z 2023 - 05 - 24 - t20:21:06z 保存几块独立的文件在一个脚本 你好,我有一个生活脚本,阴谋的结果。它创建了一个新的图和标题等等。现在我想保存所有数据。中创建的数据是一个函数,因为有很多不同的数据,但或多或少相同的情节。我发现2解决方案到目前为止,无金宝搏官方网站论可悲的是不工作。第一次我使用有问题的解决方案,它不保存它根据名称。他们只是没有名字,有互相覆盖。另一个问题是,擦掉它给了我错误的文件夹是不正确的。我做了另一个文件夹的情节和文件夹存在,matlab知道我添加的文件夹。第二个解决方案给我以下错误消息错误使用matlab.graphics.internal.name无法创建输出文件”。\�。png”,无效的论点。 Error in print (line 71) pj = matlab.graphics.internal.name( pj ); Error in saveas (line 181) print( h, name, ['-d' dev{i}] ) i did try out things, cause the posts were several years old, but couldnt make it work. if i had it just for one time, it wouldnt be a problem, could save them manually, but i have to run it several times. already thinking if im not putting it into a loop, and all the figures are saved based on the loop iteration and its title. i was asking myself if i need to save that figure in that function that creates them, or if i can save them all afterwards. kind regards André 安德烈 //www.tatmou.com/matlabcentral/profile/authors/29746334 标签:www.tatmou.com, 2005:问题/ 16276 2011 - 09 - 20 - t17:20:17z 2023 - 05 - 24 - t20:07:28z 打印花括号的阴谋 大家好,我在画一个花括号来表示距离的阴谋(一些附带的文本)。支撑应该“柔性”,即改变其长度根据一个开始和结束点。这个同样的问题一直在问< //www.tatmou.com/matlabcentral/newsreader/view_thread/158467新闻广播员>,但没有答案。有什么建议吗? 阿德里亚诺 //www.tatmou.com/matlabcentral/profile/authors/2925287 标签:www.tatmou.com, 2005:问题/ 1971529 2023 - 05 - 23 - t18:32:59z 2023 - 05 - 24 - t17:58:33z 情节我移动或旋转后消失 我执行一个非常简单的脚本实现了希尔等式和输出一个3 d图。当我移动脚本创建的情节或我试着旋转三维图像,Matlab的行为仿佛出版社在命令窗口中输入:它创建一个新的线在命令窗口中,将前面的主要Matlab应用程序(命令窗口),随后情节被隐藏在后面。辨析了这只发生如果我释放鼠标,情节windows最初定位。例如如果我开始捏情节窗口顶部按鼠标左键,我移动它更多,比我和释放鼠标左键,问题并不出现。我将增加我的桌面之前和之后的情节感动。我有这个问题在Matlab 2023 & Matlab 2022 b。在2022 b版本有时我也得到以下信息:操作matlab.graphics.controls期间被用户终止。ToolbarController / handleMouseMotion &操作终止由用户。我将会很高兴如果有人能帮我。提前谢谢你。这是我运行的脚本% clearvars Clohessy-Wiltshire方程; close all; clc; % Define constants R_e = 6378.1; a = R_e + 400; mu = 398600.4418; % Standard gravitational parameter of Earth (km^3/s^2) n = sqrt(mu/(a^3)); % Mean motion (rad/s) % Define initial conditions x0 = 0; % Initial relative position along x-axis (km) y0 = 0; % Initial relative position along y-axis (km) z0 = 0; % Initial relative position along z-axis (km) xdot0 = 0.001; % Initial relative velocity along x-axis (km/s) ydot0 = 0; % Initial relative velocity along y-axis (km/s) zdot0 = 0; % Initial relative velocity along z-axis (km/s) % Define time span and step size tspan = [0 1000]; % Time span (s) dt = 1; % Step size (s) % Initialize arrays to store results t = tspan(1):dt:tspan(2); % Time array numSteps = numel(t); x = zeros(numSteps, 1); y = zeros(numSteps, 1); z = zeros(numSteps, 1); xdot = zeros(numSteps, 1); ydot = zeros(numSteps, 1); zdot = zeros(numSteps, 1); % Set initial conditions x(1) = x0; y(1) = y0; z(1) = z0; xdot(1) = xdot0; ydot(1) = ydot0; zdot(1) = zdot0; % Numerically integrate the Clohessy-Wiltshire equations using Euler's method for i = 2:numSteps xddot = 3*n^2*x(i-1) + 2*n*ydot(i-1); yddot = -2*n*y(i-1) + n^2*x(i-1); zddot = -n^2*z(i-1); xdot(i) = xdot(i-1) + xddot*dt; ydot(i) = ydot(i-1) + yddot*dt; zdot(i) = zdot(i-1) + zddot*dt; x(i) = x(i-1) + xdot(i)*dt; y(i) = y(i-1) + ydot(i)*dt; z(i) = z(i-1) + zdot(i)*dt; end % Plot the relative motion figure; plot3(x, y, z); xlabel('X (km)'); ylabel('Y (km)'); zlabel('Z (km)'); grid on; title('Relative Motion (Clohessy-Wiltshire Equations)'); 马里奥·帕斯托雷 //www.tatmou.com/matlabcentral/profile/authors/16763567 标签:www.tatmou.com, 2005:问题/ 1972084 2023 - 05 - 24 - t07:13:04z 2023 - 05 - 24 - t07:13:04z 如何改变中央经度180 e的世界地图三维散点图吗? 你好社区,我有3 d飞机温度数据在不同的纬度,经度,高度。我想创建三维散点图和世界地图在基地有180 e中心(基本上太平洋在中间)。我的经度纬度范围从-180年到180年,-90年到90年。我试过,但没有成功。这是我开发的代码块。我用R2022b。关闭所有;图(“名字”、“温度”);f =集(gcf,“位置”,[600 500 1400 800]);ax11 =轴; h = scatter3(ax11,Lon,Lat, Alt, 5, Temperature, 'MarkerFaceColor', 'Flat'); colorbar(); hold on load coastlines.mat plot(ax11,coastlon,coastlat,'k') Here, I want to put central longitude=180E. Looking forward to your answers. Thanks in advance. Subhodh沙玛 //www.tatmou.com/matlabcentral/profile/authors/23402401 标签:www.tatmou.com, 2005:问题/ 1971569 2023 - 05 - 23 - t20:30:15z 2023 - 05 - 24 - t05:47:29z 我怎么连接多行成一条线在图吗? 我这样的连接这些线 高山bora ozun //www.tatmou.com/matlabcentral/profile/authors/20447991 标签:www.tatmou.com, 2005:问题/ 33924 2012 - 03 - 29 - t19:39:30z 2023 - 05 - 24 - t00:55:06z 为什么不Matlab情节吗? 当我试着什么阴谋,没有什么。没有错误,只是没有。> > x = -10: .1:10;> > y = sin (x);> >的情节(x, y);没有图窗口弹出。 杰克 //www.tatmou.com/matlabcentral/profile/authors/3410187 标签:www.tatmou.com, 2005:问题/ 1971534 2023 - 05 - 23 - t19:19:04z 2023 - 05 - 23 - t19:30:48z 稍微分开类别变量行重叠线情节 我试图创建一个折线图分类轴和一个数值轴。我想separarate蓝色和红色线略高于/低于能够比较两行。行需要足够近,他们显然属于相应的名称。repex_table =表();repex_table.name =字符串((“a”、“b”、“c”)) ';repex_table。min1 = (1、2、3) ';repex_table。max1 = (5、6、7) ';repex_table。min2 = [4, 5, 6]'; repex_table.max2 = [9, 10, 11]'; % Create Figure figure; hold on; for i=1:height(repex_table) x = [repex_table(i,:).min1, repex_table(i,:).max1]; x2 = [repex_table(i,:).min2, repex_table(i,:).max2]; y = categorical([repex_table(i,:).name, repex_table(i,:).name]); line(x, y, 'color', 'b') line(x2, y, 'color', 'r') end hold off; 杰克逊 //www.tatmou.com/matlabcentral/profile/authors/26919704 标签:www.tatmou.com, 2005:问题/ 328791 2017 - 03 - 08 - t16:13:17z 2023 - 05 - 23 - t11:29:18z 我怎么改变线宽,一个传奇的字形大小 我使用句柄来修改情节。但是在传说中,线的宽度在情节(标记线)连接的线宽情节本身。独自一人字形大小是小菜一碟。但两个属性的改变给了我一个很难。我找到了一个解决问题的线宽惠普=情节(x_data,图1,“颜色”,(0.93,0.69,0.13),“线宽”,0.25);抓住情节(x_data,图2中,“k”,“线宽”,1.5)推迟(hleg hobj,胡特,城市]=传奇(“图1”、“图2”、“位置”,“东北”);集(hobj,“线宽”,1.5);改变内部的线宽的传说,但我不能改变(或我dind不能找到一种方法)来改变这种方法的字形大小。 尼科Spahn //www.tatmou.com/matlabcentral/profile/authors/8749778 标签:www.tatmou.com, 2005:问题/ 1838998 2022 - 10 - 29 - t19:50:35z 2023 - 05 - 23 - t08:30:52z 如何删除一个开放在我的模型 当试图绘制我的PID控制器对控制系统的根轨迹编辑设计师,并选择开环反应的位置,我返回一条消息说“选中的位置被定义为一个永久的开放的体系结构。把这个打开创建一个响应在这个位置。“我是仿真软件教程后从UofM称为仿真软金宝app件控制,卡内基和底特律。 迦勒 //www.tatmou.com/matlabcentral/profile/authors/28099269 标签:www.tatmou.com, 2005:问题/ 1869262 2022 - 12 - 02 - t09:32:31z 2023 - 05 - 23 - t06:25:03z 计算的不确定性从X, Y, Y错误 我试图计算不确定性至少4位小数为一组数据包括x, y, y错误。我已经能够创建一个回归线(使用“errorbar”函数)数据和一个方程,但是我找不到如何计算梯度的不确定性和y轴截距。我不能使用该软件“LineFit”自从我使用MacOS,我试图找到另一种方式获得相同的结果,但同样程度的准确性(至少4 dp)。有办法在Matlab上,或者其他的软件在MacOS工作。 乔治 //www.tatmou.com/matlabcentral/profile/authors/28220326 标签:www.tatmou.com, 2005:问题/ 1612780 2021 - 12 - 17 - t01:19:38z 2023 - 05 - 23 - t02:13:28z 设置MarkerFaceColor情节与多个项目。 我想充满颜色的图“o”情节,但我知道。我的情节是这样的:情节(X1, Y1, LineSpec1,…, Xn, Yn, Linespecn),我试着用这个:情节(X1, Y1,‘om’,‘MarkerFaceColor’,‘k’,……, Xn, Yn, Linespecn)但它不工作。 Lizeth安德里亚·戈麦斯奥乔亚 //www.tatmou.com/matlabcentral/profile/authors/24939768 标签:www.tatmou.com, 2005:问题/ 529043 2020 - 05 - 21 - t12:43:25z 2023 - 05 - 22 - t16:56:38z 如何做tiledlayout箱线图? 我想做一个tiledlayout MATLAB箱线图。我的代码是:tiledlayout(“流”);5)箱线图(randn(10日);nexttile;5箱线图(randn(10日)+ 5);nexttile;5箱线图(randn(10日)6);nexttile;5)箱线图(randn(10日);但我总是低于警告警告:无法设置“位置”,“InnerPosition”、“OuterPosition”,或“ActivePositionProperty”对象在箱线图TiledChartLayout > > renderLabels / setLabelappdata箱线图(第3012行)> renderLabels箱线图(第2913行)(第407行)任何线索吗? Shaoni南帝 //www.tatmou.com/matlabcentral/profile/authors/16950054 标签:www.tatmou.com, 2005:问题/ 1970249 2023 - 05 - 22 - t12:34:26z 2023 - 05 - 22 - t13:47:24z 如何生成3 d图2 2 d图形? 大家好我想生成一个三维网格图从两个2 d图形。第一个2 d图:x1 =规范化,日元=标准化电阻第二2 d图:x2 =规范化,y2 =规范化压力第一和第二2 d图形将3 d网格的一边。顶视图的3 d图将情节y1和y2的最终结果将是跨越两个二维图 Bumjun //www.tatmou.com/matlabcentral/profile/authors/26851668 标签:www.tatmou.com, 2005:问题/ 1970274 2023 - 05 - 22 - t13:02:18z 2023 - 05 - 22 - t13:02:18z 如何提高我的图吗? 你好,我做了一个对象探测器YOLOv4逃跑之后,这段代码:[美联社、召回、精密]= evaluateDetectionPrecision (detectionResults testData);recallv = cell2mat(回忆);precisionv = cell2mat(精度);(r,指数)= (recallv)进行排序;p = precisionv(指数);图绘制(r, p)包含(“回忆”)ylabel(“精度”)网格标题(sprintf(“平均精度= % .2f”,意味着(美联社)))我的图是这样的:但在Matlab示例图是这样的:我有5类对象探测器…什么是错误的吗?谢谢你的帮助 Adrian Kleffler //www.tatmou.com/matlabcentral/profile/authors/25757924 标签:www.tatmou.com, 2005:问题/ 1969924 2023 - 05 - 22 - t06:58:30z 2023 - 05 - 22 - t11:27:41z 如何显示10套26图像在一个阴谋? 这是交易:我有5组26图片我想显示之前和之后处理- 10集整体。处理过的图像这种倾向并不在一个文件夹图片中描述的方式处理。研究matlab网站我设法做的东西:附加(pdf)而且,一点更好,对每组我设法产生这样的:这是和加工同一组的图像。我使用次要情节,和下面的代码:侦察之后我= 1点%显示w_pr = tiledlayout (w, 1,1);w_pr.Layout。瓦=我;w_pr.Layout。TileSpan = [1];nexttile (w_pr);负载(1)_ +字符串(i) +“.mat”);显示亮度图像(recon_image)轴标题(“t = " +字符串(i))结束之前我= 1点%显示侦察w_unpr = tiledlayout (w, 1,1);w_unpr.Layout。瓦= i + 26; w_unpr.Layout.TileSpan = [1 1]; nexttile(w_unpr); imagesc(abs(SepImages(:,:,i,1))) axis off title("t="+string(i)) end So what's the problem? Large margins and thus small images, and I ca'nt label properly with times and names of the sets. Can't figure out how to make it more neat, readable and easthetically pleasing. I'd like to be able clearly compare images of the same set of the corresponding t=i. Thanks all. Zinoviy //www.tatmou.com/matlabcentral/profile/authors/28005464 标签:www.tatmou.com, 2005:问题/ 1970199 2023 - 05 - 22 - t10:47:05z 2023 - 05 - 22 - t11:10:04z 如何绘制loadpull轮廓史密斯圆图? 我有一个数据与loadpull电压驻波比测量结果,阶段和结果(获得/ aclr / pae数据)下面我进口数据代码清晰,关闭所有T = readtable (P: \ MATLABData \ LoadPull_HB_2640_32dbm.xlsx) a = table2array (T);Gvswr = (:, 8);Gmag = (:, 9);Gphase = (:, 10);Greal = Gmag。* cosd (Gphase);Gimag = Gmag。*信德(Gphase);ACLR = (:, 17);维生素与= (:,13);PAE = (:, 14);撅嘴= (:11); GAIN = A(:, 12); CURRENT = A(:, 25); ... now i dont know how to plot contour by smith chart? i find other answer..but it could be only polar othogonal coordinate plot.. I want to plot in smith chart. 승섭이 //www.tatmou.com/matlabcentral/profile/authors/22727428 标签:www.tatmou.com, 2005:问题/ 1961244 2023 - 05 - 11 - t04:15:23z 2023 - 05 - 22 - t06:07:42z 无法正常显示符号的传说 你好,在仔细检查这个数字我们可以观察到两次,我使用了相同的符号。一个没有标记的脸颜色,和其他有相同的填充颜色的象征。但两smbols不是很清晰可见的传奇。供您参考我也附上相应的”。无花果的文件。你可以打开它,然后放大检查。我有两件事关于这种情况的问题。我该怎样才能提高符号在传说中呈现,让它清楚地表明,没有模棱两可的符号,没有脸的颜色。任何其他想法我怎么能代表这些结果在一个更好的方法?或者至少在视觉上更好?谢谢你的时间。 苏哈塔dubey //www.tatmou.com/matlabcentral/profile/authors/13271139 标签:www.tatmou.com, 2005:问题/ 1877092 2022 - 12 - 13 - t11:00:50z 2023 - 05 - 22 - t04:52:26z 我如何创建多个组散点图里,用同样的传奇? 我有一个从多个模型运行表输出。这个模型我跑24河流,用不同的输入数据集。现在我想创建一个散点图,显示每个河的范围值,通过绘制每个河流最小和最大值。我做到了这一点,但现在我想展示的运行产生了这些最大或最小值。使用gscatter我想做到这一点,使用Run名称作为变量组。然而,因为我使用gscatter两次(最小值,最大值,然后再次),为每个散点图和运行名称不同(最小值通常是由不同的运行比最大值),传说只显示颜色用于最后的散点图(最大值)创建的,因此没有显示正确的值的散点图(极限)。下面是我的代码使用X = outputtable.Orig;日元= min ([outputtable {9}:,, outputtable{:,十一12}]“)”;%找到相关的最小值列Y2 = max ([outputtable {9}:,, outputtable{:,十一12}]“)”;%找到相关列的最大值i = 1:高度(outputtable) minloc (i) =找到(outputtable{13}我= = y₁(i)) + 1; %find the column in which the minimum value is located, using +1 because of table indices {:,2:13} maxloc(i)=find(outputtable{i,2:13}==Y2(i))+1; %find the column in which the maximum value is located, using +1 because of table indices {:,2:13} end minvar=string(outputtable.Properties.VariableNames(minloc)); %find the variable name (=Run Name) corresponding to the minimum value per river maxvar=string(outputtable.Properties.VariableNames(maxloc)); %find the variable name (=Run Name) corresponding to the maximum value per river gscatter(X,Y1,outputtable.MinVar) hold on gscatter(X,Y2,outputtable.MaxVar) Stijn de Boer //www.tatmou.com/matlabcentral/profile/authors/14469805 标签:www.tatmou.com, 2005:问题/ 1969549 2023 - 05 - 21 - t20:30:56z 2023 - 05 - 22 - t01:29:18z 创建图2 x轴属性检查器? 你好,我想创建一个图有两个x轴,一个在图的底部,另一个在顶部。给定一个情节我如何创建一个x轴的顶部图只使用属性检查器吗? MementoMori //www.tatmou.com/matlabcentral/profile/authors/26026732 标签:www.tatmou.com, 2005:问题/ 1969394 2023 - 05 - 21 - t10:56:24z 2023 - 05 - 22 - t01:18:14z 动画的情节变化的参数 你好!我有一个代码,一组图片在不同的参数值t。有可能做一个动画情节如何随时间的发展而变化(t = 0:3) ?如果有人知道,请帮助我。谢谢你!s = 3;n = 1;t = 0.1;r = 1;一个= 0:1:360;= *π/ 180; b = sqrt(2*n*t); L = sqrt((4*t+r^2)/3); fun = @(k,u,c,a) ((k.^2).*exp(-1.5*k.^2)).*((u.^2).*(1-u.^2).*exp(-(b.*u).^2).*(cos(s.*k.*u.*cos(a)/L))).*(((cos(c)).^2).*(cos(s.*k.*sqrt(1-u.^2).*sin(a).*(cos(c)+sin(c))/(L*sqrt(2))))); f3 = arrayfun(@(a)integral3(@(k,u,c)fun(k,u,c,a),0,Inf,-1,1,0,2*pi),a); B = ((6*sqrt(6)*b^3)/(erf(b)*pi^2))*(1-(3/(2*b^2))*(1-((2*b*exp(-b^2))/(erf(b)*sqrt(pi))))).^(-1); R = B*f3; polar(a,R); Hexe //www.tatmou.com/matlabcentral/profile/authors/28003261 标签:www.tatmou.com, 2005:问题/ 1969484 2023 - 05 - 21 - t16:52:20z 2023 - 05 - 22 - t00:29:05z 我怎么能把这些直线和曲线之间的区域? x = 0, x = 4, y = sqrt (x), y = 2我有这样的编码,但它x = 0:0.01:4填充错误的区域;y =√x);区(x, y)我怎么能填补这一领域正确吗? Uyen //www.tatmou.com/matlabcentral/profile/authors/28736792 标签:www.tatmou.com, 2005:问题/ 1969519 2023 - 05 - 21 - t18:37:49z 2023 - 05 - 21 - t19:05:06z 嗨伙计们我想写代码来计算G11,每站范围频率0到15和情节im (G11)与频率。我编写下面的代码,但它不工作 clc清楚α= 2;%剪切波速β= 1;% = 0:0.01:0.1;压缩波速站% = 0:15的电台频率范围;%ε= 1平台以及的频率范围;%小ε值ρ= 1;% i = 0的质量密度:长度(站)j = 0:长度(频率)ω= 2 *π*频率(j);q =ω/α;k =ω/β;f1 =(β^ 2 /α^ 2)* (1 - 1 * 2 / (q *站(我)+ε)- 2 / (q ^ 2 *站(i) ^ 2 +ε))* exp(我* q *站(我))+ (1 * 2 / (k *站(我)+ε)+ 2 / (k ^ 2 *站(i) ^ 2 +ε)]* exp(我* k *站(我)); f2=(beta^2 / alpha^2) * (1i / (q * stations(i) + epsilon) + 1 / (q^2 * stations(i)^2 + epsilon)) * exp(-1i * q * stations(i))+ [1-1i/(k*stations(i)+epsilon)-1/(k^2*stations(i)^2+epsilon)]*exp(-1i*k*stations(i)); G11= 1/(4*pi*ro*(stations(i)+epsilon))*(f1); end end plot(frequencies, G11); Niloufar巴巴亚当 //www.tatmou.com/matlabcentral/profile/authors/17630142 标签:www.tatmou.com, 2005:问题/ 1968769 2023 - 05 - 20 - t14:13:09z 2023 - 05 - 21 - t14:22:12z 图的迭代序列 我怎样才能得到这个迭代的图像序列t = @ (n) (1 / (n + 2) ^ 2); r = 1/5;g = @ (x) ((x - 1) / (exp (x)));公差= 0.000001;k = 100;x = 0 (k);x (1) = 0.3977;为n = 1: x k (n + 1) = (1 - (r) * g (x (n))) * (1 - t (n)) * x (n);如果abs (x (n + 1) - x (n)) <宽容流(公差的迭代序列收敛后% d = % f ', n,公差)休息;结束结束x = x (1: n + 1);%丢弃零格式长disp (x) 岜沙 //www.tatmou.com/matlabcentral/profile/authors/30124566 标签:www.tatmou.com, 2005:问题/ 1968944 2023 - 05 - 21 - t03:11:02z 2023 - 05 - 21 - t07:10:44z 我要画一个网格表面。但是当我使用这个代码来画,YZ线消失了…… x = (1 2 3);y = (1 2 3 4);(X, Y) = meshgrid (X, Y);Z = Y;plot3 (X, Y, Z) JongMyung //www.tatmou.com/matlabcentral/profile/authors/30200660 标签:www.tatmou.com, 2005:问题/ 1966714 2023 - 05 - 18 - t03:54:56z 2023 - 05 - 21 - t02:26:25z 帮助等高线图 我有这个函数在matlab函数[STR_SDV] = SIS_OP_SDV K_SDV (K_SDV T1_SDV) %变量和T1_SDV LS_SDV = 3.94 e-6;DC_SDV = 0.2;B_SDV = 0.02;MTTRSD_SDV = 8;N_SDV = 4;BS_SDV = B_SDV / 2;DCS_SDV = LS_SDV * DC_SDV;LSU_SDV = (1-DCS_SDV) * LS_SDV;LSD_SDV = DCS_SDV * LS_SDV;C =(阶乘(abs (N_SDV))) /(阶乘(abs (K_SDV) 1)) * ((1-BS_SDV) * LSU_SDV + (1-BS_SDV) * LSD_SDV) ^ (K_SDV); l=1:(K_SDV-1); MDT_SDV_IND =(LSU_SDV/(LSU_SDV+LSD_SDV))*((T1_SDV./(l+1))+MTTRSD_SDV)+(LSD_SDV/(LSU_SDV+LSD_SDV))*MTTRSD_SDV; PMDT_SDV_IND = prod(MDT_SDV_IND); STR_SDV_IND=C*PMDT_SDV_IND; STR_SDV_CCF=BS_SDV*LSU_SDV+BS_SDV*LSD_SDV; STR_SDV =STR_SDV_IND+STR_SDV_CCF; end and i want to make a contour for it whereas the x are K_SDV and the y are T1_SDV And the K_SDV is between (1;3) and T1_SDV (4380;17520) Houcem eddine //www.tatmou.com/matlabcentral/profile/authors/29758319 标签:www.tatmou.com, 2005:问题/ 1968024 2023 - 05 - 19 - t13:38:36z 2023 - 05 - 20 - t19:59:59z 为什么写的名字没有被保存为?为什么每次我得到这个错误?为什么这个传说是错的吗?请解决这个问题所以我可以验证我的代码工作。 嗨,所以第二个代码计算每个结构的扫描电镜(std意味着误差),并将其添加到垫文件,给你一个更新的垫文件。但我不能改变这个名字我想要的所以我就把它作为特征。为例:features1SEM没有这个错误:错误使用保存变量features1SEM未找到。错误semcalculationsbetweenfields(20)行(“featuresLD2储蓄。席”、“features1SEM”);第一块代码数据和sem与它们之间的空间填充阴影给地区风格。但我注意到,尽管我的名字他们装载不同的因此为什么加载文件的名字是不同的名字在for循环。谁能解释为什么并确认sem扫描电镜的结构计算,绘制正确吗?也传说我试着首先3数据集不同的颜色从未来3但是传说不一定允许这样至少我不确定如何去做。你能请帮我也让传奇准确反映数据绘制?谢谢你! Plotting SEM clear all % Load the mat file load('features1SEMa.mat'); load('features2SEMa.mat'); % Plot the total area for each feature in each mat file subplot(3,3,1) hold on; % Plot Lobule 1-3 in blue for i = 1:3 x = 13 - (1:length(features1SEM(i).totalArea)); y = features1SEM(i).totalArea; SEM = features1SEM(i).totalArea_SEM; y_upper = y + SEM; y_lower = y - SEM; fill([x, fliplr(x)], [y_upper, fliplr(y_lower)], 'blue', 'FaceAlpha', 0.2, 'EdgeColor', 'none'); plot(x, y, 'LineWidth', 2, 'color', 'blue'); end % Plot Lobule 4-6 in red for i = 1:3 x = 13 - (1:length(features(i).totalArea)); y = features(i).totalArea; SEM = features(i).totalArea_SEM; y_upper = y + SEM; y_lower = y - SEM; fill([x, fliplr(x)], [y_upper, fliplr(y_lower)], 'red', 'FaceAlpha', 0.2, 'EdgeColor', 'none'); plot(x, y, 'LineWidth', 2, 'color', 'red'); end xlim([1, length(features1SEM(i).totalArea)]); xticks(1:length(features1SEM(i).totalArea)); xlabel('PP - PC axis'); ylabel('Lipid Droplet Count'); legend('(\color{blue}Lobule 1-3\color{black})', '(\color{red}Lobule 4-6\color{black})'); title('Lipid Droplet Count'); Calculating SEM clear all % Load the mat file load('featuresLD2.mat'); % Calculate SEM between fields for each feature fieldnames = {'totalArea', 'AvgCircularityy', 'profileCounts', 'zoneArea', 'AvgFeret', 'avgSize'}; for j = 1:numel(fieldnames) data = [features(1).(fieldnames{j}), features(2).(fieldnames{j}), features(3).(fieldnames{j})]; SEM = std(data) / sqrt(numel(data)); % Add SEM to the feature structure for each feature for i = 1:3 fieldname_with_SEM = [fieldnames{j} '_SEM']; features(i).(fieldname_with_SEM) = SEM; end end % Save the updated mat file save('featuresLD2.mat', 'features'); 劳拉 //www.tatmou.com/matlabcentral/profile/authors/29266997 标签:www.tatmou.com, 2005:问题/ 1968269 2023 - 05 - 20 - t02:19:58z 2023 - 05 - 20 - t12:32:52z 传说ommit第一个情节冠军在多个情节 我试图创建一个原始fuzzified数据之间的对比图和安装版本。然而,第一情节标签(数据# 1)丢失的传奇。我曾经尝试过调整的位置'坚持'命令,但无法解决这个问题。”clf,图(“位置”,[1 1 600 300],“单位”,“像素”);抓住我= 1:长度(uCenters) fo = fitoptions (…“方法”、“NonlinearLeastSquares’,……“曾经繁荣”,[1 uCenters (i)],…“低”,[0负]);英尺= fittype (“gaussmf (x, [a、c])”,“选项”,fo);f =适合(uSrt uFCM(我:),英国《金融时报》);H1 =情节(uSrt’, uFCM(我:)”——g”); H1.DisplayName = sprintf('Data #%d',i); H2 = plot(f,'b'); H2.DisplayName = sprintf('Fuzzy #%d',i); end hold off, grid on, legend('Location','eastoutside','Box','off') xlim([min(uSrt) max(uSrt)]) ylim([0 1.1]) xlabel('Voltaje (V)'), ylabel('Nivel de pertenencia') title('Voltaje fuzzificado ajustado a curva gaussiana') 塞萨尔阿道夫•克鲁兹Vargaya //www.tatmou.com/matlabcentral/profile/authors/18547088