Feeds
提问
I want to calculate the value of a & b for "x=110972.*a.*cos(b/2);" & " y=110972.*b.*cos(a/2);" equation where x=500 and y=700. But i can't, Please help me out. Thanks in advance.
clc clear x=500; y=700; x=110972.*a.*cos(b/2); y=110972.*b.*cos(a/2); a= b=
10 years 前 | 1 个回答 | 0
1
个回答提问
I have the ideal point (500,700) and the calculated point (499.79,700.44). I want to calculate the error but i can't. Please help me out
clc clear Idealpoint=(500,700) calculatedpoint=(499.79,700.44) error=?
10 years 前 | 2 个回答 | 0
2
个回答提问
I can calculate two error individually. but i can't calculate two error simultaneously. I found two result individually which is given in below. but i want to merge both error and need a single answer for following code, but i can't. Please help me
clc clear idealx=10; appx=9; error1=((abs(idealx-appx))/idealx)*100 idealy=30; appy=31; error2=((abs(idealy-appy))/idealy...
10 years 前 | 1 个回答 | 0
1
个回答提问
If y(i) contain 5 values such as 1,2,3,4,5. Then i want to sum all the values with a single command but i can't solve this problem. Please help me out, my code is given below.
clc clear x=0; for i=1:5 y(i)=x+i z=sum(y(i)) end
10 years 前 | 1 个回答 | 0
1
个回答提问
I face the error of "Index exceeds matrix dimensions". but i want to show all the elements of z(n) and want to sum them and mean them. my program is given below, plz help me out?
clc clear x1=5; x2=3; x3=2; p=cell(3,1); for i=1:3 if i==1 x1=6; elseif i==2 x1=7; elseif...
10 years 前 | 1 个回答 | 0
1
个回答提问
when two individual number remain in one cell such as a cell contain [300;350]. then how can i extact a single value from the cell?
clc clear x1=5; x2=3; x3=2; p=cell(3,1); for i=1:4 if i==1 x1=6; elseif i==2 x1=7; elseif...
10 years 前 | 1 个回答 | 0
1
个回答提问
I face the error of "Subscripted assignment dimension mismatch." when i want to create a loop a matrix. my simple short code given below, plz help me?
clc clear x1=5; x2=3; x3=2; for i=1:3 if i==1 x1=6; elseif i==2 x1=7; elseif i==3 ...
10 years 前 | 1 个回答 | 0
1
个回答提问
I face the error of "In an assignment A(I) = B, the number of elements in B and I must be the same" when i want to create a loop a matrix. my simple short code given below, plz help me?
clc clear x1=5; x2=3; x3=2; for i=1:3 if i==1 x1=6; elseif i==2 x1=7; elseif i==3 ...
10 years 前 | 1 个回答 | 0
1
个回答提问
I face the error of "In an assignment A(I) = B, the number of elements in B and I must be the same" when i want to create a loop a matrix. my simple short code given below, plz help me?
clc clear x1=5; x2=3; x3=2; for i=1:3 if i==1 x1=6; elseif i==2 x1=7; elseif i==3 ...
10 years 前 | 1 个回答 | 0