フィルターのクリア

Using tiledlayout with pde toolbox plot function pdegplot?

3 ビュー (過去 30 日間)
Mike Powers
Mike Powers 2021 年 6 月 20 日
回答済み: Sulaymon Eshkabilov 2021 年 6 月 20 日
I'm trying to use the new tiledlayout plotting capability with the plot function in the pde toolbox. My sample code is below.
The first figure plots fine, but second one in tiledlayout gives errors about undefined colors.
Is there a way to do this, or do I just need to go back to subplots? Thanks!
thermalmodel = createpde('thermal','transient'); % Initialize the model
% define geometry
gm = multicuboid(10,10,10);
thermalmodel.Geometry = gm; % assign geometry to model
generateMesh(thermalmodel); % generate the mesh
% this works fine
figure
pdegplot(thermalmodel,'FaceAlpha',0.25,'CellLabel','on')
% this gives error
figure
tiledlayout('flow')
nexttile
pdegplot(thermalmodel,'FaceAlpha',0.25,'CellLabel','on')

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 6 月 20 日
In this case, without numerical values for x, y axes, tiledlayout('flow') can't be employed.

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by