Output argument "C6" (and maybe others) not assigned during call to

1 件のコメント

Walter Roberson
Walter Roberson 2018 年 8 月 29 日
No code is posted, so we have no idea.

サインインしてコメントする。

 採用された回答

Stephen23
Stephen23 2018 年 8 月 28 日
編集済み: Stephen23 2018 年 8 月 28 日

0 投票

The line that defines C6 is commented out:
%C6=(R_min/(Tooldia*Sover/100))/(R_max/(Tooldia*Sover/100));
uncomment that line, or remove C6 from the output arguments and call the function with fewer outputs.

10 件のコメント

SWETANG BAVARAMANANDI
SWETANG BAVARAMANANDI 2018 年 8 月 29 日
but still give error "Index exceeds matrix dimensions."
Stephen23
Stephen23 2018 年 8 月 29 日
@SWETANG BAVARAMANANDI: that is a different error message caused by a different problem in your code. Clearly the dimensions of the variables are not compatible for the operation that you are trying to perform. If you want help then please provide the complete error message. This means all of the red text.
Note that ultimately you will have to learn how to debug your own code: debugging code by using random strangers on the internet is not an efficient use of your time.
SWETANG BAVARAMANANDI
SWETANG BAVARAMANANDI 2018 年 8 月 29 日
see the error msg in attached fil
SWETANG BAVARAMANANDI
SWETANG BAVARAMANANDI 2018 年 8 月 29 日
by the way thanks for response
Stephen23
Stephen23 2018 年 8 月 29 日
編集済み: Stephen23 2018 年 8 月 29 日
@SWETANG BAVARAMANANDI: please show us the sizes of all variables used on the line of code where the error occurs. Also show us the exact line of code (as text, not a screenshot).
Please accept my answer, as it answers your original question.
SWETANG BAVARAMANANDI
SWETANG BAVARAMANANDI 2018 年 9 月 1 日
find the attach file for code .give solution
Stephen23
Stephen23 2018 年 9 月 1 日
編集済み: Stephen23 2018 年 9 月 1 日
"Index exceeds matrix dimensions" is caused by trying to access an element of a matrix that does not exist. You can figure this one easily by checking the sizes of the arrays on the line where the error occurs, and checking the index values.
Note that this is a new question, totally unrelated to your original question. I resolved your original question, and you can show your appreciation by accepting my answer.
SWETANG BAVARAMANANDI
SWETANG BAVARAMANANDI 2018 年 9 月 2 日
but i can not find solution of "Index exceeds matrix dimensions"
Walter Roberson
Walter Roberson 2018 年 9 月 2 日
>> As_DivyangNumber
Not enough input arguments.
Error in As_DivyangNumber (line 13)
X=X_local; Y=Y_local
>> As_Multiple_geometries_spiral_toolpath
Error using load
Unable to read file 'F:\Google Drive\NURBS\PUT.mat'. No such file or directory.
Error in As_Multiple_geometries_spiral_toolpath (line 5)
load('F:\Google Drive\NURBS\PUT.mat')
We cannot proceed without PUT.mat
SWETANG BAVARAMANANDI
SWETANG BAVARAMANANDI 2018 年 9 月 2 日
here the file

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2014a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by