??? Error using ==> mrdivide
Résolu
atiffa
Messages postés
54
Date d'inscription
Statut
Membre
Dernière intervention
-
Sacabouffe Messages postés 9427 Date d'inscription Statut Membre Dernière intervention -
Sacabouffe Messages postés 9427 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
j'ai essayer de crée la fonction suivante :
function [jnap jkp] = pumpnak(cnac,ckb)
%Input: cnac: The concentration of intracellular Na+ (mM)
% ckb: The concentraton of serosal K+ (mM)
%Output: jnap: flux attributable to the sodium pump(Na+ efflux)(pmol/cm2.sec)
% jkp : flux attributable to the sodium pump(K+ influx) (pmol/cm2.sec)
F = 96.48; % Faraday's constant (coul/mmol = mcoul/umol1.0)
Imax = 5.61; % The maximum observable pump current(uA/cm2)
Kna = 14.2; % The concentration of intracellular Na+ producing half-maximal pump current(mM)
Kk = 2.3; % The concentration of serosal K+ producing half-maximal pump current(mM)
Ip = Imax.*1/((1+(Kna/cnac).^3).*(1+(Kk/ckb).^2));
jnap = 3*Ip/F;
jkp = - 2*Ip/F;
end
le problème c'est que quand j'essaie de tracer la fonction en utilisant les lignes de command suivants:
cnac = 35;
ckb = 7:75;
[jnap jkp] = pumpnak(cnac,ckb);
plot(ckb,jnap,'b',ckb,jkp,'.')
il m'affiche le message d'erreur suivante:
??? Error using ==> mrdivide
Matrix dimensions must agree.
Error in ==> pumpnak at 18
Ip = Imax.*1/((1+(Kna/cnac).^3).*(1+(Kk/ckb).^2));
Qu'il qu'un pourra me dire l'erreur viens de quoi? parceque je comprend pas pourquoi j'ai ce genre de message
Je vous remercie d'avance pour votre aide
merci bcp
j'ai essayer de crée la fonction suivante :
function [jnap jkp] = pumpnak(cnac,ckb)
%Input: cnac: The concentration of intracellular Na+ (mM)
% ckb: The concentraton of serosal K+ (mM)
%Output: jnap: flux attributable to the sodium pump(Na+ efflux)(pmol/cm2.sec)
% jkp : flux attributable to the sodium pump(K+ influx) (pmol/cm2.sec)
F = 96.48; % Faraday's constant (coul/mmol = mcoul/umol1.0)
Imax = 5.61; % The maximum observable pump current(uA/cm2)
Kna = 14.2; % The concentration of intracellular Na+ producing half-maximal pump current(mM)
Kk = 2.3; % The concentration of serosal K+ producing half-maximal pump current(mM)
Ip = Imax.*1/((1+(Kna/cnac).^3).*(1+(Kk/ckb).^2));
jnap = 3*Ip/F;
jkp = - 2*Ip/F;
end
le problème c'est que quand j'essaie de tracer la fonction en utilisant les lignes de command suivants:
cnac = 35;
ckb = 7:75;
[jnap jkp] = pumpnak(cnac,ckb);
plot(ckb,jnap,'b',ckb,jkp,'.')
il m'affiche le message d'erreur suivante:
??? Error using ==> mrdivide
Matrix dimensions must agree.
Error in ==> pumpnak at 18
Ip = Imax.*1/((1+(Kna/cnac).^3).*(1+(Kk/ckb).^2));
Qu'il qu'un pourra me dire l'erreur viens de quoi? parceque je comprend pas pourquoi j'ai ce genre de message
Je vous remercie d'avance pour votre aide
merci bcp
3 réponses
Salut
Il manque deux points.
Il manque deux points.
Ip = Imax./((1+(Kna./cnac).^3).*(1+(Kk./ckb).^2));Mais s'il y a que ckb qu'est un vecteur, ils sont pas tous utiles. Ce truc là devrait convenir aussi.
Ip = Imax./((1+(Kna/cnac)^3)*(1+(Kk./ckb).^2));Ciao