Community Profile

photo

Kumar


47 total contributions since 2019

Student.
MATLAB enthusiast.

Kumar's Badges

  • Revival Level 2
  • Knowledgeable Level 2
  • First Answer
  • Thankful Level 1

View details...

Contributions in
View by

Answered
Uigetfile will make app be behind another windows.
add these lines after uigetfile drawnow; figure(app.UIFigure) assuming your UIFigure's name is app.UIFigure

18 hours ago | 0

Answered
Rename file with editfield(App designer)
You can do this. Suppose you entered 'oldname' in text editfield. i.e. your_editfield.Value = 'oldname'; now save the file usi...

18 hours ago | 0

| accepted

Answered
Callback function on window focus?
f = figure; drawnow figure(f);

2 days ago | 0

Answered
Storing data in cell array using for loop
You are creating a new cell array everytime n is incrementing, which leads to loss of previous data. so, create the cell array o...

4 days ago | 2

| accepted

Answered
App Designer uitextarea control gives position values not in pixels when window is maximised?
When I do this: fig = uifigure; txa = uitextarea(fig); txa.position I get the Output as 100 100 150 60 which are pixels.

7 days ago | 1

| accepted

Answered
App designer big projects
Yes, you can read an excel sheet and get the words. Simply create a push button in the GUI, in the pushbutton callback, write th...

8 days ago | 0

Answered
I have fixed parameters , and the functions will used it but how write in GUI MATLAB
If you have static parameters which you do not want to change through out the program, you can declare them in OpeningFcn callba...

8 days ago | 0

| accepted

Answered
Append rows to an empty table
t = table; for i = 1:3 column1 = rand(2,1); column2 = rand(2,1); tempt = table(column1, column2, 'VariableNames',{'c1','c2'}...

8 days ago | 0

| accepted

Answered
matlab guide how to show table with text
Select Table from the component section adn write the callbacks accordingly to update the table.

9 days ago | 1

Answered
Change distance between grouped bars (bars are overlapping)
Remove the bar width field in line 2 y = [3.6 2.2; 10.8 2.2; 34.9 11.0; 37.3 46.2; 13.3 38.5]; hBar = bar(y); for k1 = 1:size...

9 days ago | 0

Answered
Breaking a long line of code into two.
uiwait(msgbox(sprintf(['Decryption complete!\n\nRetreived image has ',... 'been saved to disk\n\nOutput File Name: ''Hidden...

11 days ago | 3

| accepted

Answered
Is that possible to use MATLAB Coder with a Guide application?
If you have just started the GUI implementation, I would suggest you to switch to AppDesigner instead. If you are way long in gu...

11 days ago | 1

| accepted

Answered
Save a group of processed imags output from a for loop in a specific folder
Have you correctly given the permission to the folder you are writing? Once try this, savepath = 'C:\Some_dir\Some_folder'; F...

11 days ago | 0

Answered
How to generate an App
I would suggest you to use App designer and design the app, where in there will be a graphical user interface. If you want input...

15 days ago | 0

Answered
Selecting the nearest data point in a 2-D plot
Try to perform difference (and take minimum of absolute) between both ginput data point and original data and take out the index...

16 days ago | 0

Answered
smooth a gear profile
You can make moving average of the data to smoothen it, by choosing appropriate window size. play with it. doc movmean

16 days ago | 0

Answered
how to write in edit field
doc uieditfield

16 days ago | 0

Answered
How do I create a vector from two user-input variables?
"for the number of years requested by the user." you mean, you want the user to enter the number of years using input ? If yes...

19 days ago | 0

Answered
How to convert .m to .mlapp
If you have a GUI(.m) made in matlab and you want to convert it to MATLAB app(.mlapp), you can use migration tool provided by MA...

19 days ago | 0

| accepted

Answered
How to write numerical data in rows in a text file ?
I would suggest you to use file opening, writing it and closing it as it is more organised and easily understandable. fid = fop...

26 days ago | 0

| accepted

Answered
how to plot in UIAxes in app designer
You can give axes handle in the plot. for example, if you used plot(x,y); now, use plot(app.UIAxes,x,y); and ofcourse, th...

27 days ago | 0

| accepted

Answered
Getting an equation into a numeric text field in App Designer
doc format Use format long before computing x.

1 month ago | 0

Answered
Need help creating an matrix that includes probability
r = randi([0 1],96,96); zero_count = round(0.05*numel(r)); count = 0; for i = 1 : 96 for j = 1: 96 if r(i,j) ...

1 month ago | 0

Question


Upsampling the data using interpolation gives NaN values.
Hello everyone, I have the data of size 2173x1. I want to increase the number of samples to length of 2225570x1 using interpola...

1 month ago | 1 answer | 0

1

answer

Question


Finding change in a large dataset
Hello everyone, I have a data file (1288753x1) as shown above (data attached) I am trying to find the y value at the red ci...

1 month ago | 2 answers | 0

2

answers

Answered
How to know which radio button is selected in a radio button group in app designer of Matlab 2018a?
" no other radio button has the property 'value' " Every radiobutton has the property Value. In this case app.RightButton.Va...

2 months ago | 0

| accepted

Answered
comparison of vectors and reducing size
doc interp1 use linear interpolation, to upsample or downsample the vector to any length required A = rand(299,1); B = rand(4...

2 months ago | 1

Answered
How to make scatter plot graphs ?
doc scatter use hold on if you want to plot 3 datasets in a single plot.

2 months ago | 0

| accepted

Answered
Problem with Matlab gui quitting
Try this: write countdown(app) instead of app.countdown in startupFcn.

2 months ago | 0

Answered
How to cut the signal at particular time or tol value ??
load signal load t S = signal(1,:); tol = 0.5/2310; plot(t,S); [minDistance, indexOfMin] = min(abs(tol-t)); newt = t(1:ind...

2 months ago | 1

| accepted

Load more