Answered
how to store and display values coming from the for loop to an array variable.
Aishwarya - if each iteration of your loop creates a variable (of some kind) that you want to store or save for further processi...

27 jours ago | 0

Answered
Graph tiltle with multiple variables over 2 lines
Franc - try using sprintf to create one or more lines that you can use in your title. For example, myTitle = sprintf('first row...

27 jours ago | 0

| accepted

Answered
How do i sum the total elements in a vector, not whats in each element
caitlin - if your movements are in a matrix, say nx2, where each row is a coordinate for the movement, then the number of moveme...

27 jours ago | 0

| accepted

Answered
How to add cell array elements iteratively?
Hassan - first, please rename the sum variable since there is a built-in MATLAB function of the same name. If you want to add al...

27 jours ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 25).
benjamin - isn't H of length Lx (or Ly since identical) and is an array? Treating it like a matrix as H(a,b) would then lead to ...

28 jours ago | 0

Answered
How do I prompt a user to input a number of values for their future inputts?
Mallard - use a for loop. For example, numYears= input('please enter number of years: '); cashFlows = zeros(numYears, 1); i...

28 jours ago | 1

| accepted

Answered
Append matrix with subsequent images
Kevin - you may want to consider not using global variables. Instead use the handles structure to save the data that you want ot...

28 jours ago | 0

| accepted

Answered
i get error using plot and error in color/lineup and i don't know what to do i have already attached the file if someone wanna see i want my program to run and show the high pass plot
Mohammad - your attached file does not include the pushbutton2_Callback nor do I see any reference to an f or h. I can reproduce...

28 jours ago | 0

Answered
fprintf not displaying in loop
hubert - you may need to clarify what you mean by if its outside of the loop, it prints fine, but not inside. If I run your code...

28 jours ago | 0

Answered
how to get sequence of values for 'u' in the for loop using the 'save control.mat u' syntax
Sharath - consider collecting all of the u values in a matrix and then saving it to file afterwards. For example, % your code ...

environ un mois ago | 0

| accepted

Answered
I need help with my GUI
saeeda - rather than using a loop to capture your images, consider using a timer that executes every five. (By the way, a proble...

environ un mois ago | 0

Answered
function J= GA_PID(kpid,opt) Error: Function definition not supported in this context. Create functions in code file.
Lin - I observe that same error message if I copy your code and paste it into the MATLAB command window. The error message is te...

environ un mois ago | 0

Answered
why my picture is 0s ?
Bekhtaoui - you say that the function "my_sct" takes an image like input(image2 result from another program). What does this oth...

environ un mois ago | 0

Answered
Unable to get correct 2θ value from tan2θ = (2*a12)/(a11-a22) by writing as p= A(1,1) - A(2,2) q= 2 * A(1,2) theta = atan (p/q).Please help
Amar - I think that you should have q/p instead so that theta = atan (q / p) and theta will be -0.9272. Not sure if you still ...

environ un mois ago | 1

| accepted

Answered
Serial interrupt to automatically update edit boxes,
Corne - in the line of code where you assign the callback, you need to make clear that another parameter is to be pased in. This...

environ un mois ago | 0

Answered
Patch - Not enough input arguments
Axel - from patch you need to either provide a C the polygon colour specified as a scalar, vector, matrix, or a color name which...

environ un mois ago | 0

Answered
How to delete a pushbutton with a given 'String' from a .fig file
Pankaj - yes, I see that button. I also see, in your m file, lots of pushbutton callback function that have no bodies which seem...

environ un mois ago | 0

| accepted

Answered
Periodic function. How would I make this function repeat itself for, let's say, -1 to 3 seconds or something?
A for loop could be used. Perhaps something like for t=-1:3 % use t in your code end

environ un mois ago | 0

Answered
how can we plot this sine wave
sesha - the only difference between this and the usual sine curve is that it is "inverted". Try doing x = -pi:0.01:pi; y = -1 ...

environ un mois ago | 0

| accepted

Answered
writing loops to download files using Matlab websave
alpedhuez - if you want to write a loop to download all files in the range of 20080401 to 20100101, you could do something like ...

environ un mois ago | 0

Answered
How to do If, Then, and Edit Field Text?
Jennifer - you haven't said what your error is (if there is one) or whether the problem is that no text appears in the expected ...

environ un mois ago | 0

Answered
Audio - Wah wah effect - 'Integer Operands Are Required for Colon Operator When Used as Index'
Ditte - what is the intent of this code while(length(cutoff_freq) < length(input_sound)) cutoff_freq = [cutoff_freq(max_f:...

environ un mois ago | 0

Answered
Loading & Plotting Multiple Files From Directory
countryroad - what is the error message that you are observing? From your code that creates the files full_filename = fullfile(...

environ un mois ago | 0

Answered
Looking to generate an array (grid) of pushbuttons in a figure
Ruger28 - you can get the string value of the button from within the callback. Just remove the input (kk?) as an input parameter...

environ un mois ago | 0

| accepted

Answered
I cannot plot the Bisection Method Code
hgrlk - the problem is that your m is equal to the size of your serr and sf plus one. So when you call plot(1:m,serr,'-o') the...

environ un mois ago | 0

| accepted

Answered
legend add title or more information
STPG - see title for details on how to add a title to your axes. If your loop is updating one axes, then I suggest putting this ...

environ un mois ago | 0

Answered
Creating a delete button in App Designer
Leah - your delete button callback could look something like function DelButtonPushed(app, event) app.OutButton.Text = app...

environ un mois ago | 0

| accepted

Answered
placing row values in columns
ayesha - if a is your 10x16 array and you want to combine subsequent rows, you can try using reshape as a = randi([0,1], 10, 16...

environ un mois ago | 0

| accepted

Answered
How to make a function
Nima - what is giving the error Not enough input arguments? How are you calling your function? If I just call it like >> math_D...

environ un mois ago | 0

Answered
How can I change a plot based on the file name?
Alexis - depending upon your version of MATLAB, you can use use either strfind or contains to determine if a substring exists wi...

environ un mois ago | 0

Load more