Info
この質問は閉じられています。 編集または回答するには再度開いてください。
clc; clear; fileID = fopen('C:\Users\TR RAO\Desktop\rao1.txt','r'); C = textscan(fileID, '%s %s'); fclose(fileID); C1 =cell2mat(C{1,1}); C2 =cell2mat(C{1,2}); CC = [C1,C2] s=C1;t=C2; nodes = unique(CC); n_nodes = size(nodes,1) S0=eye(n_nodes); adjace
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to form a transition matrix for a list of edges from a text file. The above program is working for six edges. Then I tested with 50000 edges. It is showing the following error. Kindly resolve this one. Error using cat Dimensions of matrices being concatenated are not consistent.
Error in cell2mat (line 83) m{n} = cat(1,c{:,n});
Error in readingfile1 (line 14) C1 =cell2mat(C{1,1});
3 件のコメント
Stephen23
2017 年 9 月 28 日
@TR RAO: I closed your question because it is unreadable. Please edit your question and do these three things:
- Put the code into the body of the question, not in the title.
- Format the code properly (select the code text, click the Code {} button).
- Put a useful title that summarizes your question.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!