Looking for matlab cods please?

Attachment image

1 Answer

Relevance
  • 3 weeks ago

    You need to tweak this a bit but the code goes something like this.

    clc;

    clear;

    Q = 8; %random input - dont know what Q

    a = Q/100;

    b = Q/1000;

    Vm = 0.8;

    P = 50;

    syms f(T) ;

    f(T) = 3*T/(Vm-3*b) - (9*a)/(sqrt(T)*Vm*(Vm+3*b))- P;

    a = [];

    for ii = 1:100*10 %increment of 0.1

    a(ii) = f(ii/10); %f(0.1 to 100) T cannot be 0. Also, stored it in to an array to process it faster 

    end

    a % shows answer for f(0.1) to f(100)

Still have questions? Get your answers by asking now.