Help with matlab example

1 view (last 30 days)
Emil Eterovic
Emil Eterovic on 10 Feb 2016
Commented: Emil Eterovic on 10 Feb 2016
My code is in the attachment,not the whole thing but the part where the error starts. as you can see,i get those two error messages. now the thing is,this code works for a different set of data,but the only difference between this set and the previous one is the size and the name of it. but that shouldnt matter,and dont know how to fix this. Does anybody knows how to

Answers (1)

John D'Errico
John D'Errico on 10 Feb 2016
Edited: John D'Errico on 10 Feb 2016
You have not actually given us your data. I'm not sure why not, as it would be trivial to attach a .mat file. A picture in thus case is not that useful.
BUT READ THE ERROR MESSAGE. Apparently time2 (in the second case) does not contain a set of distinct, increasing (or monotonically decreasing) values.
So we cannot fix it. Only you can fix it, especially since we are not privy to your data.
  1 Comment
Emil Eterovic
Emil Eterovic on 10 Feb 2016
yeah i dont know either.sorry.here are the files.first one is the code which doesnt work,and the other is where the data is stored.

Sign in to comment.

Categories

Find more on Contour Plots 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!