Community Profile

photo

Pablo Zarco


Last seen: oltre 2 anni fa Attivo dal 2021

Statistiche

  • Thankful Level 2
  • Thankful Level 1

Visualizza badge

Content Feed

Visto da

Domanda


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

oltre 2 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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:...

circa 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

circa 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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]); ...

circa 3 anni fa | 1 risposta | 0

1

risposta