Answered
Format long error in function
ahmed - consider using fprintf and specifiying the number of integers to the right of the decimal point that you are interested....

12 månader ago | 0

| accepted

Answered
Running three different cases in my function and plotting three graphs on one plot (figure)
Asaf - try using hold to retain the current plot when adding new plots. For example, x = -2*pi:0.01:2*pi; plot(x, sin(x)); ...

12 månader ago | 0

| accepted

Answered
If I have a string with both numbers and letter in it, how would I get the value at a column, and if it is a number convert it to not a string?
Jared - perhaps I'm misunderstanding, but if you have a comma-delimited string, you can split on it and then use str2double to c...

12 månader ago | 0

Answered
Redrawing an image in a UIAxes that has already been drawn
Hi Jason - from image created by imshow, the app.myData is an image object which (from the tests I did) may no longer be valid d...

ungefär ett år ago | 0

| accepted

Answered
Removing the max and min of a vector without removing multiple minimums or maximums
Logan - from max value and indices you can get the index to the maximum (or minimum) value and then use that index to remove the...

ungefär ett år ago | 0

Answered
Using the euler method
Kelsey - there are a couple of coding mistakes with the above. Before the code can execute, there is an error Invalid expressi...

ungefär ett år ago | 0

Answered
How do I convert a DataMatrix back to a normal matrix?
Emil - see Convert DataMatrix object to double-precision array for details on the conversion.

ungefär ett år ago | 0

Answered
math question error with the format
Dena - I suspect the error is due to the use of exp where you are not providing any inputs to this function. The code should pro...

ungefär ett år ago | 0

Answered
How can I set the focus to a GUI element created with javacomponent?
Josh - which version of MATLAB do you have? Does your version support uihtml? If so, you could modify one of their examples to d...

ungefär ett år ago | 1

Answered
Modify Knob From App Designer
Sossio - I suspect that you will want to create a discrete uiknob. Perhaps something like the following will do fig = uifigure;...

ungefär ett år ago | 1

| accepted

Answered
Has anyone found Lamp enable and disable in appdesigner?
Ajeet - try using "on" or "off" (instead of 1 or 0) and add a pause after each change to the enabled property (so that there is ...

ungefär ett år ago | 0

| accepted

Answered
How to cycle through two folders and search for files with similar names and load them into current directory
Natalie - a loop could look like the following for k=1:65 rawFilename = sprintf('InM%02d_RAW.txt', k); scaledFilename...

ungefär ett år ago | 0

Answered
How to normalize rows of a matrix?
Kimberley - your code is overwriting the value that was assigned to aefm_2 on the previous iteration aefm_2 = aefm_1(i,:)./max(...

ungefär ett år ago | 0

| accepted

Answered
waitbar bar inside two for loops
Alajendro - rather than creating a new waitbar on each iteration of the inner loop, just create it once and then re-use it. For ...

ungefär ett år ago | 1

| accepted

Answered
How can I record an audio from a tuggle button in the GUIDE ?
Samuel - I think that the problem is that you are creating a new audio player each time the callback is called: handles.audio =...

ungefär ett år ago | 0

Answered
Passing variable from anonymous objective function to main workspace
Mario - consider nesting your optimization function within the main function and have it return the variable to the workspace. S...

ungefär ett år ago | 1

Answered
AppDesigner use of extern function and variables
prrrrr - so long as the aquad function can be found within the MATLAB search path, then you can just call it directly from App D...

mer än ett år ago | 0

| accepted

Answered
Loop not working to find min,max,mean
Marios - from your code nump = nump +1; will always be a scalar (1x1) value which seems incorrect. Should this be an array of ...

mer än ett år ago | 0

| accepted

Answered
why should we multiply the number of samples with sound frequency to calculate the sine wave?
joly - I think that t is usually a time array (in seconds). From fft examples, t can be initialized as Fs = 1000; % ...

mer än ett år ago | 0

| accepted

Answered
Why can't it proceed to the next iteration of for 'runs' loop?
mrbond99 - please look at the condition for the while loop while m > 0 You will only enter this loop so long as m is positive....

mer än ett år ago | 0

| accepted

Answered
Appending different size arrays each itteration in app desinger
remco - you could perhaps create a member variable for your App and then update that variable with the y on each call to the tim...

mer än ett år ago | 0

Answered
Move-File: Can't move certain Files to another Folder!
Malte - you haven't posted the error message or describe fully what you mean by I don't get it to work. According to movefile in...

mer än ett år ago | 1

| accepted

Answered
Displaying video file on App Designer Axes
Zachary - please see the example found at Read Video Using Frame Index and Time Interchangeably. I suspect that you could do som...

mer än ett år ago | 0

Answered
Find function can not find vector element index
You can't use the equality operator == with doubles. See Floating-Point Numbers for details. Instead you need to use a tolerance...

mer än ett år ago | 0

| accepted

Answered
Why function crashes when using conditional statements?
Tara - try replacing the switch with an if and use a tolerance check (note that using a switch statement for doubles or floats w...

mer än ett år ago | 0

Answered
Using AppDesigner with FileSystemWatcher
Summary of issue: from Create event listener bound to event source it shows that the call to addlistener returns an object. In t...

mer än ett år ago | 0

| accepted

Answered
Filter Table with Generalized Values
Neeraj - how about trying something like filteredTable = t(t.Age == 20 & strcmp(t.Gender, 'F'), :) or are you hoping for somet...

mer än ett år ago | 0

| accepted

Answered
Image Processing in GUI Error
Muhammad - please post the full error message (so all of the red text) so we can narrow down which line of the callback is gener...

mer än ett år ago | 1

| accepted

Answered
Though the code is pretty simple, still the value of theta remains 0 every time I execute the results with different values of w,x,y,z,u and v. The value of theta doesn't change anytime.
Srinjoy - the problem is that you are using the equality operator when comparing floats. Look at your conditions for the if/else...

mer än ett år ago | 1

Answered
HERE RESTful API - POST - Fleet Telematics
Sridhar - the 400 error code indicates (if I recall correctly) that there is a problem with your request. I see that you call w...

mer än ett år ago | 0

| accepted

Load more