Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by SPoderoso

  1. SPoderoso

    Challenging trick

    How about using global variables? the function: function dC = star(t,C) dC = zeros(1,1); Gn=1; N=2; f=3; global w; dC = (1/2)*Gn*N*C(1)+f*cos(w*t-C(1)) the script: global w; t =linspace(0,5,100); C0 = [0]; for w = 0:6 [t,C] = ode45('star', t, C0); %save t and C...
  2. SPoderoso

    Simple Question

    Here's an altern code: fprintf('Hello World! Day %g\n',1:3) It depends on your need.
  3. SPoderoso

    How to link between workspaces

    try sending the variables in model "a" to the base workspace, and keep monitoring those variables in "b" model... to keep the workspace clear, u can make them global.

Part and Inventory Search