Error: File: Symbolic_Relationships.m Line: 17 Column: 11 The expression to the left of the equals sign is not a valid target for an assignment.
Mostra commenti meno recenti
1 %Symbolic relatioships
2 %Justin Sheldon
3 %MATLAB Assignment #1 EGR 271
4
5 clear;
6 clc;
7
8 fprintf('Enter 1 to find i(t) given q(t)\n')
9 fprintf('Enter 2 to find q(t) given i(t) over a range \n')
10 fprintf('Enter 3 to find p(t) given w(t)\n')
11 fprintf('Enter 4 to find w(t) given p(t)\n')
12 Choice=input('');
13
14 if(Choice==1)
15 [
16 fprintf('i(t)=dq/dt\n')
17 coeff=input('Please enter the coeffecent before the e: ');
18 exp=input('Please enter the exponent ignoring the t variable: ');
19 coeff1=coeff*exp;
20 fprintf('i(t) = %0fe',r1)
21 fprintf('^ %0t',exp)
22
23 ]
24
25 elseif(Choice==2)
[
]
elseif(Choice==3)
[
]
elseif(Choice==4)
[
]
end
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Code Performance 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!