フィルターのクリア

Getting a ' Undefined function 'mtimes' for input arguments of type 'cells' ' error

1 回表示 (過去 30 日間)
Michael
Michael 2014 年 3 月 7 日
コメント済み: KRUNAL 2014 年 8 月 6 日
Im completely new to matlab and I've got a problem that undoubtedly has a simple solution, but its beyond me at the moment, can anyone help?
  • function [m, s1, s2] = Pop_up_test()
  • answer = inputdlg({'mass', 'spring constant 1', 'spring constant 2'},'parameters',1);
  • m = answer(1);
  • disp(m);
  • F = m * 9.8;
  • disp(F)
I get the error in the 5th line where I calculate the force

採用された回答

Mischa Kim
Mischa Kim 2014 年 3 月 7 日
編集済み: Mischa Kim 2014 年 3 月 7 日
Michael, use
m = str2num(answer{1});
  2 件のコメント
Alagesan
Alagesan 2014 年 3 月 17 日
How to understand this arguments with simple coding??
see matrix W is the adjacency model
so that if you have n variables V={v1 ... vn} then: V=V*W
therefore:
v1={0 v2 v3 v4 ... vn} * W(:,1) which is the first column in W v2={v1 0 v3 v4 ... vn} * W(:,2) which is the second column in W ... vn={v1 v2 v3 v4 ... vn-1 0} * W(:,n) being the nth column in W
KRUNAL
KRUNAL 2014 年 8 月 6 日
I have my data as
filename is 'ofile.xlsx' that contains the following data :
Year Month Day
2014 06 11
2014 05 10
2014 07 15
I am trying to do this
......
....
datecol1 = ofile(:,3)
datecol2 = ofile(:,4)
datecol3 = ofile(:,2)
datecol = datecol1*1000000 + datecol2*10000 + datecol3;
datestr(datecol,'mm/dd/yyyy')
But it does not give output as
06/11/2014
05/10/2014
07/15/2014
Can you tell me what is wrong in this part of my code?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by