How to create a surface object from the input of complex numbers?

Dear all, I will appreciate any ideas how to create a surface object from a complex data as follows:
x=0:10:200;
t=0:0.2:2;
u=[0.090211+0.0026537i,-0.0052867+0.090095i,-0.089902-0.0079152i,0.010537-0.089633i,0.089287+0.01315i,-0.015751+0.088865i,-0.088367-0.018339i,0.020912-0.087794i,0.087146+0.023466i,-0.026001+0.086424i,-0.085628-0.028513i
0.086298-0.026523i,0.023992+0.087035i,-0.087699+0.021441i,-0.018871-0.088288i,0.088801-0.016285i,0.013685+0.089239i,-0.0896+0.011073i,-0.0084522-0.089885i,0.090094-0.0058239i,0.0031908+0.090225i,-0.09028+0.00055487i
0.074834-0.053638i,0.05143+0.076368i,-0.077837+0.049178i,-0.046884-0.07924i,0.080575-0.04455i,0.042179+0.081842i,-0.083039+0.039771i,-0.037329-0.084164i,0.085219-0.034856i,0.032353+0.0862i,-0.087108+0.029822i
0.05663-0.076773i,0.075087+0.058848i,-0.061015+0.073336i,-0.071523-0.063131i,0.065192-0.069649i,0.067716+0.067198i,-0.069147+0.065725i,-0.063678-0.071036i,0.072865-0.061577i,0.059423+0.074632i,-0.076336+0.057218i
0.032973-0.094293i,0.09329+0.035713i,-0.038421+0.092208i,-0.091047-0.041097i,0.043738-0.089808i,0.088492+0.046342i,-0.048906+0.087101i,-0.085636-0.051429i,0.053907-0.084098i,0.082488+0.05634i,-0.058725+0.080808i
0.0055358-0.10496i,0.10475+0.0085982i,-0.011653+0.10446i,-0.10407-0.014698i,0.017731-0.1036i,0.10304+0.020749i,-0.023748+0.10239i,-0.10165-0.026728i,0.029685-0.10083i,0.099918+0.032616i,-0.03552+0.098923i
-0.023743-0.10802i,0.10867-0.020579i,0.017397+0.10922i,-0.10968+0.0142i,-0.010992-0.11005i,0.11033-0.0077734i,0.0045486+0.11051i,-0.11059+0.00132i,0.0019098-0.11058i,0.11048+0.0051379i,-0.0083617+0.11028i
-0.052793-0.10326i,0.10475-0.049756i,0.046676+0.10616i,-0.10748+0.043556i,-0.040399-0.10871i,0.10984-0.037208i,0.033985+0.11088i,-0.11182+0.030732i,-0.027454-0.11267i,0.11343-0.024152i,0.02083+0.11408i
-0.079561-0.091006i,0.09329-0.07687i,0.074113+0.095495i,-0.097618+0.071293i,-0.068413-0.099659i,0.10161-0.065473i,0.062478+0.10348i,-0.10526+0.05943i,-0.056331-0.10695i,0.10855-0.053184i,0.049992+0.11006i
-0.10216-0.072135i,0.075087-0.10001i,0.09777+0.077975i,-0.080796+0.095452i,-0.093052-0.083549i,0.08623-0.090572i,0.088016+0.088838i,-0.091371+0.085384i,-0.08268-0.093825i,0.096199-0.079905i,0.077062+0.098491i
-0.11898-0.047976i,0.05143-0.11753i,0.11597+0.05484i,-0.058202+0.11432i,-0.11257-0.061516i,0.064777-0.11073i,0.10879+0.067982i,-0.07113+0.10676i,-0.10464-0.074217i,0.077241-0.10243i,0.10013+0.080199i
-0.12884-0.020238i,0.023991-0.12819i,0.12744+0.027724i,-0.031434+0.12657i,-0.1256-0.035116i,0.038769-0.12452i,0.12334+0.042388i,-0.045971+0.12205i,-0.12065-0.049515i,0.053017-0.11916i,0.11756+0.056474i
-0.13104+0.0091193i,-0.005289-0.13125i,0.13135-0.0014542i,-0.0023818+0.13134i,-0.13121-0.0062158i,0.010045-0.13098i,0.13063+0.013865i,-0.017673+0.13017i,-0.12959-0.021466i,0.025241-0.12891i,0.12812+0.028995i
-0.12544+0.038016i,-0.034337-0.1265i,0.12745-0.030629i,0.026895+0.12829i,-0.12902+0.023137i,-0.01936-0.12964i,0.13015-0.015567i,0.01176+0.13055i,-0.13083+0.0079429i,-0.0041192-0.13101i,0.13107-0.00029207i
-0.11242+0.064397i,-0.061087-0.11425i,0.11598-0.057725i,0.054314+0.11762i,-0.11916+0.050856i,-0.047355-0.12059i,0.12192-0.043814i,0.040235+0.12315i,-0.12427+0.036622i,-0.032978-0.12529i,0.1262-0.029305i
-0.092856+0.086393i,-0.083645-0.095339i,0.097741-0.080825i,0.077937+0.10006i,-0.10229+0.074982i,-0.071963-0.10444i,0.10649-0.068883i,0.065744+0.10846i,-0.11033+0.062549i,-0.059301-0.11211i,0.1138-0.056002i
-0.068072+0.10254i,-0.10051-0.071037i,0.073942-0.098395i,0.096194+0.076783i,-0.07956+0.093911i,-0.091548-0.082268i,0.084906-0.089107i,0.08659+0.087472i,-0.089963+0.083999i,-0.081336-0.092377i,0.094713-0.078604i
-0.039954+0.112i,-0.11079-0.043207i,0.046424-0.10948i,0.10808+0.049601i,-0.052735+0.10658i,-0.105-0.055825i,0.058867-0.10332i,0.10156+0.061859i,-0.064798+0.099712i,-0.097778-0.067682i,0.070508-0.09576i
-0.011411+0.11419i,-0.11381-0.014741i,0.018058-0.11333i,0.11276+0.021359i,-0.024643+0.11209i,-0.11132-0.027905i,0.031144-0.11046i,0.1095+0.034356i,-0.037538+0.10845i,-0.10731-0.040689i,0.043805-0.10607i
0.014012+0.10682i,-0.10718+0.010887i,-0.0077524-0.10746i,0.10764-0.0046114i,0.0014665+0.10773i,-0.10772-0.0016797i,0.0048244-0.10763i,0.10744+0.0079651i,-0.011099+0.10716i,-0.10679-0.014223i,0.017336-0.10633i
0.037596+0.083628i,-0.08469+0.035138i,-0.03265-0.08568i,0.086597-0.030134i,0.027593+0.08744i,-0.088208+0.025028i,-0.022442-0.088901i,0.089519-0.019836i,0.017214+0.09006i,-0.090524+0.014577i,-0.011927-0.090911i].
Thanks!

 Accepted Answer

surf(x,t,real(u));
or
surf(x,t,imag(u));
or
surf(x,t,abs(u));
or
surf(x,t,real(u));
hold on
surf(x,t,imag(u));
There are other possibilities, but you need to describe your thinking about what you would like the display to be considering the 2D nature of complex values.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!