Question


why do i get last value of loop?
clc clear In = input;%this is my data tms = 0.5; psm1 = 1.1:20; for i = 1:length(psm1) %my problem is here >>>>first i ...

2 years ago | 1 answer | 0

1

answer

Question


how can i get different answers?
i have the following code for example but i also have another (t=1:2) and i dont want write this codde again in another script....

2 years ago | 1 answer | 0

1

answer

Question


how to input variables?
Data=[1 2 3 4 5 6] a = Data(:,1); b = Data(:,2); c = Data(:,3); t=a/(b.^c) as u see i have 4 ans but i need 2 ... 1,2,...

2 years ago | 1 answer | 0

1

answer

Question


how to get tf answer for this problem?
a=[40] b=[0.05 1] c=[1] d=[0.5 1] e=[0.8] f=[1 1] g=[0.1] h=[0.04 1] T1=tf(a,b) T2=tf(c,d) T3=tf(e,f) T4=tf(g,h) ...

2 years ago | 1 answer | 0

1

answer

Question


how can i name my output and display it?
L =[1 2 0.1 0.2 0.02 1 4 0.05 0.2 0.02 1 5 0.08 0.3 0.03 2 3 0.05 0.25 0.03 2 4 0.05 0.1 0.01 2 5 0.1 0...

2 years ago | 1 answer | 0

1

answer

Question


how can i negative all value in a matrix except diagonal?
13.333 5 0 5 3.3333 0 5 27.333 4 10 ...

2 years ago | 2 answers | 0

2

answers

Question


Index exceeds matrix dimensions error?
L =[1 2 0.1 1 4 0.05 1 5 0.08 2 3 0.05 2 4 0.05 2 5 0.1 2 6 0.07 3 5 0.12 3 6 0....

2 years ago | 1 answer | 0

1

answer

Question


how to add a row to a matrix?
A=[1;2;3;4;5] i wanna add 0 to n row..i tried A(n, :) = 0...but i get this A=[0;2;3;4;5] instead of A=[0;1;2;3;4;5] what's the...

2 years ago | 1 answer | 0

1

answer

Question


how to combine two matrices?
A=[Pg; 0.5;0.6;0;0;0] B=[0;0;0;0.7;0.7;0.7] 1)the answer i need is C=[Pg;0.5;0.6;0.7;0.7;0.7] i tried C=[A,B] but thats not w...

2 years ago | 1 answer | 0

1

answer

Question


what is horzcat error.
disp('(a) Solution by mesh analysis') VL=360*sqrt(3); % Line voltage magnitude Zs=j*24; Zm=j*6; % Series and mutual impedances...

2 years ago | 1 answer | 0

1

answer

Question


Index exceeds matrix dimensions.
function [L]=LineData % ---------------------------------data input------------------------------ %{ Transmission line para...

2 years ago | 1 answer | 0

1

answer

Question


how to creat if loop?
function [B]=BusData % ---------------------------------data input------------------------------ %bus number| Bus type | volta...

2 years ago | 1 answer | 0

1

answer

Question


how to Invert a matrix and how to delete a row and a column?
1.4286 5.0000 Inf 5.0000 3.3333 Inf 5.0000 0.9524 4.0000 10.0000 3.3333 5.0000 ...

2 years ago | 1 answer | 0

1

answer

Question


how can i make a general matrix?
i asked this question many times but still have a problem....someone help me please i need answer as soon as possible...

2 years ago | 2 answers | 0

2

answers

Question


how can i name each ans in a for loop?
Nb=6; L =[1 2 0.1 0.2 0.02 1 4 0.05 0.2 0.02 1 5 0.08 0.3 0.03 2 3 0.05 0.25 0.03 2 4 0.05 0.1 0.01 2 ...

2 years ago | 1 answer | 0

1

answer

Question


how can i sum X's or R's values that their nl=1?
L =[1 2 0.1 0.2 0.02 1 4 0.05 0.2 0.02 1 5 0.08 0.3 0.03 2 3 0.05 0.25 0.03 2 4 0.05 0.1 0.01 2 5 0.1 0...

2 years ago | 1 answer | 0

1

answer

Question


how can i input variable in function?
linedata = [ 1 0 0.000 0.200 2 0 0.000 0.150 3 0 0.000 0.250 1 4 0.035 0.225 1 5 0.025 0.105 1 6 0.040 ...

2 years ago | 1 answer | 0

1

answer

Question


zbuild doesnt work?
zdata=[0 1 0 0.05 0 2 0 0.075 1 2 0 0.75 1 3 0 0.30 2 3 0 0.45]; Zbus=zbuild(zdata) symfault(zdata, Zbus) zbuild doesnt wor...

2 years ago | 2 answers | 0

2

answers

Question


how to change matlab answers type?
i have a problem with matlab answers ...it always shows answers like this (200*6151^(1/2))/3 - 14200/3 how can i fix that?i m...

2 years ago | 2 answers | 0

2

answers

Question


how can we increase a value until we get answer
clc clear all % -------------------------------------data input----------------------------------- alpha = [510; 310; 78; 120...

2 years ago | 1 answer | 0

1

answer

Question


i dont know how to use sum in a for loop
clc clear all % -------------------------------------data input----------------------------------- alpha = [510; 310; 78; 120...

2 years ago | 1 answer | 0

1

answer