フィルターのクリア

I have problem in importing excel file containing variable.

1 回表示 (過去 30 日間)
Prateek jain
Prateek jain 2018 年 4 月 23 日
コメント済み: Prateek jain 2018 年 4 月 24 日
clc;
clear all;
close all;
syms T h rho F1 F2
mem=2 %number of elements
%element k matrix
k=h\T*[1 -1;-1 1];
m=(rho*h/6)*[2 1;1 2]
% assembling global matrix
tightwire=importdata('TightWire.xlsx')
S=zeros(mem)
M=zeros(mem)
U=tightwire(mem,1:mem+1)
%elementnumbering
nod=[1:1:mem+1];
c=cell(mem,1);
for t=1:mem
c{t}=[nod(t) nod(t)+1];
end
for k=1:mem
l=c{k}
for i=1:mem+1
for j=1:mem+1
for o=1:2
for p=1:2
if i==l(o)
if j==l(p)
S(i,j)=S(i,j)+k(o,p);
M(i,j)=M(i,j)+m(o,p);
end
end
end
end
end
end
end

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 4 月 23 日
TightWire.xlsx does not exist in your current directory, and also does not exist anywhere along your MATLAB path.
  4 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 23 日
The error message in the .mlx is showing that TightWire.xlsx cannot be found -- it is not in you current folder.
You should zip your .xlsx file and attach the zip for us to test.
Prateek jain
Prateek jain 2018 年 4 月 24 日
here is the file

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

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by