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

casi 2 años hace | 1

| aceptada

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

casi 2 años hace | 1

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

casi 2 años hace | 1

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

casi 2 años hace | 0

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

casi 2 años hace | 1

| aceptada

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

casi 2 años hace | 0

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

casi 2 años hace | 1

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

casi 2 años hace | 1

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

casi 2 años hace | 1

| aceptada

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

casi 2 años hace | 0

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

casi 2 años hace | 0

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

alrededor de 2 años hace | 1

| aceptada

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 1

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 1

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 1

| aceptada

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 1

| aceptada

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

| aceptada

Cargar más