Question


Can I determine iteration number which matlab executes?
for example; while dx~=0 dx=............. ................ end %after the iteration I want to know how many iterati...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


I want to increase calculations precision. I want to increase decimal point like 32. Is that possible?
%for example format long a=[1.956272615279882 -0.142399812934086] %this decimal point isn't enough for me (15). %I...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


Is there any algorithm exist for improving matrix's reciprocal condition?
for example; 1.0e6* A=[42,1,0;43,0,0;44 1 1] %A matrix inputs are badly conditioned but I cannot change the for...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


assigning data which include global and string into edit in GUI.
a=125; b=sprintf('latitude %13.7f degree \n', a) % b=latitude 125.0000000 degree %I wanna assign this created struct...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


While working in GUI, how I can work with full screen?
In GUI, fig window not opens full screen because of buttons, after completing my working I open fig file full screen and there a...

plus de 12 ans il y a | 5 réponses | 0

5

réponses

Question


I wanna end iteration when result cannot be changed anymore.
for example latitude=atan((Z/P)*(1-(e1*N/(N+h)))^-1)*180/pi N=((a^2/sqrt((a^2*cos(latitude*pi/180)^2+b^2*sin(latitude*pi/1...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


Undefined variable error while using for loop.
X_1=10 for i=0 X_(i+1) Undefined function or variable 'X_i'. I wanna create X_1 with for loop, how can I create X_1 i...

plus de 12 ans il y a | 3 réponses | 0

3

réponses

Question


I wanna stop iteration when two matrixes difference approach zero.
for example, A=[a;b;c;d;e;f;g;h] %double 7x1 B=[m;n;v;x;z;p;j] %double 7x1 I open while loop for equation and I wan...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


How can I write any cell data into txt file as they appear.
for example; data= { 'a' 1 2 3 ; 'b' 4 5 6 } startingFolder = 'C:\Program Files\MATLAB' if ~exist(startingFolder, 'di...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

1

réponse

0

réponse

1

réponse

Question


horzcat error while using ' '
names=['john'; 'ravi'; 'mary'; 'xiao'] howdy=char('10', '20', '30' ,'40') result=[howdy, ' ', names] % ' ' in order to se...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

Question


seperation columns when one string in number other is txt.
names=['john'; 'ravi'; 'mary'; 'xiao'] howdy=char('10', '20', '30') result=[howdy(2,:) names(3,:)] result=20mary ...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


I have 2 strings type datas. One of them (txt) comes from [FileName,PathName] = uigetfile('*.xlsx','Select the excel file'), [num,txt1,raw] = xlsread(FileName), other is string data as matrix form. ı cannot put spaces between these strings.
for example, [FileName,PathName] = uigetfile('*.xlsx','Select the excel file') [num,txt,raw] = xlsread(FileName) %one exce...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


While using save command, I wanna choose directory which files can be saved into it.
for example; p = rand(1, 10) q = ones(10) save('pqfile.txt', 'p', 'q', '-ASCII') % in here I cannot choose the director...

presque 13 ans il y a | 2 réponses | 1

2

réponses

Question


I wanna save string data in my gui with txt format but I want to choose directory and file name in dialog box
for example; string=[100, 150, 200] I want to save this data with .txt format in dialog box which enables me to choose dir...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


I have a data which include point numbers, y_error and x_error belongs to point numbers (mx3 matrix) point numbers are string other values are double. I wanna check whether errors are exceeding particular number and I wanna show which point.
for example; point numbers=[a;b;c;...] errors_y=[0.4;0.52;0.25;...] errors_x=[0.4;0.33;0.51;...] I wanna check and s...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


I have a matrix which size is mxm (square) variable and I wanna assign a mx1 matrix into the first matrix's diagonal. What kind of loop I have to write?
for example; %m=matrix's row which is variable depends on the input a=zeros(m) b=[mx1] I wanna assign b matrix into ...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


I have a matrix which size is mx1, I wanna give number for each value in a row starting 1 and ends m.
for example; a=[0.1;0.2;0.3;0.4;0.5] value_1=0.1 value_2=0.2 value_3=0.3 .....value_m=0.5 how can i create "value" vari...

presque 13 ans il y a | 2 réponses | 0

2

réponses

Question


I have 2 strings which matrix format (cellArray=[a,b], when I use set(handles.listbox, 'String', cellArray) I wanna increase column spaces between a,and b in GUI.
for example, a=[1 2 3;4 5 6;7 8 9] % size(a)=3x3 a=num2str(a) b=[1;2;3] % size(b)=3x1 b=num2str(b) cellArray=[a,b] se...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


creating loop for subtracting values from matrix which size is variable.
for example a=[y1,x1,y2,x2,....yn+1,xn+1] I wanna subtract all y values as y_column=[y1;y2;y3;y4;.....;yn+1] and I wa...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


I have a matrix which is [y1 x1 y2 x2 y3 x3.......]. The size variable depends on the input, I wanna extract y(i) and x(i) seperately from this matrix.
m=[y1,x2,y2,x2,y3,x3,.......] I wanna extract y(i) as y_column=[y1;y2;y3;y4;....] and x_column=[x1;x2;x3;x4;.......]

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


while working in GUI, I wanna create txt file which include a numeric matrix(a) but I want that user could choose directory and file name when user wants to save.
for example, a=[1,02 2,54 3,8 ;4,5 5,5 6,7 ;7,7 8,7 9,1] when user press the button in GUI I wanna open a window to allow us...

presque 13 ans il y a | 1 réponse | 0

0

réponse

Question


I have a mx3 matrix which is string format, I'm assigning this matrix by set(handles.listbox, 'String', matrix) into the listbox. How can I change space between the columns?
matrix= [m,3] %string set(handles.listbox, 'String', matrix) in the listbox I wanna put more space between the columns, is...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


I have a excel file which contains both number and txt, I wanna assign whole values in this excel file to the listbox
for example, first column of the excel file includes only txt second column of the excel file includes only num third colum...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


In GUI, how I can assign any matrix to listbox as a matrix form?
for example, a=[1 2 3;4 5 6;7 8 9] is a matrix. I wanna put this matrix into the listbox as a 3x3 matrix form

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


In GUI environment I wanna assign the value of data which is double to listbox as appear below.
data = 1.0e+03 * 8.764479999999999 9.453410000000000 9.163520000000000 9.177770000000001 9.062700000000001 ...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Question


in gui environment, I wanna create uitable which allows me to input matrix which size is variable.
% --- Executes when entered data in editable cell(s) in uitable1. function uitable1_CellEditCallback(hObject, eventdata, hand...

presque 13 ans il y a | 1 réponse | 0

0

réponse

Question


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

presque 13 ans il y a | 1 réponse | 0

1

réponse

Charger plus