Warning Imaginary parts of complex X and/or Y arguments ignore
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!