Computing Equation values for its unknown variables
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
aliza mustafa
am 25 Sep. 2022
Kommentiert: Dyuman Joshi
am 25 Sep. 2022
Hi @all,
My question is a bit basic but I am confused I am getting error in that.
I have equation and I have to find its values for its unknown. The equation is:
E_t = @(t) 1.3 + 0.44 * sin(2 * pi *t)+ 0.10 * sin(3 * pi * t);
t = 0:0.05:10;
Now when I run:
output = E_t(t)
It gives me following error:
Invalid text character. Check for unsupported symbol, invisible
character, or pasting of non-ASCII characters.
I am confused what I am doing wrong here. Can anyone please guide me about it? Any help will be highly appreciated. thanks in advance.
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 25 Sep. 2022
Bearbeitet: Dyuman Joshi
am 25 Sep. 2022
It seems like you have copy-pasted the expression from somewhere, and the text is not compatible.
Manually write the expression and you will be good to go -
E_t = @(t) 1.3 + 0.44*sin(2*pi*t) + 0.1*sin(3*pi*t)
t = 0:0.05:10;
E_t(t)
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!