Réponse apportée
error when substituting value
Hao - your code above code is creating an array (this is your f) and not a table. So when you say something like x = 3; f(x) =...

presque 6 ans il y a | 0

Réponse apportée
Error in if condition
Ararat - don't use the elseif and just use two if statements (since you want to apply a specific action to both variables) if a...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
For and While loop give different answers
I formatted your code so it might be a little more clear what is going on. Here is the while loop code while Y1 < 30 cot =...

presque 6 ans il y a | 0

Réponse apportée
Arduino ... a lamp
duaa - not quite sure what the error message is but I suspect it has to do with your second condition in while(k1 || (K1 == 0))...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
I need help with grade calculator! thank you!!
bushra - it isn't clear what handles.out19 is or how it is set, one problem is with if (handles.out19 >70 && <=100) and all th...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Image rendering in GUI
Miroslav - rather than creating a new image (position) for the car on each iteration of the loop, try updating the YData (vertic...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Why doesn't Matlab know the variable from appdesigner despite it is globalized into matlab workspace ?
farzad - rather than using a global variable, can't you just use pwd to identify the current working directory? So the code in y...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Moving a square horizontally
Alexander - if you save the handles to the graphics objects that correspond to the square and the centre of the square, then you...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
please help me to translate wavread to audioread
David - from audioread, you could do (assuming that location is the name of (and path to) the audio file [x1,fs] = audioread(lo...

presque 6 ans il y a | 1

Réponse apportée
Bisection method (figuring out theta)
Ahmed - theta is your xmid and I think that you are calculating it correctly (see https://en.wikipedia.org/wiki/Bisection_method...

presque 6 ans il y a | 0

Réponse apportée
How to set timer queue to zero
Florian - I'm not sure if you can set the queue size to be zero (the documenation doesn't suggest that this is possible). An alt...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
check for keyboard press in while loop
raheem - since you have a figure, you could use the WindowKeyPressFcn to listen for a key press event (assuming that the figure ...

environ 6 ans il y a | 0

Réponse apportée
menu and vector equal
matt - you don't mention what is wrong with your code or if you have tried to fix the obvious bugs with it. Do you really mean t...

environ 6 ans il y a | 0

Réponse apportée
Index exceeds the number of array elements (0).
Ryan - if line 40 is T4=RobotConv(0, L(k), 0, 0); then the error message must be because of the index k into array L. Since a...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Making a GUI for playback of wav files
Marius - you seem to be programmatically creating your GUI and throwing in GUIDE-style callbacks. You need to assign the callbac...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to use uigetfile with filter set to "All files"..
Ahmed - if I use the following line of code uigetfile('*.*'); then "All Files" appears in the file browser window (I'm using a...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Taylor series for arctan
Abdullah - there are two parts to the code that you have shown. The code for the function and the sample code that can be used t...

environ 6 ans il y a | 0

Réponse apportée
plotting at gui axes
Osama - I guess that the majority of your code to plot the results is in the raafawcaa06 function and I suspect that, like your ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
MEX - 'Initialization From Incompatible Pointer Type' Warning
Rowan - rather than using a bool perhaps you could try to use a mxLogical instead? Something like plhs[0] = mxCreateLogicalMatr...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
GUI handles reference to non-existent field 'timer'
While your code in the Boid_GUI_OpeningFcn function is adding the timer to the handles structure, you are only modifying the "lo...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Flip stars pattern using recursive function HELP
Daniel - your code to print spaces (I think) for i=1:x fprintf('') end is not actually printing anything si...

environ 6 ans il y a | 0

Réponse apportée
Create subsets by a moving window.
Anna - assuming that the data from your seismic catalog is in the myData matrix, then you could do the following fileCount = 1;...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How do I correlate two matrices together
Nathen - if we assume that the matrices are of the same dimension (which they will be for this game) then you can use the positi...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to use min and max function in mex
A - The error message is telling you what is wrong expected 'double' but argument is of type 'double *'extern double __cdecl fm...

environ 6 ans il y a | 0

Réponse apportée
How to load .txt files into MATLAB from server?
Austin - what is the error that you are observing? Is it Error using cell Size inputs must be scalar. Note the code numfiles...

environ 6 ans il y a | 0

Réponse apportée
getting data from structure
Lichay - you could try something like speedX = arrayfun(@(k)S(k).speed(1), 1:length(S)) where we use arrayfun to iterate over ...

environ 6 ans il y a | 0

Réponse apportée
Globally Converging Newton's Method won't stop running
Julia - the above code may be overcomplicating Newton's Method. I think the code is trying to only allow for 50 iterations (due ...

environ 6 ans il y a | 0

Réponse apportée
How do I fix this so the Iteration will converge?
Savana - I haven't run the above code and so haven't stepped through it with the debugger, but if you were to do so, what would ...

environ 6 ans il y a | 0

Réponse apportée
Matlab GUI Error = "H must be the handle to a figure or figure descendent."
Burak - probably too late to help but in function serialEventHandler(hObject, eventdata, handles, bytesToRead) the hObject par...

environ 6 ans il y a | 0

Réponse apportée
How to close a MATLAB GUI by using count down timer?
Dongyan - the solution will differ depending upon how you have created your GUI (GUIDE, programmatically, or App Designer) but t...

environ 6 ans il y a | 0

| A accepté

Charger plus