MATLAB Answers

int and subs function

6 views (last 30 days)
hi everyone
I would like to do integration to the acceleration
syms t
c=0.0625;
a=c*t
v=int(a)
t=0:1:10;
v=subs(v)
the problem when I use subs function this error accor
Attempt to execute SCRIPT error as a function:
C:\Users\Areej Alfetlawi\Desktop\all matlab programs\matlab11-6-2019\matlab\error.
Error in sym/subs>mupadsubs (line 151)
error(inputchk(X,Y));
Error in sym/subs (line 142)
G = mupadsubs(F,X,Y);
Error in int (line 8)
v=subs(v)

  0 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 16 Feb 2020
Edited: madhan ravi on 16 Feb 2020
Run:
which subs -all
which error -all
In command window and paste the output here. It looks like you have a script named error.m that you may have created.

  8 Comments

Show 5 older comments
areej abdulshaheed
areej abdulshaheed on 17 Feb 2020
I want the result at t=0,1,2,........
Walter Roberson
Walter Roberson on 17 Feb 2020
Then the second one.
areej abdulshaheed
areej abdulshaheed on 17 Feb 2020
THANK YOU

Sign in to comment.

More Answers (0)

Sign in to answer this question.