Location:
Search - str2num
Search list
Description: 文件中字符转为数字的程序,从一个文件保存到另一个文件-document characters to the number of procedures, from one file to another document
Platform: |
Size: 9159 |
Author: sdsds |
Hits:
Description: 文件中字符转为数字的程序,从一个文件保存到另一个文件-document characters to the number of procedures, from one file to another document
Platform: |
Size: 866304 |
Author: sdsds |
Hits:
Description: 实现图像的逆时针旋转任意角度。关键部分:通过p=inputdlg(prompt, input ,1,defans) p1=str2num(p{1}) 来输入旋转参数。
通过函数f=imrotate(handles.img,p1, bilinear , crop ) 实现翻转。
-Counterclockwise rotation of the image at any angle. Key part of the input rotation parameters: p = inputdlg (prompt, ' input' , 1, defans) p1 = str2num (p {1}) By function f = imrotate the (handles.img, p1 ' bilinear' , ' crop' ) achieve flip.
Platform: |
Size: 1024 |
Author: zhang keshi |
Hits:
Description: 这段代码能够从任何字符串中提取所有数字,只要字符串中含有数字,运用的是对strtol的封装,非常方便-this file can
get all the num from any string which contains nums
Platform: |
Size: 1024 |
Author: NOTHING |
Hits:
Description: string to number把字符格式的内容转换为数字格式的内容-string to number
Platform: |
Size: 1024 |
Author: QHX |
Hits:
Description: 层次分析法matlab实现
clc,clear
fid=fopen('txt3.txt','r');
n1=6;n2=3; a=[];
for i=1:n1
tmp=str2num(fgetl(fid));
a=[a;tmp]; %读准则层判断矩阵
end
for i=1:n1
str1=char(['b',int2str(i),'=[];']);
str2=char(['b',int2str(i),'=[b',int2str(i),';tmp];']);
eval(str1);
for j=1:n2
tmp=str2num(fgetl(fid));
eval(str2); %读方案层的判断矩阵
end
end
ri=[0,0,0.58,0.90,1.12,1.24,1.32,1.41,1.45]; %一致性指标
[x,y]=eig(a);
lamda=max(diag(y));
num=find(diag(y)==lamda);
w0=x(:,num)/sum(x(:,num));
cr0=(lamda-n1)/(n1-1)/ri(n1)
for i=1:n1
[x,y]=eig(eval(char(['b',int2str(i)])));
lamda=max(diag(y));
num=find(diag(y)==lamda);
w1(:,i)=x(:,num)/sum(x(:,num));
cr1(i)=(lamda-n2)/(n2-1)/ri(n2);
end
cr1, ts=w1*w0, cr=cr1*w0(Analytic hierarchy process (AHP), MATLAB, implementation)
Platform: |
Size: 163840 |
Author: ddd121
|
Hits:
Description: 各种Matlab数据类型互相转换,包括cell2mat,cell2num,csv2cell,eps2pdf,eps2xxx,mat2asc,mat2xls,num2str,plot2eps,str2num,str2sym,sym2str,xls2mat,xml2mat,初学者必备~(Various Matlab data types convert each other, including cell2mat, cell2num, csv2cell, eps2pdf, eps2xxx, mat2asc, mat2xls, num2str, plot2eps, str2num, str2sym, sym2str, xls2mat, xml2mat, beginners must ~)
Platform: |
Size: 2580480 |
Author: fflow
|
Hits: