Answered
How can I remove the extra blank spaces from a text?
@Tiziano dos Santos - you could perhaps use strsplit to split the string on the space character and will create a cell array of ...

4 months ago | 0

Answered
Nested loop creating two dimensional cell
@Marisa Mulvey - looking closely at your inner loop for j = 1:wCond filename = triallist{j}; calcdata{i,j} = calc_spl...

4 months ago | 0

| accepted

Answered
how can create Changing lamp color with start and stop button
@Amir Azadeh Ranjbar - you would need callback functions for your start and stop buttons. These callbacks would then change the ...

4 months ago | 0

| accepted

Answered
how to plot from input (function)
@Anwar Alm - you could use str2func to convert the function string to a function handle and then evaluate in your code. In this ...

4 months ago | 0

Answered
My while loop will not stop even when it no longer meets the requirements, how do I fix this?
@Matthew Smyth - look closer at your while loop condition while ~(guessesLeft <= 0) || ~(correctCount == length(guessingWord-1)...

4 months ago | 0

| accepted

Answered
How to combine animations, add title and edit limits
@Grigorios Chatziandreou - the animate_pendulum function creates a figure each time it is called which is why you will see one f...

4 months ago | 0

| accepted

Answered
Implementing perceptron using while and for
@Nick Vasilakis - your while loop looks like while sum(abs(y-y_problepsi))~=0 delta_w=0.7*(y-y_problepsi)....

4 months ago | 0

Answered
Have a partial code but I cant get it to perform where if falls to the right.
@Blain Wood - I think you need to change the first condition of elseif 75>chance && chance<=89 to elseif 75 < chance && chanc...

4 months ago | 0

Answered
Error 'Array indices must be positive integers or logical values.' matlab gui
@Lai Ken Siang - I think that you will need to revisit your code. When the string is '...---...', how does the code know where ...

4 months ago | 0

| accepted

Answered
Get label name of item in dropdown menu
@John F - since you are passing the drop down objects into the callback, I think you could just do function update_perf_plot(xd...

4 months ago | 0

Answered
Equation is working but the output is not displaying
@Nicholas Mun - without knowing exactly what the input string looks like, I think that you need to replace output_string = [out...

4 months ago | 0

| accepted

Answered
How to display audio file length in Matlab GUI
@Nikos Korobos - if you are using an audioplayer, you could use the CurrentSample to determine how many samples havve been playe...

4 months ago | 0

| accepted

Answered
App Error 'value' must be double scalar within the range of 'limits' Can't really find a way to fix
@Matthew Moniz - I think one of the problems is with the code here function CalculateButtonPushed(app, event) Roll=app.Pla...

4 months ago | 0

Answered
Error ' Index in position 2 exceeds array bounds'.how to correct this.
@susan sara - in your while loop conditions while(abs(a(k)-a(k-1))>=0.01) && abs(b(k)-b(k-1))>=0.01 && rms(abs(A(:,k)-A(:,k-1)...

4 months ago | 1

| accepted

Answered
Audioplayer StopFcn is executed even when I pause my audioplayer
@Shadow_man - it doesn't seem correct that the stop function is called when the audio player is paused especially given the docu...

4 months ago | 0

| accepted

Answered
Making circular shapes using equation of circle
@hamzah khan - I think the issue is with the bounds for your grid xmin = min(Data_agglo(:,2)-R); xmax = max(Data_agglo(:,2)+R)...

4 months ago | 0

| accepted

Answered
Using "imread" to process multiple images
@Dongsu Kim - from your code for n=2:400 %Load image file images{n} = imread(sprintf('C1S0076%08d.tif',n)); end Im1 = ma...

4 months ago | 0

| accepted

Answered
music piece with matlab
@Giovanni Scamardo - from https://www.mathworks.com/matlabcentral/answers/335544-matlab-play-notes-for-different-duration-s-as-s...

4 months ago | 0

Answered
Storing information from a loop over 3 variables
@RP - look closely at this code for i=1:4 for j=1:4 for ii=1:9 muy=-muinputs(i)*SCR; si...

4 months ago | 0

| accepted

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

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

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

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

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

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

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

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

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

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

5 months ago | 0

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

5 months ago | 0

Load more