Ajay Kumar
Followers: 0 Following: 0
Student.
MATLAB enthusiast.
Feeds
답변 있음
Problems of convert decimal number to a string
You can define precision property in num2str. For example: num = [110.00001, 10.00000000000000001,99.01]'; your_ans = num2str(...
Problems of convert decimal number to a string
You can define precision property in num2str. For example: num = [110.00001, 10.00000000000000001,99.01]'; your_ans = num2str(...
4년 초과 전 | 0
답변 있음
appdesigner code view ANNOYANCE!
In the code view window -> editor tab -> View section find 'Enable app coding alerts' and uncheck that.
appdesigner code view ANNOYANCE!
In the code view window -> editor tab -> View section find 'Enable app coding alerts' and uncheck that.
4년 초과 전 | 0
| 수락됨
답변 있음
Multiple outputs by a loop
Param=regexp(fileread('parameters.txt'), '\r?\n', 'split') .'; for i=1:size() fid = fopen( ['output',i,'.txt'], 'w'); fprint...
Multiple outputs by a loop
Param=regexp(fileread('parameters.txt'), '\r?\n', 'split') .'; for i=1:size() fid = fopen( ['output',i,'.txt'], 'w'); fprint...
4년 초과 전 | 0
답변 있음
debugging within built in matlab function
right click on polyfit in editor window and select open "polyfit" You can see the complete code behind polyfit and you can plac...
debugging within built in matlab function
right click on polyfit in editor window and select open "polyfit" You can see the complete code behind polyfit and you can plac...
4년 초과 전 | 0
| 수락됨
답변 있음
saving outputs from a loop
%matlab code for euler's method clear all clc f=@(x,y)(x^2)/(1+y^2)+2*y; x0=input('Enter initial value of x or x(0): ');%you...
saving outputs from a loop
%matlab code for euler's method clear all clc f=@(x,y)(x^2)/(1+y^2)+2*y; x0=input('Enter initial value of x or x(0): ');%you...
4년 초과 전 | 1
| 수락됨
답변 있음
how to write a axis in hours format
Again it resembles the same question you asked, which already has the answer. https://www.mathworks.com/matlabcentral/answers/5...
how to write a axis in hours format
Again it resembles the same question you asked, which already has the answer. https://www.mathworks.com/matlabcentral/answers/5...
4년 초과 전 | 0
답변 있음
how to change axis to text format
Use xticklables for eg: x = linspace(0,12); y = x.^2; plot(x,y) xticks([0:1:12]) xticklabels({'','Jan','Feb','Mar','Apr','M...
how to change axis to text format
Use xticklables for eg: x = linspace(0,12); y = x.^2; plot(x,y) xticks([0:1:12]) xticklabels({'','Jan','Feb','Mar','Apr','M...
4년 초과 전 | 0
| 수락됨
답변 있음
Calculate average (daily, monthly, seasonally) for long time series data
You can ignore NaN values using property omitnan https://www.mathworks.com/help/matlab/ref/mean.html#buql3m_
Calculate average (daily, monthly, seasonally) for long time series data
You can ignore NaN values using property omitnan https://www.mathworks.com/help/matlab/ref/mean.html#buql3m_
4년 초과 전 | 0
답변 있음
How to convert matrix to CSV file
for i = 1:length(sequences) csvwrite(['hmdb51_org/bend',num2str(i),'.csv'], sequences{i}); end
How to convert matrix to CSV file
for i = 1:length(sequences) csvwrite(['hmdb51_org/bend',num2str(i),'.csv'], sequences{i}); end
4년 초과 전 | 0
| 수락됨
답변 있음
How do I write a loop which creates a random number and adds the previous values
res_sum = 0; for i=1:23; a(i) = randn(1); res_sum = res_sum + a(i); end
How do I write a loop which creates a random number and adds the previous values
res_sum = 0; for i=1:23; a(i) = randn(1); res_sum = res_sum + a(i); end
4년 초과 전 | 1
답변 있음
How to repeat input prompt for each data set?
You are replacing the m and a everytime in the for loop. try this u=menu('What is your unit system?','SI','English'); d=input(...
How to repeat input prompt for each data set?
You are replacing the m and a everytime in the for loop. try this u=menu('What is your unit system?','SI','English'); d=input(...
4년 초과 전 | 0
| 수락됨
답변 있음
calculat the percentage of the red curve in the blue one?
Do you mean exactly same values in red and blue lines? You can do: same_values = find(blueline==redline); % gives same samples ...
calculat the percentage of the red curve in the blue one?
Do you mean exactly same values in red and blue lines? You can do: same_values = find(blueline==redline); % gives same samples ...
4년 초과 전 | 0
답변 있음
How to solve a matrix quadratic equation?
Kminusw2 = K - w^2; mymatrix = Kminusw2.*M; myfinalanswer = det(mymatrix);
How to solve a matrix quadratic equation?
Kminusw2 = K - w^2; mymatrix = Kminusw2.*M; myfinalanswer = det(mymatrix);
거의 5년 전 | 0
답변 있음
Adding a second x-axis to the top
https://uk.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html
Adding a second x-axis to the top
https://uk.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html
거의 5년 전 | 0
답변 있음
Previous Value of Numeric Edit Field
Try to save the Previous value in a temporary variable. For eg: temp = app.NumericEditField.Value; if error app.NumericE...
Previous Value of Numeric Edit Field
Try to save the Previous value in a temporary variable. For eg: temp = app.NumericEditField.Value; if error app.NumericE...
거의 5년 전 | 0
답변 있음
How to stop the program if an array is empty?
Handle the exception using try catch blocks signal1 = [1,2,3,4,5,6]; signal2 = [7,8,9,10,11,12]; signal3 = [13,14,15,16,17,1...
How to stop the program if an array is empty?
Handle the exception using try catch blocks signal1 = [1,2,3,4,5,6]; signal2 = [7,8,9,10,11,12]; signal3 = [13,14,15,16,17,1...
거의 5년 전 | 0
| 수락됨
답변 있음
save data in for loops
Yes, You are trying to assign 2 matrices of different size. Try this: coordinate= zeros(41,1); for a=1:21 X = snakes{1,a}...
save data in for loops
Yes, You are trying to assign 2 matrices of different size. Try this: coordinate= zeros(41,1); for a=1:21 X = snakes{1,a}...
거의 5년 전 | 0
| 수락됨
답변 있음
figure doesn't appear in new window
Are you sure? because Figure 2 window lies exactly on Figure 1 window. Just check the matlab windows. If you want to shift the ...
figure doesn't appear in new window
Are you sure? because Figure 2 window lies exactly on Figure 1 window. Just check the matlab windows. If you want to shift the ...
거의 5년 전 | 1
답변 있음
How to say remove "-1" from the end of a string if exists?
play with positions. For eg: S = 'sectioned-1'; S = S(1:end-2) For an array, write this in a simple for loop.
How to say remove "-1" from the end of a string if exists?
play with positions. For eg: S = 'sectioned-1'; S = S(1:end-2) For an array, write this in a simple for loop.
거의 5년 전 | 0
답변 있음
Inserting a row and moving other rows down
A = [A(1,:);[1,1,1,1];A(2,:);A(3,:)]
Inserting a row and moving other rows down
A = [A(1,:);[1,1,1,1];A(2,:);A(3,:)]
거의 5년 전 | 1
| 수락됨
답변 있음
How to modify the text visibility in a Gui that created using App Designer
What is the exact name of the component? I would suggest you to rename it if its only Label. For example, if you rename it to C...
How to modify the text visibility in a Gui that created using App Designer
What is the exact name of the component? I would suggest you to rename it if its only Label. For example, if you rename it to C...
거의 5년 전 | 0
| 수락됨
답변 있음
matlab app designer ,UI axes how to disable XTick label ?
I think you want to disable Xlabel String. Search for Xlabel.String property in the property window and also make that empty.
matlab app designer ,UI axes how to disable XTick label ?
I think you want to disable Xlabel String. Search for Xlabel.String property in the property window and also make that empty.
거의 5년 전 | 0
답변 있음
The plot is exceeding the boundaries of the box in a figure.
Did you turn off the Clipping ? Try this after plot: ax = gca; % get the current axis ax.Clipping = 'on'; %...
The plot is exceeding the boundaries of the box in a figure.
Did you turn off the Clipping ? Try this after plot: ax = gca; % get the current axis ax.Clipping = 'on'; %...
거의 5년 전 | 0
답변 있음
Linking two dropdown menus to a pushbutton in a GUI
In the ButtonPushed callback, you can directly assign the values of dropdown menu. For eg: Dropdown.Value = "Your Option in dro...
Linking two dropdown menus to a pushbutton in a GUI
In the ButtonPushed callback, you can directly assign the values of dropdown menu. For eg: Dropdown.Value = "Your Option in dro...
거의 5년 전 | 0
답변 있음
How can I change the value of some elements within a matrix
B =[0, 3, 6]; C= 1./B; C(isinf(C))=0
How can I change the value of some elements within a matrix
B =[0, 3, 6]; C= 1./B; C(isinf(C))=0
거의 5년 전 | 0
| 수락됨
답변 있음
Generation of plot using data set
T = xlsread('process.xlsx'); names = {'Memory'; 'Battery Backup'; 'Processing Capability'; 'Screen Size'; 'Camera'}; for i = 1...
Generation of plot using data set
T = xlsread('process.xlsx'); names = {'Memory'; 'Battery Backup'; 'Processing Capability'; 'Screen Size'; 'Camera'}; for i = 1...
거의 5년 전 | 0
답변 있음
how to install matlab on windows 10
If you are a student, then see if your university/college has a Campus-Wide Access. For checking go to: https://uk.mathworks.com...
how to install matlab on windows 10
If you are a student, then see if your university/college has a Campus-Wide Access. For checking go to: https://uk.mathworks.com...
거의 5년 전 | 0
답변 있음
How can I implement code online?
You can use MATLAB compiler to make your GUI/App as a standalone application or web application. Please read: https://uk.mathw...
How can I implement code online?
You can use MATLAB compiler to make your GUI/App as a standalone application or web application. Please read: https://uk.mathw...
거의 5년 전 | 0
| 수락됨