Answered
Generating two signals and concatenating them
@Peter Cristian - why are you using 159/12000 ? Wouldn't that correspond to 159/12000 = 0.1325 seconds when you should have...

2 years ago | 1

| accepted

Answered
A function that replaces any negatives with zeros
@Eric Brown - when you do something like x<0 then this will return a logical array of 0's and 1's, where a 0 indicates that th...

2 years ago | 1

Answered
Unrecognized method, property, or field 'randi' for class 'rl.util.rlFiniteSetSpec'.
@Ankita Tondwalkar - from here, actInfo is an array of rlNumericSpec objects | array of rlFiniteSetSpec objects. I think that yo...

2 years ago | 1

Answered
More performance when updating graph
@Cedric Dunsch - every time you call plot a new graphics object is created for the axes. I recommend that you create one plot gr...

2 years ago | 0

Answered
Using guidata or setappdata seem to call OpeningFcn
@Gorm Dannesboe - I suspect that everytime you call the GUI by name, LoopGainPlotterGUIv1_5, you are creating a new instance of ...

2 years ago | 1

| accepted

Answered
Probability calculation for Bernoulli trials.
@dlafont - I think you need to update your bn_atleast function so that it returns something. Probably P function P = bn_atleast...

2 years ago | 0

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

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

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

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

2 years ago | 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 years ago | 1

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

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

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

3 years 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(...

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

Load more