Réponse apportée
How can I resolve this problem regarding nested functions?
Cyrus - from Requirements for Nested Functions, You cannot define a nested function inside any of the MATLAB® program control st...

presque 6 ans il y a | 0

Réponse apportée
How to set togglebutton by another togglebutton
Miroslav - one problem is with the two lines set(handles.TB_med_ZV, 'Value', 'Min'); %turn off toggle buton and set(handles....

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Break statement inside an if statement
Darragh - the error throws an error and displays a message, so the break will never be called...and so the error message makes s...

presque 6 ans il y a | 0

Réponse apportée
How can I input "function Txy (Z1,Z2,P)" properly?
Kalynn - it sounds like you are calling the function from the command line like >> function Txy (Z1,Z2,P) The function keyword...

presque 6 ans il y a | 0

Réponse apportée
How do I ignore characters in a text file
Cole - since this is homework, we can only give out hints...so there is an example at textread that describes how to ignore a sp...

presque 6 ans il y a | 1

Réponse apportée
Splitting piano song .wav file into sections is resulting in the same frequency instead of different frequencies.
Voltarian - since you have the audioBlock (of one second's worth of data) wouldn't you just use the code that you already have t...

presque 6 ans il y a | 0

Réponse apportée
Real Time Data Plot
mehmet - every time you call plot you create a new graphics object, so you could just re-use a single plot object on every itera...

presque 6 ans il y a | 0

Réponse apportée
Sum of values stored in an array of handles
Juri - the only problem that might exist for you (it did for me when i tried this) was that get(bl(i,:),'value') returned a c...

presque 6 ans il y a | 0

Réponse apportée
Why won't my MATLAB GUI code work?
Ellen - I'm guessing the error has something to do with the image_selected variable not being defined when the popup menu callba...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Unrecognized function or variable 'X', where is the error ? I have tired all the things and solution but the problem wont fix , please help its urgent Thank you
harshit - you are calling your function, from the command line as >> computeCost(X, y, theta) which is fine as it does match t...

presque 6 ans il y a | 0

Réponse apportée
Save figure userdata to a workspace variable
Johannes - instead of using the ButtonDownFcn for the button, just use Callback. In this example, when the user presses the butt...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to get output multi from GUI ?
Thapakorn - try the following code function Testcal2 fig = uifigure('Name','program'); fig.Position = [100 100 800 50...

presque 6 ans il y a | 0

Réponse apportée
Applying a string of user inputs within a while-loop
michael - for the error that you mention ("At least one END is missing: the statement may begin here"), this can be fixed by add...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Timer "Busymode" "queue" not finishing TimerFcn
Tobias - it has been a couple of years but...the default execution mode for a timer is "single shot", so the timer will just fir...

presque 6 ans il y a | 1

Réponse apportée
how do I change Matlab GUI components color?
fatih - what is the full error message that you are observing? Are you using GUIDE, App Designer, or have you created your GUI p...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Please help me to correct my for-loop
Behzad - I don't really understand why in your code you have variables named table and then tbl. Perhaps both are the same varia...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Insert Background Image Behind Subplots
Hannah - How do I add a background image to my GUI or figure window? provides a good answer on how to add a background image to ...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Communication between MATLAB code and GUI
Miroslav - is the "only" difference between https://www.mathworks.com/matlabcentral/answers/511717-image-rendering-in-gui and th...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Writing code for bisection method; then storing values for each iteration of the loop.
Bradley - look closely at the condition for the while loop while err > toll . Since toll (the tolerance) is fixed, how or wher...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to write a loop for doing this?
Behzad - look for what is common. Your code has twelve months, so you should be able to replace that with a loop. Perhaps someth...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to fix "unrecognized variable error"-
Rita - the error message "Unrecognized function or variable 'ifdoflimit'. Error in truss2D_nlcon (line 154) if ifdoflimit...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
About Fast Fourier Transform and how to do this operations
Osman - since this is homework, we can only give out hints. See audiorecorder for recording an audio sample, audiowrite to write...

presque 6 ans il y a | 0

Réponse apportée
reading and writing the same Excel file in app designer
ZM - check to see if you have permission to read and write to that file. If you do, then consider using readtable instead of xls...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Vector with if condition
Klaudio - so with your sample inputs and changing the last line assignment to c(i) = RH(j); then I see (like you) that all eleme...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Help ploting different particles in a box
If the last step is to just calculate a new speed after the shock then this would apply to a single particle only. So we would m...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
comparing two columns of a table in MATLAB
Annick - how about you remove the loop and just do Comparison = Table1.Interval1 == Table1.ActivityCode1; Wouldn't Comparison ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to stock a vector in a vector
Maxime - try doing X = zeros(3,1000); for i=1:3 X(i,:) = -(log10(1-R)./water_u(i)); end where we use the : to indicate ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How do I go about increasing the number of arguments in my code? Or how should I fix this issue?
Mitch - there are a couple of errors around this block of code x = linspace(1:n_elem:30); O(x) = O_int+(x-1)*O_inc; X_1(x) = ...

presque 6 ans il y a | 0

Réponse apportée
Hello everyone! this is the first time I am using GA and I encountered with this message:Failure in initial user-supplied fitness function evaluation. GA cannot continue.
amir - you don't need to supply the f, those f values that have been attained in another code. The genetic algorithm will provid...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Why this for loop is not working?
Amit - a is a row array but the code in the loop is treating it like a column array. Try changing the code to for i = 1:5 ...

presque 6 ans il y a | 0

| A accepté

Charger plus