![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173307/image.png)
Toolbox Problems: some functions missing
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Douglas Bock
el 15 de Mzo. de 2017
Comentada: Douglas Bock
el 16 de Mzo. de 2017
See picture for details.
I'm running Matlab 2015b with pde toolbox, yet some functions from that release (eg. interpolateSolution) are missing. Functions that were introduced earlier in this toolbox work fine. Any ideas what I can do to use these new functions?
Cheers
Doug
0 comentarios
Respuesta aceptada
per isakson
el 15 de Mzo. de 2017
Editada: per isakson
el 15 de Mzo. de 2017
interpolateSolution   is obviously a method of three different classes
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173307/image.png)
 
thus the first argument of the call must be an instance of one of those classes.
And those classes are in the package, pde.
 
Added later
>> version
ans =
9.0.0.341360 (R2016a)
6 comentarios
Steven Lord
el 15 de Mzo. de 2017
Sorry, I didn't consider the fact that the function may have changed between the release you were using and the current release whose documentation I was reading.
Looking at the examples on the documentation page for interpolateSolution in release R2015b you will need to create a results object using createPDEResults and pass that object into interpolateSolution. Using the example from the documentation for pdenonlin:
% Create and set up the model
model = createpde;
geometryFromEdges(model,@circleg);
a = 0;
f = 0;
c = '1./sqrt(1+ux.^2+uy.^2)';
boundaryfun = @(region,state)region.x.^2;
applyBoundaryCondition(model,'Edge',...
1:model.Geometry.NumEdges,...
'u',boundaryfun,'Vectorized','on');
generateMesh(model,'Hmax',0.1);
% Solve the PDE
u = pdenonlin(model,c,a,f);
% Create the results object
results = createPDEResults(model, u)
% Interpolate the solution
IS = interpolateSolution(results, ...
-0.5:0.125:0.5, ...
-0.5:0.125:0.5)
Más respuestas (0)
Ver también
Categorías
Más información sobre Geometry and Mesh en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!