Questo articolo sarà sia in Italiano che in Inglese: scusate per gli strani colori ma aiuta a distinguere tra le due lingue.
Mi serviva per la tesi produrre delle superfici parametriche utilizzando Scilab, tutti gli esempi trovati nel manuale e su web non funzionavano e davano strani errori!!!! Così mi sono stufato e ho studiato un metodo alternativo per disegnarle…
Per disegnare una sfera parametrica (di prova) ho seguito il metodo suggerito dalle guide ricevendo l’errore che vedete:
This article will be either in Italian and in English: sorry for the weird colors but help to differentiate them.
I was in trying to plot a 3d parametric surface with Scilab, all the example I’ve found in the manual and on the web doesn’t worked for me giving some weird errors!!!! So i pissed off and worked around it finding my own way to draw a parametric surface…
To draw a parametric sphere (to test) I tried the way suggested by manuals getting the error you see:
u=linspace(0,%pi);// primo vettore dei parametri / first parameter vector
v=linspace(0,2*%pi);// secondo vettore dei parametri / second parameter vector
deff('[x,y,z]=fun(u,v)',['x=sin(u).*cos(v)','y=sin(u).*cos(v)','z=cos(u)']);// definizione dell’equazione parametrica / define the parametric equation
mesh(u,v,fun);Z must not be a scalar or vector, not rendering surface.
!–error 999
set: color_mode property does not exist for this handle
at line 4 of function generic_i_h called by :
line 2 of function %s_i_h called by :
line 22 of function mesh called by :
mesh(u,v,fun);
Ho ricontrollato parecchie volte ma non ho fatto nulla di diverso da quello consigliato in numerose guide! Eppure non funziona così… Quindi ecco come ho risolto:
I checked a lot of times but exactly made what many guides advice to do! Nevertheless it doesn’t work this way… So here how i solved this issue:





