Borrar filtros
Borrar filtros

Streamcolor function that needs to be adapted

1 visualización (últimos 30 días)
Santhosh Virappane
Santhosh Virappane el 7 de Mzo. de 2023
Respondida: Sai Sumanth Korthiwada el 29 de Mzo. de 2023
Hello there,
Iam reaching you because I am trying to use the streamcolor function to color my streamlines based on the velocity magnitude. The issue is that the function is constructed assuming that the position matrices X,Y,Z are created from meshgrid.
However, in my case I reconstructed the matrixes based on the excel datas retrieve from simulation. Hence I cannot use this function. I wanted to know if anyone could help me modify it to make it work.
Thanks for your time and help :)!

Respuestas (1)

Sai Sumanth Korthiwada
Sai Sumanth Korthiwada el 29 de Mzo. de 2023
Hi Santhosh,
I understand that you want to use 'streamcolor' function but the input you have is not in meshgrid format.
'streamcolor' function only accepts meshgrid as an input. Please use readmatrix method to import excel data into a MATLAB variable. And then use meshgrid method to convert the array variable to meshgrid.
You can now use the meshgrid as an input to the 'streamcolor' function.
Hope this helps!

Categorías

Más información sobre Volume Visualization en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by