lingo中报improper number oflnvalid argumentt错误,请问这是怎么回事

查看: 10387|回复: 19
关于将matlab计算得到的数据输入excel中的问题。
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
才可以下载或查看,没有帐号?
经过大家的指导,我已经学会了如何将excel数据库中的数据倒入matlab中了,可是我现在想知道如何将已经算好的matlab数值放入存放原始数据的excel文件中的某个确定列中。
看到前面的帖子有讲道用加入语句”wk1write('datas',S);“。可是我运行却在excel中得不到相应的数据
请问怎么解决?
是不是还有别的方法?
非常感谢!!
[ 本帖最后由 lxq 于
21:30 编辑 ]
关于将matlab计算得到的数据输入excel中的问题
好象可以先复制为.txt文件,再粘贴到excel中.
可不可以通过语句,直接将数据倒入excel中。
如果是纯数字
那么用xlswrite,具体用法可以参考matlab 的help
还可以用工具箱Excel Link ,有问题再交流
<p id="rate_79" onmouseover="showTip(this)" tip="回复具有一定的启发引导性&体能 + 2 点
" class="mtn mbn">
谢谢楼上,用xlswrite我已经实现了.
顺便问一下:用xlswrite不能把多项式传到excel里阿!
请问 什么语句可以使多项式倒入excel
楼主,能不能把如何将excel数据库中的数据倒入matlab中和如何将已经算好的matlab数值放入excel文件中的某个确定列中的m文件上传上来,让大家学习一下呢?谢谢
数据太大了不可以吧。
上次就遇到这个问题,就是因为数据太大不能写进去。也不知道高手还有什么妙招!
[ 本帖最后由 ChaChing 于
01:07 编辑 ]
我倒入数据用的是c=xlsread('tong.xls');
导出数据用的是xlswrite(‘文件位子和名称’,矩阵名,'excel的页码','第几行第几列');
例如:xlswrite('d:\Program Files\MATLAB71\work\tong.xls',erro_y','sheet3','C2');
这里想请问各位:怎样将一个多项式倒入excel中
用xlswrite('d:\Program Files\MATLAB71\work\tong.xls',erro_y','sheet3','C2');倒入后就会在excel中看到多项式的每一数字就占用excel一行,这样一个6项的多项式要占用很多行数,多项式看的很分散,请问个位高手有什么好的方法吗?
怎样能将几个汉字,写到excel里的一个单元格里。例如:将‘误差结果’这几个字,写到A2里。
我用了xlswrite('d:\Program Files\MATLAB71\work\tong.xls',aa,'sheet3','A2');可是得到的结果却是,A2,B2,C2,D2里 每个格里一个汉字,要怎样解决???
牛人们,帮帮忙阿!!
[ 本帖最后由 ChaChing 于
19:02 编辑 ]
和上面的问题一模一样
aa=cell(1);
aa{1}='误差结果';
xlswrite(''d:\Program Files\MATLAB71\work\tong.xls',aa,'sheet3','A2');
在帖子中的4楼已经作了回复
<p id="rate_82" onmouseover="showTip(this)" tip="启发引导性回答& + 18
" class="mtn mbn">
原帖由 ydliu_zn 于
15:48 发表
楼主,能不能把如何将excel数据库中的数据倒入matlab中和如何将已经算好的matlab数值放入excel文件中的某个确定列中的m文件上传上来,让大家学习一下呢?谢谢
如果你用的是7.0或以上版本则matlab已经自带了,如果是7.0以下版本可以用下面的函数
function [success,message]=xlswrite(file,data,sheet,range)
% XLSWRITE Stores numeric array or cell array in Excel workbook.
%& &[SUCCESS,MESSAGE]=XLSWRITE(FILE,ARRAY,SHEET,RANGE) writes ARRAY to the Excel
%& &workbook, FILE, into the area, RANGE in the worksheet specified in SHEET.
%& &FILE and ARRAY must be specified. If either FILE or ARRAY is empty, a
%& &error is thrown and XLSWRITE terminates. The first worksheet of the
%& &workbook is the default. If SHEET does not exist, a new sheet is added at
%& &the end of the worksheet collection. If SHEET is an index larger than the
%& &number of worksheets, new sheets are appended until the number of worksheets
%& &in the workbook equals SHEET. The size defined&&by the&&RANGE should fit the
%& &size of ARRAY or contain only the first cell, e.g. 'A2'. If RANGE is larger
%& &than the size of ARRAY, Excel will fill the remainder of the region with
%& &#N/A. If RANGE is smaller than the size of ARRAY, only the sub-array that
%& &fits into RANGE will be written to FILE. The success of the operation is
%& &returned in SUCCESS and any accompanying message, in MESSAGE. On error,
%& &MESSAGE shall be a struct, containing the error message and message ID.
%& &See NOTE 1.
%
%& &[SUCCESS,MESSAGE]=XLSWRITE(FILE,ARRAY) writes ARRAY to the Excel workbook,
%& &FILE, starting at cell A1 of the first worksheet. The return values are as
%& &for the above example.
%
%& &XLSWRITE ARRAY FILE, is the command line version of the above example.
%
%& &INPUT PARAMETERS:
%& && & file:& &string defining the workbook file to write to.
%& && && && && &Defa default extension 'xls'.
%& && & array:&&m x n numeric array or cell array.
%& && & sheet:&&string def
%& && && && && &double, defining worksheet index.
%& && & range:&&string defining data region in worksheet, using the Excel
%& && && && && &'A1' notation.
%
%& &RETURN PARAMETERS:
%& && & SUCCESS: logical scalar.
%& && & MESSAGE: struct containing message field and message_id field.
%
%& &EXAMPLES:
%
%& &SUCCESS = XLSWRITE('c:\matlab\work\myworkbook.xls',A,'A2:C4') will write A to
%& &the workbook file, myworkbook.xls, and attempt to fit the elements of A into
%& &the rectangular worksheet region, A2:C4. On success, SUCCESS will contain true,
%& &while on failure, SUCCESS will contain false.
%
%& &NOTE 1: The above functionality depends upon Excel as a COM server. In
%& &absence of Excel, ARRAY shall be written as a text file in CSV format. In
%& &this mode, the SHEET and RANGE arguments shall be ignored.
%
% See also XLSREAD, WK1WRITE, CSVWRITE.
%
%& &JP Barnard
%& &Copyright
The MathWorks, Inc.
%& &$Revision: 1.1.6.8 $&&$Date:
19:35:45 $
%==============================================================================
% Set default values.
Sheet1 = 1;
if nargin & 3
& & sheet = Sheet1;
& & range = '';
elseif nargin & 4
& & range = '';
end
if nargout & 0
& & success =
& & message = struct('message',{''},'identifier',{''});
end
% Handle input.
try
& & % handle requested Excel workbook filename.
& & if ~isempty(file)
& && &&&if ~ischar(file)
& && && && &error('MATLAB:xlswrite:InputClass','Filename must be a string');
& && &&&end
& && &&&% check for wildcards in filename
& && &&&if any(findstr('*', file))
& && && && &error('MATLAB:xlswrite:FileName', 'Filename must not contain *');
& && &&&end
& && &&&[Directory,file,ext]=fileparts(file);
& && &&&if isempty(ext) % add default E
& && && && &ext = '.xls';
& && &&&end
& && &&&file = abspath(fullfile(Directory,[file ext]));
& && &&&[a1 a2 a3] = fileattrib(file);
& && &&&if a1 && ~(a2.UserWrite == 1)
& && && && &error('MATLAB:xlswrite:FileReadOnly', 'File can not be read only.');
& && &&&end
& & else % get workbook filename.
& && &&&error('MATLAB:xlswrite:EmptyFileName','Filename is empty.');
& & end
& & % Check for empty input data
& & if isempty(data)
& && &&&error('MATLAB:xlswrite:EmptyInput','Input array is empty.');
& & end
& & % Check for N-D array input data
& & if ndims(data)&2
& && &&&error('MATLAB:xlswrite:InputDimension',...
& && && && &'Dimension of input array cannot be higher than two.');
& & end
& & % Check class of input data
& & if ~(iscell(data) || isnumeric(data) || ischar(data)) && ~islogical(data)
& && &&&error('MATLAB:xlswrite:InputClass',...
& && && && &'Input data must be a numeric, cell, or logical array.');
& & end
& & % convert input to cell array of data.
& & if iscell(data)
& && &&&A=
& & else
& && &&&A=num2cell(data);
& & end
& & if nargin & 2
& && &&&% Verify class of sheet parameter.
& && &&&if ~(ischar(sheet) || (isnumeric(sheet) && sheet & 0))
& && && && &error('MATLAB:xlswrite:InputClass',...
& && && && && & 'Sheet argument must a string or a whole number greater than 0.');
& && &&&end
& && &&&if isempty(sheet)
& && && && &sheet = Sheet1;
& && &&&end
& && &&&% parse REGION into sheet and range.
& && &&&% Parse sheet and range strings.
& && &&&if ischar(sheet) && ~isempty(strfind(sheet,':'))
& && && && &range = % only range was specified.
& && && && &sheet = Sheet1;% Use default sheet.
& && &&&elseif ~ischar(range)
& && && && &error('MATLAB:xlswrite:InputClass',...
& && && && && & 'Range argument must a string of Excel A1 notation.');
& && &&&end
& & end
catch
& & if ~isempty(nargchk(2,4,nargin))
& && &&&error('MATLAB:xlswrite:InputArguments',nargchk(2,4,nargin));
& & elseif nargout == 0
& && &&&rethrow(lasterror);& &&&% Display last error.
& & else
& && &&&success =
& && &&&message =& && & % Return last error.
& & end
& &
end
%------------------------------------------------------------------------------
% Attempt to start Excel as ActiveX server.
try
& & Excel = actxserver('Excel.Application');
catch
& & warning('MATLAB:xlswrite:NoCOMServer',...
& && &&&['Could not start Excel server for export.\n' ...
& && &&&'XLSWRITE attempts to file in CSV format.']);
& & if nargout & 0
& && &&&[message.message,message.identifier] =
& & end
& & % write data as CSV file, that is, comma delimited.
& & file = regexprep(file,'(\.xls)$','.csv'); % change extention to 'csv'.
& & try
& && &&&dlmwrite(file,data,','); % write data.
& & catch
& && &&&[last_error] =
& && &&&erroridentifier = 'MATLAB:xlswrite:dlmwrite';
& && &&&errormessage = ['An error occurred on data export in CSV format.\n',...
& && && && &last_error.message];
& && &&&if nargout == 0
& && && && &% Throw error.
& && && && &error(erroridentifier,errormessage);
& && &&&else
& && && && &success =
& && && && &message.message = sprintf(errormessage);
& && && && &message.identifier =
& && &&&end
& & end
& &
end
%------------------------------------------------------------------------------
try
& & % Construct range string
& & if isempty(strfind(range,':'))
& && &&&% Range was partly specified or not at all. Calculate range.
& && &&&[m,n] = size(A);
& && &&&range = calcrange(range,m,n);
& & end
catch
& & if nargout == 0
& && &&&rethrow(lasterror);& &&&% Display last error.
& & else
& && &&&success =
& && &&&message =& && & % Return last error.
& & end
& &
end
%------------------------------------------------------------------------------
try
& & if ~exist(file,'file')
& && &&&% Create new workbook.&&
& && &&&
& && &&&%This is in place because in the presence of a Google Desktop
& && &&&%Search installation, calling Add, and then SaveAs after adding data,
& && &&&%to create a new Excel file, will leave an Excel process hanging.&&
& && &&&%This workaround prevents it from happening, by creating a blank file,
& && &&&%and saving it.&&It can then be opened with Open.
& && &&&ExcelWorkbook = Excel.workbooks.A
& && &&&ExcelWorkbook.SaveAs(file,1);
& && &&&ExcelWorkbook.Close(false);
& & end
& &
& & %Open file
& & ExcelWorkbook = Excel.workbooks.Open(file);
& &
& & try % select region.
& && &&&% Activate indicated worksheet.
& && &&&message = activate_sheet(Excel,sheet);
& && &&&% Select range in worksheet.
& && &&&Select(Range(Excel,sprintf('%s',range)));
& & catch % Throw data range error.
& && &&&error('MATLAB:xlswrite:SelectDataRange',lasterr);
& & end
& & % Export data to selected region.
& & set(Excel.selection,'Value',A);
& & ExcelWorkbook.Save
& & ExcelWorkbook.Close(false)&&% Close Excel workbook.
& & Excel.Q
catch
& & try
& && &&&ExcelWorkbook.Close(false);& & % Close Excel workbook.
& & end
& & Excel.Q
& & delete(Excel);& && && && && &&&% Terminate Excel server.
& & if nargout == 0
& && &&&rethrow(lasterror);& &&&% Display last error.
& & else
& && &&&success =
& && &&&message =& && & % Return last error.
& & end
end
%--------------------------------------------------------------------------
function message = activate_sheet(Excel,Sheet)
% Activate specified worksheet in workbook.
% Initialise worksheet object
WorkSheets = Excel.
message = struct('message',{''},'identifier',{''});
% Get name of specified worksheet from workbook
try
& & TargetSheet = get(WorkSheets,'item',Sheet);
catch
& & % Worksheet does not exist. Add worksheet.
& & TargetSheet = addsheet(WorkSheets,Sheet);
& & warning('MATLAB:xlswrite:AddSheet','Added specified worksheet.');
& & if nargout & 0
& && &&&[message.message,message.identifier] =
& & end
end
% activate worksheet
Activate(TargetSheet);
%------------------------------------------------------------------------------
function newsheet = addsheet(WorkSheets,Sheet)
% Add new worksheet, Sheet into worsheet collection, WorkSheets.
if isnumeric(Sheet)
& & % iteratively add worksheet by index until number of sheets == Sheet.
& & while WorkSheets.Count & Sheet
& && &&&% find last sheet in worksheet collection
& && &&&lastsheet = WorkSheets.Item(WorkSheets.Count);
& && &&&newsheet = WorkSheets.Add([],lastsheet);
& & end
else
& & % add worksheet by name.
& & % find last sheet in worksheet collection
& & lastsheet = WorkSheets.Item(WorkSheets.Count);
& & newsheet = WorkSheets.Add([],lastsheet);
end
% If Sheet is a string, rename new sheet to this string.
if ischar(Sheet)
& & set(newsheet,'Name',Sheet);
end
%------------------------------------------------------------------------------
function [absolutepath]=abspath(partialpath)
% parse partial path into path parts
[pathname filename ext] = fileparts(partialpath);
% no path qualification is pre assume parent is pwd, except
% when path string starts with '~' or is identical to '~'.
if isempty(pathname) && isempty(strmatch('~',partialpath))
& & Directory =
elseif isempty(regexp(partialpath,'(.:|\\\\)')) && ...
& && &&&isempty(strmatch('/',partialpath)) && ...
& && &&&isempty(strmatch('~',partialpath));
& & % path did not start with any of drive name, UNC path or '~'.
& & Directory = [pwd,filesep,pathname];
else
& & % path content pre assume relative to current directory,
& & % or absolute.
& & Directory =
end
% construct absulute filename
absolutepath = fullfile(Directory,[filename,ext]);
%------------------------------------------------------------------------------
function range = calcrange(range,m,n)
% Calculate full target range, in Excel A1 notation, to include array of size
% m x n
range = upper(range);
cols = isletter(range);
rows = ~
% Construct first row.
if ~any(rows)
& & firstrow = 1; % Default row.
else
& & firstrow = str2double(range(rows)); % from range input.
end
% Construct first column.
if ~any(cols)
& & firstcol = 'A'; % Default column.
else
& & firstcol = range(cols); % from range input.
end
try
& & lastrow = num2str(firstrow+m-1);& &% Construct last row as a string.
& & firstrow = num2str(firstrow);& && &% Convert first row to string image.
& & lastcol = dec2base27(base27dec(firstcol)+n-1); % Construct last column.
& & range = [firstcol firstrow ':' lastcol lastrow]; % Final range string.
catch
& & error('MATLAB:xlswrite:CalculateRange',...
& && &&&'Data range must be between A1 and IV65536.');
end
%------------------------------------------------------------------------------
function s = dec2base27(d)
%& &DEC2BASE27(D) returns the representation of D as a string in base 27,
%& &expressed as 'A'..'Z', 'AA','AB'...'AZ', until 'IV'. Note, there is no zero
%& &digit, so strictly we have hybrid base26, base27 number system.&&D must be a
%& &negative integer bigger than 0 and smaller than 2^52, which is the maximum
%& &number of columns in an Excel worksheet.
%
%& &Examples
%& && & dec2base(1) returns 'A'
%& && & dec2base(26) returns 'Z'
%& && & dec2base(27) returns 'AA'
%-----------------------------------------------------------------------------
b = 26;
symbols = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
d = d(:);
if d ~= floor(d) | any(d & 0) | any(d & 1/eps)
& & error('MATLAB:xlswrite:Dec2BaseInput',...
& && &&&'D must be an integer, 0 &= D &= 2^52.');
end
% find the number of columns in new base
n = max(1,round(log2(max(d)+1)/log2(b)));
while any(b.^n &= d)
& & n = n + 1;
end
% set b^0 column
s(:,n) = rem(d,b);
while n & 1 && any(d)
& & if s(:,n) == 0
& && &&&s(:,n) =
& & end
& & if d & b
& && &&&% after the carry-over to the b^(n+1) column
& && &&&if s(:,n) == b
& && && && &% for the b^n digit at b, set b^(n+1) digit to b
& && && && &s(:,n-1) = floor(d/b)-1;
& && &&&else
& && && && &% set the b^(n+1) digit to the new value after the last carry-over.
& && && && &s(:,n-1) = rem(floor(d/b),b);
& && &&&end
& & else
& && &&&s(:,n-1) = []; % remove b^(n+1) digit.
& & end
& & n = n - 1;
end
s = symbols(s);
%------------------------------------------------------------------------------
function d = base27dec(s)
%& &BASE27DEC(S) returns the decimal of string S which represents a number in
%& &base 27, expressed as 'A'..'Z', 'AA','AB'...'AZ', until 'IV'. Note, there is
%& &no zero so strictly we have hybrid base26, base27 number system.
%
%& &Examples
%& && & base27dec('A') returns 1
%& && & base27dec('Z') returns 26
%& && & base27dec('IV') returns 256
%-----------------------------------------------------------------------------
d = 0;
b = 26;
n = numel(s);
for i = n:-1:1
& & d = d+(s(i)-'A'+1)*(b.^(n-i));
end
%-------------------------------------------------------------------------------复制代码
<p id="rate_" onmouseover="showTip(this)" tip="启发引导性回答&威望 + 1 点
" class="mtn mbn">
原帖由 ppdd 于
16:24 发表
上次就遇到这个问题,就是因为数据太大不能写进去。也不知道高手还有什么妙招!
没试过,不过应该可以通过分批写入的方式完成
happy教授真是个高手啊,谢谢
使用通过,谢谢HAPPY.
我想问一下上面的高手,excel表里的字符变量怎么读入matlab里面呢,我在用matlab的统计工具,用决策树对数据分类,生成树。可是总是提示我变量错误,我也不知道怎么回事,请指教,谢谢。
原帖由 lpwy2005 于
21:37 发表
使用通过,谢谢HAPPY.
我用的是6.0.烤入这个xlswrite这个函数之后,有很多不通的地方,不知是怎么回事
88的&&~这个不认,还有107的||两竖也不认
?? Error: File: F:\matlab\work\xlswrite.m Line: 107 Column: 23
&)& expected, &identifier& found.
是怎么回事呢
Powered bylingo中报improper number of arguments错误_百度知道
lingo中报improper number of arguments错误
c/1..5/:x,y,z,l;
y=6 4 5 6 5;
z=12 18 28 16 12;
min=@sum(c(i):l(i)*z(i));
@for(c(i):x(i)^2 y(i)^2=l(i)^2);
@sum(c(i):x(i))=40;
@sum(c(i):y(i))=26;
@for(c(i)|i#lt#5:@if(y(i 1)/x(i 1)-y(i)/x(i)#gt#0,
没有表示出来的那是i+1
我有更好的答案
sets:c/1..5/:x,y,z,l;endsetsdata:y=6 4 5 6 5;z=12 18 28 16 12;enddatamin=@sum(c(i):l(i)*z(i));@for(c(i):x(i)^2+y(i)^2=l(i)^2);@sum(c(i):x(i))=40;@sum(c(i):y(i))=26;!@for(c(i)|i#lt#5:@if(y(i+1)/x(i+1)-y(i)/x(i)#gt#0,(y(i+1)/x(i+1)-y(i)/x(i))/((y(i+1)*y(i))/(x(i)*x(i))+1)#gt#0));!@for(c(i)|i#lt#5:@if(y(i+1)/x(i+1)-y(i)/x(i)#gt#0,((y(i+1)/x(i+1)-y(i)/x(i))/((y(i+1)*y(i))/(x(i)*x(i))+1))#lt#@tan(20*3.14/180));end
采纳率:96%
为您推荐:
其他类似问题
&#xe675;换一换
回答问题,赢新手礼包&#xe6b9;
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。&#xe621; 上传我的文档
&#xe602; 下载
&#xe60c; 收藏
该文档贡献者很忙,什么也没留下。
&#xe602; 下载此文档
Lingo错误查询
下载积分:900
内容提示:Lingo错误查询
文档格式:PDF|
浏览次数:718|
上传日期: 11:50:16|
文档星级:&#xe60b;&#xe60b;&#xe60b;&#xe60b;&#xe60b;
全文阅读已结束,如果下载本文需要使用
&#xe71b; 900 积分
&#xe602;下载此文档
该用户还上传了这些文档
Lingo错误查询
关注微信公众号lingo运行时出现improper use of set name!!_百度知道
lingo运行时出现improper use of set name!!
model:sets:A&#47;1..6&#47;:d;B&#47;1..5&#47;:fb,n;C&#47;1..5&#47;:fc,m;DE(A,B):drj,erj,x;FG(B,C):dir,eir,y;endsetsdata:enddatamin=@sum(B(r):fb(r)*DE(j,r):x(j,r))+@sum(C(i):fc(i)*FG(r,i):y(r,i))+@sum((DE(j,r):erj(j,r)*drj(j,r)*x(j,r)+0.1*78.5*DE(j,r):drj(j,r))*DE(j,r):x(j,r)*A(j):d(j))+@sum(FG(r,i):eir(r,i)*dir(r,i)*y(r,i)+0.1*78.5*FG(r,i):dir(r,i))*@sum(FG(r,i):y(r,i)*A(j):d(j))end
我有更好的答案
我好像回答过你了啊 是你集名的问题
为您推荐:
其他类似问题
lingo的相关知识
&#xe675;换一换
回答问题,赢新手礼包&#xe6b9;
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。lingo目标函数那一行说有improper number of arguments 求指教~感激不尽
lingo目标函数那一行说有improper number of arguments 求指教~感激不尽sets:lunwen/1..150/;lunshu/1..4/;t/1..8/;links/lunwen,lunshu,t/:x;endsetsmin=@sum(lunwen(v):@sum(lunwen(j)|j#gt#v:@sum(lunshu(m):@sum(t(k):x(v,m,k)*x(j,m,k)))));@for(lunshu(m):@for(t(k):@sum(lunwen(i):x(i,m,k))=18));@for(lunwen(i):@for(t(k):@sum(lunshu(m):x(i,m,k))
你这里面很多错误 希望你能自己好好按错误提示改派生集定义是 links(lunwen,lunshu,t) 这样写 你写的不对 再问: 什么意思 能详细一点么? 再答: .... 怎么写我都告诉你了 请问还要怎么详细
我有更好的回答:
剩余:2000字
与《lingo目标函数那一行说有improper number of arguments 求指教~感激不尽》相关的作业问题
max=@sum(routes(i,j):q(j)*x(i,j)+p(i)*x(i,j)-c(i,j)*x(i,j));
不能的,LINGO中时不识别积分符号的.
你的数据c多了一个 按你的定义应该是10个 再问: 我怎么才能把c的个数增加到16? 再答: 按你的模型定义c就是10个 你要改的话那自己改模型去再问: 不会改 再答: 那我就没办法了 你这个问题就好像你问一个二次方程解怎么增加到3个一样 根本没法回答
怎么叫没有计算 是没有什么 你说清楚 再问: 目标函数有两个部分:价格最低 以及 运费最低 min=@sum(links:a*x)+@sum(war(j):d(j)*@sum(var(i):o(i,j))); a是价格矩阵,d是各个网站的运费,o是判断与非是否存在的0-1变量。 但是运行出来的结果,貌似是 没有考虑运费
The number of + is A number of + are
估计是因为你的问题没有可行解 这时候没有解 当然给出的解就没有什么意义了 再问: lingo的版本有问题不,lingo9会报错1017,lingo10却一直在算 再答: 应该是没问题的 只要破解了 我没有数据你把数据发上来行不行再问: 大侠你qq号多少啊 excel文档不好发 再答: 你直接百度hi找我 这有什么不好发
﹙7+5﹚÷﹙10-8)=6(行)6×8+7=55(人)望采纳,给分,谢谢了 ,感激不尽. 再问: 讲讲可以吗? 再答: 行数和人数是一定的,所以可设方程 设有x行 8x+7=10x-5 x=6 然后任意带入一个式子,一共55人。
function f=myfun(x)f=0.^(-4)*(x(2)+2)*x(1)^2*x(3);function [c,cep]=mycon(x)c(1)=350-163*x(1)^(-2.86)*x(3)^0.86;c(2)=10-0.14*0.01*x(1)^-4*x(2)*x(3)^3;c(
行列式只能是方阵,你的概念还不熟呀.呵呵,1x1不知道是不是单列或者单行,呵呵,如果算是,那么这个矩阵的行列式值就为元素值,呵呵
所有标点都应为半角英文的 你自己改一下
A是一个n阶方阵,r(A)=n-1所以AX=0的基础解系的解向量的个数为1又A的每一行元素加起来均为1则A(1,1,...,1)^T=(1,1,...,1)^T所以x=(1,1,...,1)^T是AX=0的一个解向量所以AX=0的基础解系是X=k(1,1,...,1)^T k是任意整数
A=0 10 0|A-λE| = -λ 10 -λ= λ^2所以A的特征值为:0,0. 再问: 先谢谢您的回答,可是矩阵范数的概念应该首先是矩阵A与其转至AT的乘积,如题乘积后矩阵是B 一行{0,0},二行{0,1} 然后我们得出的特征值0,1两个,然后要选最大的特征值。依照定义应该是1才对。这是本经典教材《an in
x≤3-3y,x≥0 >>>>> 3-3y≥0 >>>>> y≤1 >>>> 0≤x≤3-3y,0≤y≤1
BA=?AB=? 再问: 原题就是这样,我也没看懂所以来问一下。 再答: 应该是AB,应为矩阵相乘的定义
这是一个著名的逆时针旋转矩阵,旋转角度为A,旋转n次后等于nA,所以你把所有的A替换为nA就是要的答案.如果不知道这个答案,自己乘一下也可以得到这个结果,不知道lz为什么需要请教,自己完全应该能做出,乘3次就可以归纳出来,然后用数学归纳法肯定能得到结果
你的向量如果是列向量的话,得到结果y=Ax=[5 5]也是列向量.欢迎追问~
换个好点的计算机算吧,做好是服务器,我也算了,普通的计算机算不动. 再问: 那怎么办?换了好些个了,还是没用。。。。这么说,程序没错?求指导。。 再答: 换服务器吧,至强处理器基本的机子,主要也变态,现在lingo不知道并行运算,根本利用不了全部cpu。
=(SUMIF(A1:G1,"
首先第一句语法就不对 @sum应该是@sum(集名:表达式) 你这个写的完全不对 另外你不要在集定义前面就写集循环函数后面你@for只对i循环了 那j是多少?是某个确定的数还是要对j循环?你都没有写 再问: @for循环里面,在某个固定的i下,对j进行1到3的循环。想要表达出这样的效果,应该怎么写? @sum函数,想要}

我要回帖

更多关于 commandargument 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信