Info

この質問は閉じられています。 編集または回答するには再度開いてください。

crop contour plot compressor map

1 回表示 (過去 30 日間)
cemsi888
cemsi888 2015 年 5 月 5 日
閉鎖済み: cemsi888 2015 年 5 月 7 日
Hi i created compressor map in matlab and i would like to crop lines outside of my compressor map.I could not find any solution , i used Nan and convhull but the did not work. Please advice me something. i will attach my codes and my plot and desired compressor map Picture.
if %%Compressor
for i=1:length(indices)
[Max_mdot_corr(i),k(i)]=max(mdot_corr(indices{1,i}));
[Min_mdot_corr(i),k1(i)]=min(mdot_corr(indices{1,i}));
end
ind=length(k1)
for g=1:ind
indices_speed(g)=indices{1,g}(k1(g))
end
for q= 1:ind
PI_C_tt_speed{q}=(PI_C_tt(indices_speed(q)))
end
for s=1:length(k)
zeilenum_max(s)=indices{1,s}(k(1,s));
PI_C_tt_comp_max(s)=PI_C_tt(zeilenum_max(1,s));
zeilenum_min(s)=indices{1,s}(k1(1,s));
PI_C_tt_comp_min(s)=PI_C_tt(zeilenum_min(1,s));
end
%%Vector
%mdot_corr=linspace(min(mdot_corr),max(mdot_corr),100)
mdot_corr_vec=mdot_corr(:);
%PI_C_tt=linspace(min(PI_C_tt),max(PI_C_tt),100)
PI_C_tt_vec=PI_C_tt(:)
%eta_c_tt_is=linspace(min(eta_c_tt_is),max(eta_c_tt_is),100)
eta_c_tt_is_vec=eta_c_tt_is(:);
%%Pumpgrenze/Stopfgrenze/Drehzahlinien
hold on
%%Drehzahllinien
for j=1:length(indices)
plot3(mdot_corr(indices{1,j}(1:end)),PI_C_tt(indices{1,j}(1:end)),eta_c_tt_is_hun(indices{1,j}(1:end)),'-bs','Linewidth',1.5,...
'MarkerEdgeColor','b');
%%Stopfgrenze
plot(Max_mdot_corr(1,:),PI_C_tt_comp_max(1,:),'linewidth',2);
%%Pumpgrenze
plot(Min_mdot_corr(1,:),PI_C_tt_comp_min(1,:),'linewidth',2);
%%Wirkungsgradlinien
Wnodes=40;
PRnodes=40;
smooth=1.5;
[eff_grid,M_grid,P_grid]=gridfit(mdot_corr_vec,PI_C_tt_vec,eta_c_tt_is_vec,Wnodes,PRnodes,'smoothness',smooth);
tx=linspace(min(mdot_corr),max(mdot_corr),40);
ty=linspace(min(PI_C_tt),max(PI_C_tt),40);
eff_grid_text=ceil(eff_grid*100);
link :http://www.bing.com/images/search?q.....rggFgEomfA&ajaxhist=0
  3 件のコメント
Walter Roberson
Walter Roberson 2015 年 5 月 6 日
cemsi888
cemsi888 2015 年 5 月 6 日
編集済み: cemsi888 2015 年 5 月 6 日
thanx a lot for your detailed Information. Do not worry i deleted it

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by