About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 39
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Hamideh
See full specifications

scripts default iconGenerate input (Scripts) Publisher's description

I am trying to concatenate the numbers and create a vector of concat number with string format.

I am trying to concatenate the numbers and create a vector of concat number with string format.
%[data, text, alldata] = xlsread('C:Usershze1DesktopDescrete Choice Modelsfinal_file_b.xls','Data','A1:GG25831');
data = [2 4;1 12;23 121];
s = size(data);
%FIPS = zeros(s(1),1);
filename0=('C:Usershze1DesktopDescrete Choice ModelsFIPS.dat');
for i=1:s(1)
if length( num2str(data(i,1)))<2
temp1 = strcat('0', num2str(data(i,1)))
temp1 = num2str(data(i,1))

if length( num2str(data(i,2)))<2
temp2 = strcat('00', num2str(data(i,2)))
elseif length( num2str(data(i,2)))== 2
temp2 = strcat('0', num2str(data(i,2)))
temp2 = num2str(data(i,2))

FIPS{i} = strcat(temp1 , temp2)


%result should be : [02004;01012;23121]

%save (filename0, 'FIPS', '-dat');

System Requirements:

No special requirements.
Program Release Status: New Release
Program Install Support: Install and Uninstall

Generate input (Scripts) Tags:

Click on a tag to find related softwares

Is Generate input (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.