How do I create a 256x256x6 where each set of six is exponentially decaying data? I have to basically add noise to each set of six so that I can fit the points to an exp graph.

Respuestas (2)

Matt J
Matt J el 11 de Nov. de 2022
Editada: Matt J el 11 de Nov. de 2022

0 votos

I feel like there is a lot of missing detail in the question, but here is one fulfillment of what it asks for:
out = exp(-sort( rand(256,256,6) ,3));

3 comentarios

Image Analyst
Image Analyst el 11 de Nov. de 2022
Editada: Image Analyst el 11 de Nov. de 2022
Expanding on that, I'll just plot a very few of the curves
markerSize = 20;
r = sort(rand(256, 256, 6), 3);
out = exp(-r);
% Plot a subset to see what they look like.
for row = 1 : 64 : 256
for col = 1 : 64 : 256
x = squeeze(r(row, col, :));
y = squeeze(out(row, col, :));
plot(x, y, '.-', 'MarkerSize', markerSize);
hold on;
end
end
grid on;
Jessica Bolar
Jessica Bolar el 11 de Nov. de 2022
thank you
Matt J
Matt J el 11 de Nov. de 2022
You're welcome, but if it's what you wanted, then please Accept-click the answer.

Iniciar sesión para comentar.

Image Analyst
Image Analyst el 11 de Nov. de 2022

0 votos

See attached exponential fitting demos that you can use once you have the 6 points.

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Nov. de 2022

Comentada:

el 11 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by