what is this error "error updating text"
Mostra commenti meno recenti
i keep gettin an error i have not seen before
"Warning error updating text string scalar or character bector must have valid interpreter syntax"
below is the code
x=(1:15); % x
y=[0.35 0.4 0.52 0.58 0.46 0.74 0.68 0.82 1.03 1.17 1.81 2.01 2.63 3.29 4]; % y
P=polyfit(x,log(y),1);
A=exp(P(2))
B=(P(1))
y_fit=a*exp(b*x);
figure
plot(x,y,'r*')
xlabel('x')
ylabel('y and y__fit')
grid on
hold on
plot(x,y_fit,'-b')
legend('Original data (y)','Fitted data (y__fit)')
1 Commento
Fangjun Jiang
il 28 Lug 2021
Add "clear all" as the first line of your code, run it again, debug it and paste the error that you couldn't resolve.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Signal Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
