Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: What the...?
Replies: 7   Last Post: Dec 19, 2012 6:37 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Sargondjani

Posts: 176
Registered: 8/30/11
Re: What the...?
Posted: Dec 19, 2012 6:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I dont understand the error yet. I also get it. My code is:

E_vec = NaN(1,par.T);
for it = 1:par.T;
E_vec(it) = interp1(var.K(:,it),bm.E_pol(1,:,it,z(iz)),bm.sim.avg_K(1,it));
end

When i run the thing i get the following error message:

??? The class bm has no property or method named 'sim'.

Error in ==> plot_pol_fun_v2 at 180
E_vec(it) =
interp1(var.K(:,it),bm.E_pol(1,:,it,z(iz)),bm.sim.avg_K(1,it));

But if i put a 'dbstop if error', then if i type " bm.sim.avg_K(1,it)" i get the value that i want (and "bm.sim.avg_K" is a vector, as it should be).

what could be possibly wrong here? (bm is a structure, and so is sim)



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.