Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 5 respuestas | 0

5

respuestas

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Warning: Attempt to write an unsupported data type to an ASCII file. I have a data which its class cell and its attributes global. I wanna save and write this data into text but I give this warning.
cellArray= '4004 638905.26736 4552506.2389' % cellArray 1x1 188 cell global ...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Warning: Attempt to write an unsupported data type to an ASCII file. I have a data which its class cell and its attributes global. I wanna save and write this data into text but I give this warning.
cellArray= '4004 638905.26736 4552506.2389' % cellArray 1x1 188 cell global s...

alrededor de 13 años hace | 0 respuestas | 0

0

respuestas

Pregunta


I wanna create a txt file and assign data from matlab variables into this file. The point is I wanna create txt file without opening any file like in the case of "save as" in world or excel. I also want that user can choose directory and file name.
for example, p = rand(5, 3) startingFolder = 'C:\Program Files\MATLAB' if ~exist(startingFolder, 'dir') starting...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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 ...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 2 respuestas | 1

2

respuestas

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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;.......]

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Cargar más