Using multiple inputs with nftool
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am currently trying to figure out how to choose both of these 2 variables (x and y) as inputs in nftool.
If it's easier to do with another command, I could use it instead of nftool.
x = linspace(-512, 512, 1025);
y = linspace(-512, 512, 1025)';
for i=1:length(x)
for j =1:length(y)
z(i,j) = -(y(j,1)+47) .* sin(sqrt(abs(y(j,1)+x(1,i)/2+47))) - x(1,i) .* sin(sqrt(abs(x(1,i)-(y(j,1)+47))));
end
end
0 Kommentare
Antworten (1)
Sarthak
am 17 Mai 2023
Hi Zdenek,
As per my understanding you can reshape your inputs to a single input matrix.
inputs = [x(:), y(:)];
This inputs can then be used for any suitable function.
Siehe auch
Kategorien
Mehr zu Core Management Tasks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!