Réponse apportée
app designer says cosd "undefined function"
Isaac - you are obtaing the angle as angle = app.Angle; where presumably Angle is the handle to the matlab.ui.control.Numeric...

plus de 7 ans il y a | 3

| A accepté

Réponse apportée
Intergrating using For Loop! HELP!
TF - your alpha is in degrees but you are using the cos and sin functions whose inputs are in radians. I recommend converting al...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to increase the number of input options in dialog box?
Jijo - from inputdlg couldn't you do something like N = 3; prompts = {}; for k = 1:N prompts = [prompts sprintf('length ...

plus de 7 ans il y a | 0

Réponse apportée
load files within a for loop
Beatriz - isn't folder a struct array with all files that are of extension *.mat? If that is the case, can't you just iterate ov...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
two plots are linked by an unwanted line - animated line
Ross - have you tried creating two lines - one for the horizontal line and one for the cam lobe? By just using one animated line...

plus de 7 ans il y a | 0

Réponse apportée
Error using imwrite>parse_inputs (line 515) The first argument should not be a string
Rajani - try using copyfile to copy the file from one location to another.

plus de 7 ans il y a | 0

Réponse apportée
Take a sample audio and video and read and play that audio and video by using MAT LAB program and the program must pause at 1:30 minutes and continue after 30 second for both audio and video
abiy - I suppose you could use the videoreader to read the video (see the example on how to show the video frames, using the fra...

plus de 7 ans il y a | 0

Réponse apportée
Undefined variable when performing nonlinear curve fitting
mathnewbie - the error message is telling you that PeT is undefined. Nowhere in the code have you tried to define this variable ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do I solve the error: Undefined function or variable 'motionEstNTSS'.
Where have you saved the file motionEstNTSS.m once you downloaded it from the FEX? I suspect that it is not in the MATLAB search...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Help splitting string using strsplit
Richard - from strsplit try doing the following strsplit(data, ';', 'CollapseDelimiters', false) so that the consecutive empty...

plus de 7 ans il y a | 2

| A accepté

Réponse apportée
Hello everyone. I need to export student data from this GUI -on submit button click- to excel file that contains the following columns (Student Name,Quiz 1,Quiz 2,Lab,Final,Grade,Course).
Ahmad - in the submit button callback, use xlswrite to write your data (perhaps a cell array including the column headers) to fi...

plus de 7 ans il y a | 1

Réponse apportée
How can I increase or decrease the volume using audioplayer without using java
Jeet - perhaps you could modify the amplitude of the sound wave to control the volume. Please see How do I control the audio vol...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Plot in Bisection Method
Utku - I suppose that you would want to plot the m that is generated on each iteration of the loop. If that is the case, you cou...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
I've been trying to run my matlab GUI but in the command window appears this error: ''error in untitled (line 42) gui_mainfcn(gui_state varargin )''. The entire code is given below. Any soulution?
Álvaro - in the future, please copy and paste the full error message to this question AND the steps that lead to this error mess...

plus de 7 ans il y a | 1

Réponse apportée
Iteration error iter=0
heidi - try using the MATLAB debugger to step through your code to determine what is going on. Note the following code T = 5; ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Plot data import from excel to figure use GUI ?
The problem may be with this code function draw_Callback(hObject, eventdata, handles) filename = get(handles.import,'String');...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Filling a matrix with a for loop, calling content from a second matrix
Riccardo - the problem with your code is the line MAT(:,:) = RESULTS You are overwriting the data stored on the previous ite...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
"size(I, 3)" when ran on an RGB image returns ans as "1" when that is not the case.
Shawn - the input to your function is a parameter called MyFileName. The name suggests that it is a file name and not an image. ...

plus de 7 ans il y a | 3

| A accepté

Réponse apportée
Why doesn't the callback I've written here seem to work? As far as I can tell all of my syntax is correct and I know that none of the pregenerated code has been altered. Thank's in advance!
Owen - in your line of code dist = str2num(get(handles.app.distEdit, 'string')); perhaps the app is unnecessary (it seems t...

plus de 7 ans il y a | 1

Réponse apportée
I get an error "Error : undefined function or variable 'randcoosen' " from line 1 and I dont fully understand what the lines 3 to 10 are doing? Thanks
Ifeatu - RandChooseN is not a built-in MATLAB function nor is (likely) part of any toolbox or from the File Exchage. The closest...

plus de 7 ans il y a | 0

Réponse apportée
GUI_1.get string from edit box 2.load .mat which has same name with string input
I've found that sometimes with code like user_name = get(handles.edit1, 'String'); user_name is a cell array (with one string ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
index out of bounds because size(eta)=[1,2]
dj - on the first iteration of your inner for loop j=1; for t=0:deltat:1400; for i=1:N; eta(j,i)=a(i)*cos(2*pi*f...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How do I upload a code to GitHub
Stephen - try reading through Set Up Git Source Control.

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How do I jump out of an endless loop in App Designer?
Hieu - try putting a drawnow or pause in your while loop so that it can be interruptible (which should allow the push button cal...

plus de 7 ans il y a | 3

| A accepté

Réponse apportée
I am confused as to how incorporate a value from another function in a different script, into this one where the y variable is now the input. The actual problem is below. Please show me how to solve this, and why.
Ann - wouldn't your Heaviside function be simply function [y] = heaviside(x) if x < 0 y = 0; elseif x > 0 y = 1; ...

plus de 7 ans il y a | 0

Réponse apportée
Hi beginner need help with first time trying to use "for loop" to make a graph
barry - since you are calling plot on each iteration of your for loop, then any graphics object that had been drawn on your prev...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Why is my code just filling row 100 values of a matrix?
reuben - the problem is with these lines of code for i = 1:100 a=1; q = zeros([100,11]); z = zeros([1,11]); On ...

plus de 7 ans il y a | 2

Réponse apportée
How do I get my connect four game in MATLAB to end when a win is detected?
Jordan - when a player wins, you probably want to set the win variable to zero. So instead of doing the equality check of win==...

plus de 7 ans il y a | 0

Réponse apportée
GUI, how to return result in the textbox?
Perhaps it should be app.TextArea.Text = sprintf('Yes'); instead? Please see uitextarea for details.

plus de 7 ans il y a | 0

Réponse apportée
Crop Code Loop End with a key Press
Murat - you could use the WindowKeyPressFcn callback for your figure to exit the loop if a certain key is pressed. For example, ...

plus de 7 ans il y a | 0

Charger plus