Info
This question is closed. Reopen it to edit or answer.
My program does not display the values of v and w; might be a problem with the nester function. How can I modify the program in order to display v and w?
1 view (last 30 days)
Show older comments
function []= numerical_differenctiation1D()
clear all
data=load("T215_4_000_1.mat");
nestedfun1
nestedfun2
function [dfdx]=nestedfun1(xi,xi1,yi,yi1)
xi1 = data.Location_of_measured_points(1,6);
xi = data.Location_of_measured_points(1,5);
v = (xi1-xi);
disp(v)
end
function [dfdx]=nestedfun2(xi,xi1,yi,yi1)
xi1 = data.Location_of_measured_points(1,4);
xi = data.Location_of_measured_points(1,5);
w=(xi-xi1);
disp(w)
end
end
1 Comment
Walter Roberson
on 26 Jun 2019
Change
function [dfdx]=nestedfun1(xi,xi1,yi,yi1)
to
function nestedfun1
and likewise for the other one.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!