Question


in this file how can I calculate a(1)+a(2)+a(3)
for i=1:3 a(i)=i+(i+1) end

13 years ago | 0 answers | 0

0

answers

Question


In this file, I wanna create datum1 (nx2), datum2 (nx2) (n is variable) matrixes in gui environment like uitable so I can input columns and rows values where n is variable which mean is each enter pushes I want rows to increase (n+1).
function [tp,ac,tr]=helmert2d(datum1,datum2,WithOutScale) % HERLMERT2D overdetermined cartesian 2D similarity transformati...

13 years ago | 0 answers | 0

0

answers

Question


I wanna change the assigned value format's long in this function (value) "set(handles.edit1, 'String', value)"
%for example x=-0.134635523018792 %for gui presentation set(handles.edit1, 'String', x) %in gui x=-0.1346355 %7 numb...

13 years ago | 2 answers | 0

2

answers

Question


I wanna call a function which is defined before with inputs are entering outside but I want to use this function that inputs can be calculated and assigned by the equations in another .m file
% for example, function[latitude, longtitude]= ecef_to_geodetic(X,Y,Z) disp('XYZ to latitude and longtitude'...

13 years ago | 1 answer | 0

1

answer

Question


I wanna replacing 2nd and 3rd column to each other. How can I write a command?
example; 1 2 3 2 4 6 3 6 9 2nd 3rd

13 years ago | 3 answers | 1

3

answers

Question


how can i change the columns in the matrix? For example I wanna change 2nd and 3rd column
M = [1 2 3 4; ... 2 4 6 8; ... 3 6 9 12];

13 years ago | 1 answer | 0

1

answer

Question


escaping infinite loop and return previous step automatically?
in here, if I input 0 for a, infinite loops occurs, what I want is escaping this infinite loop and returning previous step which...

13 years ago | 1 answer | 0

1

answer