photo

Pablo Zarco


Last seen: 3 years 前 自 2021 起处于活动状态

Followers: 0   Following: 0

统计学

  • Thankful Level 2
  • Thankful Level 1

查看徽章

Feeds

排序方式:

提问


How can i simplify this
If (a(i)>0)&&(a(i-1)==0)&&(a(i-2)==0)&&(a(i-3)==0)&&(a(i-4)==0)&&(a(i-5)==0)&&(a(i-6)==0)...until a(i-32)==0

3 years 前 | 2 个回答 | 0

2

个回答

提问


I want to know the value of x for each value of V
V=[2,4,5,6,7] for i=1:numel(V) x(i)=(2+4*7+8-9*6+x(i))/(3+4*6*V(i)+3*x(i)) end

4 years 前 | 1 个回答 | 0

1

个回答

提问


why is this program keep telling me this error: Unable to perform assignment because the left and right sides have a different number of elements.
clear;clc; V=[1 2 3 4]; A=3; %preallocation C=zeros(1,numel(V)); xSol=zeros(1,numel(V)); ySol=zeros(1,numel(V)); for i=1:...

4 years 前 | 1 个回答 | 0

1

个回答

提问


How can I save and plot all values of x and y for each value of C? x and y values are in the vertical axis and C in the horizontal axis in the graphic. I need to use the function "solve"
V=[1,2,3,4]; A=3; i=1; while i<=4 C=A*V(i); syms x y eqn1 = C*x + y == 2; eqn2 = -x + y == 3; sol = solve([eqn1, eqn...

4 years 前 | 1 个回答 | 0

1

个回答

提问


How can I save and plot all values of x and y for each value of V? x and y values are in the vertical axis and V in the horizontal axis in the graphic
V=[1,2,3,4]; i=1; while i<=4 syms x y eqn1 = V(i)*x + y == 2; eqn2 = -x + y == 3; sol = solve([eqn1, eqn2], [x, y]); ...

4 years 前 | 1 个回答 | 0

1

个回答