Respondida
How can I call a directory that has a partially variable name (variable in the middle), that precedes a variable filename?
@nailah oliver - consider using dir to get a list of files that match your pattern. The result will be an array of structs that ...

alrededor de 3 años hace | 0

| aceptada

Respondida
How do I read out a specific string/value out of one excel cell
@Benedikt Friedl - take the cell data which is the comma-separated string and then use split to split the string at the commas: ...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to handle radiobutton in radiobutton group panel...
Tyann - I think the assignments in each radio button callback is incorrect pilih = 3; pilih = handles.pilih; guidata(hObject...

alrededor de 3 años hace | 0

Respondida
Put structure data into GUIDE table
Douglas - perhaps you need to convert the struct to a table before setting the uitable. Try using struct2table to see if that he...

alrededor de 3 años hace | 0

| aceptada

Respondida
Error-check spacing of a vector
Zheng - you are trying to compare two floating point numbers using (in this case) the inequality operand. When comparing two flo...

alrededor de 3 años hace | 0

| aceptada

Respondida
Error : In an assignment A(:) = B, the number of elements in A and B must be the same, used in homework equation. Please help me figure out how to solve.
Kristin - you may be overconplicating it. You say that My thought is that m = is a fine vector, because it isn't a built-in func...

alrededor de 3 años hace | 0

| aceptada

Respondida
given a circle plot all possible tangents
Sparsh - the code from https://www.mathworks.com/matlabcentral/answers/258780-how-to-plot-tangent-line-from-specified-point-to-a...

alrededor de 3 años hace | 0

Respondida
How to create a MATLAB code for generating audio sine wave signal of frequency ranges from 1Hz to 15kHz and plot it on real time.
Zafar - see the relevant parts of the noisy signal example on how to generate a sine wave with a particular frequency. You will ...

alrededor de 3 años hace | 0

Respondida
Euler's method
Paul (Adam?) - I think all that you are missing is in your assignment y_values(:,i1)= y_values(i1) + dt * myode(t_values(i1),y_...

alrededor de 3 años hace | 0

| aceptada

Respondida
is it possible to know if an alert dialog box has opened in app designer app?(testing purposes)
Michaela - if your code launches the alert dialog, then you should be able to know that it has launched and so can "skip the ite...

alrededor de 3 años hace | 0

Respondida
Possible error with dot product
William - from dot, this function returns the scalar dot product of the two input vectors. So in your case, the dot(xa+ya,xb+y...

alrededor de 3 años hace | 1

| aceptada

Respondida
Push the left or right button in the mouse after generating a sound
mohadeseh - one way (and there may be another) is to create a figure and have that figure capture the mouse button events (assum...

alrededor de 3 años hace | 0

Respondida
graph not displaying with UIaxes
Shu-An - when I run your code, I see the following error Error using ^ (line 51) Incorrect dimensions for raising a matrix t...

alrededor de 3 años hace | 0

Respondida
Convert UIDatePicker to Default
shnrndll - try setting to the default value of NaT (from Value) as myDatePicker.Value = NaT; where myDatePicker is the uidatep...

alrededor de 3 años hace | 0

| aceptada

Respondida
Calling specific .wav files in nested subfolders
Brian - if you know the path to the file that you want to read, then include that path along with the filename in the code to re...

alrededor de 3 años hace | 0

Respondida
Error when plot loaded .mat file in app designer
Aron - I suggest you use the MATLAB debugger to step through the code and see what the variables w_grad = load('w_gradiens_lotk...

más de 3 años hace | 0

| aceptada

Respondida
How do i call the recorded audio into another push button and compress it in GUI.
Muhammad - you can either extract the data from the plot (from handles.axes1) or just save the recorded data to the handles obje...

más de 3 años hace | 1

| aceptada

Respondida
How can I use the iteration to store variables? It gives error Subscript indices must either be real positive integers or logicals.
Shivanshu - presumably the error is with for i=1:itt options=odeset('RelTol',1e-3,'AbsTol',1e-6); [t,x]=ode23(@...

más de 3 años hace | 0

| aceptada

Respondida
How to make a sum series using a for loop
Petch - in your code, you are assigning the kth iteration value (plus x) to s rather than summing all values. Try instead s = x...

más de 3 años hace | 0

| aceptada

Respondida
creating a .txt file with values that the user inputs in Matlab app designer
Joseph - if your app has a text field that allows the user to enter the name of the file to save to, then you could do something...

más de 3 años hace | 0

| aceptada

Respondida
Cutting up image into smaller blocks - how to name resulting blocks according to grid pattern?
David - ca seems to represent your cell array of blocks. The code you have (already) to write the blocks is for K = 1 : numel(c...

más de 3 años hace | 1

Respondida
Unable to image files automatically with different file names
Warid - the code error message Error in ngui>pushbutton2_Callback (line 167) imwrite(seg, filename); does not correspond exa...

más de 3 años hace | 0

| aceptada

Respondida
CAN'T USE THE FUNCTION watershed in matlab for image segmentation??
Arun - is watershed a function or a script? In this case, I suspect that it is a script and does ot have a function signature. W...

más de 3 años hace | 0

| aceptada

Respondida
i am getting this error "Unable to resolve the name handles.SignalParameterDropDown"..plzzz!!!Help.
Abhishek - there is no handles variable in your RunButtonPressed function. Perhaps you mean to use app instead of handles?

más de 3 años hace | 0

Respondida
Matlab bouncing ball in box
Dakota - your axes limits are set as set(gca, 'XLim',[-10 10], 'YLim', [-10 10]); but the limits you set in code for the box a...

más de 3 años hace | 2

Respondida
Loop index is changed on a for loop
Andrea - when you populate a row in a table, you reset the start and end times end_time=NaT; start_time=NaT; ...

más de 3 años hace | 0

Respondida
MATLAB email body include text and a table
Fragkiskos - from sendmail, The sendmail function does not support HTML-formatted messages. However, you can send HTML files as...

más de 3 años hace | 1

| aceptada

Respondida
How to dynamically change a sine wave sound frequency ?
Pierre - I don't think you can dynamically change the frequency even if using the audioplayer. I think that you could use one pl...

más de 3 años hace | 1

| aceptada

Respondida
How to create a minesweeper board using a matrix
Aaron - note the top left corner code grid(r, c) == length(find(grid(r:r+1, c:c+1), 9)) Here you are comparing with == and sh...

más de 3 años hace | 0

| aceptada

Respondida
How to read units from a column in a table in Matlab?
Jason - T.Properties.VariableUnits{2} will get you the units for the second column. T.Properties.VariableUnits{2} = 'NewUnit...

más de 3 años hace | 0

Cargar más