Warning Imaginary parts of complex X and/or Y arguments ignore

1 view (last 30 days)
Trying to plot to the gumbel scale. This is the error message I get.
Warning: Imaginary parts of complex X and/or Y arguments ignored > In plot_to_Gumbel_scale at 79 In taskfive at 30
the plot_to_Gumbel_scale at 79 is this line of code:
plot(GumbTransProbDist,RandVar,plot_symbol),axis square,grid on
and the taskfive at 30 is this line of code:
figure,[Alfa,Beeta] = plot_to_Gumbel_scale(Hs(Hs <=11.5),Hs_prob_dist(Hs <=11.5),'-or');
Any clues?

Answers (1)

Walter Roberson
Walter Roberson on 8 Apr 2012
Put a breakpoint in at that point and run the code. When you reach the plot statement, use isreal() to figure out what is complex, and then chase that value back to the calling routine and backtrack from there to figure out how the complex value was generated.

Community Treasure Hunt

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

Start Hunting!