Answered
How do you make the percentage button work on a basic calculator
@Alejandro Mandujano - don't you just want to divide the number by 100? So (assuming your BResultado is a text (not numeric) fie...

6 months ago | 1

Answered
Generate 10000 numbers using RAND with probability
@dlafont - from the error, I think that you have a custom script called rand.m that is is conflicting with the MATLAB rand funct...

6 months ago | 1

Answered
How do I remove apps I do not need?
@Al Thibeault - perhaps with the matlab.apputil.uninstall function. You just need to pass the appId to this function and that sh...

6 months ago | 1

| accepted

Answered
Making circular agglomerates using equation of circle
@hamzah khan - I think the problem is that diameters of your circles are too large given the limits you impose on your x and y v...

6 months ago | 0

Answered
Relation between two vectors elements
@Lama Hamadeh - consider using intersect and in particular this example.

6 months ago | 0

Answered
Need help with Matlab recording
@Nikos Korobos - you mention a button. Do you want to use this code with a GUI and have the recording continue until the button ...

7 months ago | 1

| accepted

Answered
I would like to make a rectangle, x goes from 0 to o.1, 0.2, 0,3....etc and fill the rectangle with different colors? what is the best possible approach for this ? thank you
@Zahir Elharith Mohammedelamein Ahmed - consider using rectangle to create multiple rectangles side-by-side. You can set the col...

7 months ago | 0

| accepted

Answered
Despite going to default, the layout is not the default, and I have to switch between different screens
@John Hey - try redocking the editor by pressing the arrow in the far right corner of the editor and selecting Dock Editor.

7 months ago | 0

Answered
Optimization running. Error running optimization. Your fitness function must return a scalar value.
@esiotlab GEC - it looks like your fitness function is returning an array. You must change your code so that a scalar is returne...

7 months ago | 0

Answered
Plot a histogram from given data.
@Allen Lee - perhaps you can simplify your code to use the histogram edges so that you don't have to sort the data yourself. Som...

7 months ago | 1

Answered
why it does not go to if statement and not only in else?(variable 'omega' might be set by a nonscalar operator)
@Abdulmuti Ehsan omega is an array omega=15.*(LST-12) where LST=[6:18] . So for the condition if omega>0 what do you mean...

7 months ago | 0

Answered
Matlab GUI popupmenu problem
@Huda M - the red text in your screen shot is the error message so it is telling you what is going wrong. It would be helpful to...

7 months ago | 0

Answered
Issue with length function
@julian gaviria - why aren't you using the i in your loop? for i=1:length(dir(fullfile(SourceFolder,'f*'))) copyfile(fullf...

7 months ago | 0

| accepted

Answered
Need help with creating histogram
@Yash Raj Haldaniya - you perhaps want to defined the edges as indicated at bins with bin edges.

7 months ago | 1

Answered
How to output individual digits from a user input of 2 digit numbers?
@Jacob Boulrice - rather than having n be an integer, perhaps it should be a string so that you can parse the first and second c...

7 months ago | 0

Answered
How to record time and position of a mouse cursor simultaneously and save it in file using "GUIDE"?
@Franck paulin Ludovig pehn Mayo if you need to use GUIDE, you could do the following in whatever callback that would start the ...

8 months ago | 1

| accepted

Answered
How to solve too many arguments error in the bold part
@Maimoona Asad - I see the same error when I run your code Error using alpha Too many output arguments. Error in myfunction...

8 months ago | 0

Answered
I want a function to be repeatedly called within an AppDesigner application
@Jeff Beckstead - you could perhaps use a timer to periodically call your function. The timer might start when the app starts an...

8 months ago | 0

Answered
Changing of Panel Border Color
@Mathias Gie├čler - from Panel Properties, it says something similar: This property is valid only for panels in apps created usin...

8 months ago | 0

| accepted

Answered
How to save each time step of for loop with a different .txt name
@Flavio Croce - if you just want to change the extension, then you could do something like [~,name,~] = fileparts(files{i}); w...

8 months ago | 0

| accepted

Answered
How to Add Fitness Limit as Stopping Criterion in Genetic Algorithm?
@Dario Miric - from Stopping Conditions for GA, it mentions that for all of the different stopping conditions, the algorithm sto...

8 months ago | 0

| accepted

Answered
uigetfile for loading the mat file from different folder
@Prasad Joshi - try using load to load the variables from file into the workspace. I think that is all that you are missing once...

8 months ago | 0

| accepted

Answered
Undesirable size of resized images
@Daeyeon Koh - I think that you are saving the figure rather than the image that is displayed in the figure to the file saveas(...

8 months ago | 0

Answered
Open file selection dialog, and get an error message when no file is selected
@Hidd_1 - on my version of MATLAB (2021a), if I don't select a file, then the parameters file and filepath are 0. You could add ...

9 months ago | 0

| accepted

Answered
I can not write text on an image by insertText
@Xiaoai Chen - should the value input parameter be a cell array of strings rather than an array? Please see text (of insertText0...

9 months ago | 2

Answered
how to use three pop-up menu to get result in a screen(GUI, using guide)
@Tahani Alajmi - when you launch the GUI and press the convert button, you will see an error in the console window: Index in po...

9 months ago | 1

| accepted

Answered
search content in table
@VISHNU DIVAKARAN PILLAI - you could try something like dcode.d_address(strcmp(dcode.d,'D')) where we use strcmp to return a l...

9 months ago | 0

| accepted

Answered
How to simply record a string of sound from the computer microphone?
@John - try using the audiorecorder. One of the (simple) examples from here is recObj = audiorecorder; % create the object r...

9 months ago | 1

| accepted

Answered
Im using randsample() but im getting an error
@Tariq Hammoudeh yes, randsample requires the Statistics and Machine Learning Toolbox. If you just want to choose one random ele...

9 months ago | 1

| accepted

Answered
How can we run many simulations at the same time? (for example for 1000 simulations)
@AT - please clarify what you mean "it doesn't work properly". What are you expecting to happen? Or are you getting the same re...

9 months ago | 0

| accepted

Load more