I can't find helper function: transientBCHeatedBlock which is supposed to be in: matlab/R20XXx/examples/pde/main
Mostrar comentarios más antiguos
Trying to run example on Matlab site that includes:
model.EdgeBC(6)= ...
edgeBC(Temperature=@transientBCHeatedBlock);
2 comentarios
Steven Lord
el 17 de Ag. de 2024
Can you confirm which release you're using and that you have Partial Differential Equations Toolbox installed? The ver function will include both these pieces of information.
Can you also show us the output of ls executed in that example's directory?
John McGrath
el 17 de Ag. de 2024
Respuestas (1)
The first thing you need to do is go through Preferences -> Help and install help locally.
Once that is done, look for
try
ls(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'examples', 'pde', 'main', 'transientBCHeatedBlock.m'))
catch ME
disp('not under support package root')
end
try
ls(fullfile(fileparts(docroot), 'examples', 'pde', 'main', 'transientBCHeatedBlock.m'))
catch ME
disp('not under docroot')
end
If it is not under either place then there is trouble.
8 comentarios
John McGrath
el 21 de Ag. de 2024
Walter Roberson
el 22 de Ag. de 2024
Editada: Walter Roberson
el 22 de Ag. de 2024
See if
ls(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'examples', 'pde'))
exists at least.
This assumes that you went through Preferences -> Help to request that the help documents are loaded locally. And this also assumes that you have the PDE toolbox installed.
John McGrath
el 23 de Ag. de 2024
Walter Roberson
el 24 de Ag. de 2024
Next see what shows up for
ls(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'examples', 'pde', 'main'))
John McGrath
el 2 de Sept. de 2024
Walter Roberson
el 3 de Sept. de 2024
Editada: Walter Roberson
el 3 de Sept. de 2024
fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'examples', 'pde', 'main', 'NoBoundaryConditionsBetweenSubdomainsExample.mlx')
Note that it is NoBoundaryConditionsBetweenSubdomainsExample.mlx
John McGrath
el 3 de Sept. de 2024
Walter Roberson
el 3 de Sept. de 2024
Editada: Walter Roberson
el 3 de Sept. de 2024
Now
ls(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'examples', 'pde', 'main', 'NoBoundaryConditionsBetweenSubdomainsExample.mlx'))
to see if the file actually exists.
It is extremely unlikely that you happen to be using Linux and installed the files in /SupportPackages .
It is more likely that you are experimenting with using MATLAB Online. It is questionable whether MATLAB Online has the examples installed.
... I just checked using the Linux find utility. I confirm that MATLAB Online does not have the pde examples installed.
Categorías
Más información sobre Heat Transfer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!