Community Profile

photo

Muhammad Waseem


Active since 2017

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


My for loop gives an error
alpha=sym('alpha',[1 6]) theta=sym('theta',[1 6]) d=sym('d',[1 6]) a=sym('a',[1 6]) A=sym('A',[1 6]) for S=[1 2 3 4 5 6] A...

5 years ago | 1 answer | 0

1

answer

Question


write a program that creates two vectors from x—one (call it P) that contains the positive elements of x, and a second (call it N) that contains negative. I cant create the arrays
clear all clc for x=[-3.5 -5 6.2 11 0 8.1 -9 0 3 -1 3 2.5] if x>0 P=x elseif x<0 ...

6 years ago | 2 answers | 0

2

answers