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

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

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

4 mesi 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; % ...

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

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

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

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

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

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

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

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

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

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

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

5 mesi ago | 0

| accepted

Answered
Single Figure Animation of moving points (without tails)
Luca - use set to modify the x and y data of the plot. Replace your for loop with the following hPlot = plot(NaN, NaN, 'db'); ...

5 mesi ago | 1

| accepted

Answered
Why is my plot not showing?
Tony - your code is not calling the TranMat function which has the code to plot the data. How should it be called? What do the a...

5 mesi ago | 0

| accepted

Answered
fopen status for serial objects
Could you use a try catch block to try to open the serial object and then, if there is an error, take the appropriate action giv...

5 mesi ago | 0

| accepted

Answered
Can sfit objects be plotted to specific axis in GUI (not a figure window)?
Giorgio - from Plot cfit or sfit object, the code to plot the sf object would be plot(sf, 'Parent', app.Map) . When you try to...

5 mesi ago | 1

Answered
Nested If-ELSEIF statements
Hans123 - do you really need nested if-elseif blocks to change the extreme points? Wouldn't you just do them for x, y, and z sep...

5 mesi ago | 0

| accepted

Answered
why i am getting error while using editable text in guide?
Ajay - look closely at the results from which uicontrol --all: C:\Users\ajayr\Documents\MATLAB\uicontrol.m built-in ...... % s...

5 mesi ago | 1

| accepted

Answered
how to open a file from the previous folder
Alajendro - you should be able to use pwd to determine the current folder, and then "navigate" up one directory to A and then do...

5 mesi ago | 0

| accepted

Answered
How can I update the plot in App designer?
Rasheed - i might use a timer to update the plot (or animated line) and then whenever the "Update" push button is called, the up...

6 mesi ago | 0

| accepted

Answered
error undefined fuction and varible
Deepak - it looks like you have copied this code from (perhap) https://www.mathworks.com/matlabcentral/answers/435101-this-is-my...

6 mesi ago | 0

| accepted

Answered
How to use "record" command for some amount of time?
Oai - from Record audio to audiorecorder object, you can specify the length of the audio recording as r = audiorecorder(8000,16...

6 mesi ago | 0

| accepted

Answered
Plotting analog input continuously on a given axis
Niraj - if you don't declare daqObj as a global variable, then it will be a local variable. When your function "completes" (afte...

6 mesi ago | 0

| accepted

Answered
I get an error when running anomaly time series code in the app designer.
Özge - the output of timeseries is an object and so you need to plot the appropriate data from this object and not the object it...

6 mesi ago | 0

| accepted

Answered
Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
nada - I think that you are trying to set the string property for each of the three edit fields to be the same value. Note that ...

6 mesi ago | 1

Answered
Issue with plotting multiple data points on same graph
Oscar - look closely at the y-axis for the first image (that which plots both elements). There seems to be a factor of 10^4 so t...

6 mesi ago | 0

Answered
matlab.error graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MTF_Radial('pushbutton4_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback
Nazil - the problem is with your function signature function [IC]=f_SegmentasiHU(img1.IMA); Note how you are defining the (onl...

6 mesi ago | 0

| accepted

Load more