image thumbnail

ِConvert Vector to Matrix

version 1.0.0 (1.2 KB) by amara fethallah
ِConvert Vector to Matrix

3 Downloads

Updated 18 Dec 2021

View License

% AMARA FETHALLAH
% Conver vector to Matrix
% ------------
nnd=10
R=[5,10,15,20,25,1,2,5,9,10]
a1=[1:2:2*nnd-1];
b1=[2:2:2*nnd];
kf=[a1' b1'];
%----------------
%
node_F=zeros(nnd,2);
for i=1: nnd %
x_F = R(kf(i,1)); %
y_F = R(kf(i,2)); %
node_F(i,:) =[x_F y_F];
end
%
%--------------------------------
F1 = node_F(:,1);F2 = node_F(:,2);
M=[F1 F2];

Cite As

amara fethallah (2022). ِConvert Vector to Matrix (https://www.mathworks.com/matlabcentral/fileexchange/103745-convert-vector-to-matrix), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired: Vector to Mtrix

Community Treasure Hunt

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

Start Hunting!