minエラーについて。このプログラムで、 エラー: min データ型が無効です。最初の引数は数値または論理値でなければなりません。 このエラーが出ます。どう解消すれば良いでしょうか。
Afficher commentaires plus anciens
x1 = A1(:,2);
y1 = A1(:,3);
z1 = A1(:,1);
xlin1=linspace(min(x1),max(x1),71);
ylin1=linspace(min(y1),max(y1),71);
[X1,Y1] = meshgrid(xlin1,ylin1);
Z1 = griddata(x1,y1,z1,X1,Y1,'v4');
surf(X1,Y1,Z1)
hold on
scatter3(x1,y1,z1,'ro')
xlabel('マーケティング効率性')
ylabel('生産調達効率性')
zlabel('ROE')
Réponses (2)
michio
le 15 Déc 2020
どの行でのエラーかは分かりませんが、
x1 = A1(:,2);
whos x1
と x1 や y1 のデータ型を確認するとなにか分かるかもしれません。
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!