Answered
how to change a variable value in a while loop?
I don't see where in the loop you are retrieving the value of the slider. Each time through the loop you will have to retrieve ...

15 years ago | 0

Answered
write to file in exponential notation
Try FPRINTF instead of DLMWRITE.

15 years ago | 0

Answered
Plot SPIKES in MATLAB
I looked at your pdf, and it is not entirely clear where you want to plot the lines. This might give you a head start, put it a...

15 years ago | 2

| accepted

Answered
how to find sufficient help in MATLAB IMPORTANT - MATLAB admin
If you aren't getting sufficient help online or from the doc and you don't have a friend or coworker, I can only imagine that yo...

15 years ago | 1

Answered
arrayfun error
Please go back and reformat your question. Use the button that looks like this: {} *Code* on the code you pasted in the windo...

15 years ago | 0

| accepted

Answered
pass variable from a GUI to another
See the answer to question #26: < http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples>

15 years ago | 0

Answered
Calculation of autocorrelation matrix
I don't have the econometrics toolbox, but from this: <http://en.wikipedia.org/wiki/Autocorrelation_matrix> it looks like ...

15 years ago | 0

| accepted

Answered
Manipulation of matrices stored as { }
It looks like you could use <http://www.mathworks.com/help/techdoc/ref/repmat.html REPMAT> and/or <http://www.mathworks.com/matl...

15 years ago | 0

| accepted

Answered
how do i plot this?
What is A? Try this: function x = inf_sum(t,A) k = 1:200; [k,t] = meshgrid(k,t); x = ((-1).^(k-1).*((2*A)./(k*pi)).*si...

15 years ago | 1

| accepted

Answered
Retrieving data from slider
In your user defined function doesn't accept the same three arguments, you will get this error. . . . *EDIT* Open the GUI ...

15 years ago | 0

| accepted

Answered
Convert matrix to vector of structs
I am a little confused by your terminology. It seems that you are mixing the use of the terms 'stuctures' and 'fieldnames' of s...

15 years ago | 2

Answered
File name a function argument
1. Which is it? Do you want to have the filename passed or the data in the file? 2. Do you mean that you want to call a sc...

15 years ago | 0

| accepted

Answered
Multiple Data tips
Try this one out: <http://www.mathworks.com/matlabcentral/fileexchange/19877-makedatatip>

15 years ago | 0

| accepted

Answered
what's min0?
Would you mind expanding just a touch on the context? It could be a variable. min0 = 5;

15 years ago | 0

Answered
Trouble with editText functions in GUI
I don't think the problem is in the OpeningFcn of the figure. I don't see where you are updating the value of handles.new_image...

15 years ago | 0

Answered
Need Help with Edit Text box in Matlab GUI ;D
This is a perennial problem with MATLAB GUIs. About the only way to come close without going into the Java is to have the strin...

15 years ago | 1

| accepted

Answered
Are we voting enough?
I too have been thinking about this lately. Mostly because I noticed some really good answers, some might call them 'classics' ...

15 years ago | 2

Answered
Input changes in function
Please go back and format your code! Hightlight your pasted code, then click on the "{} Code" button. Next, clarify what you m...

15 years ago | 1

Answered
Printing data to a GUI
You can use an editable textbox. See this <http://www.mathworks.com/matlabcentral/answers/4205-opening-and-writing-to-a-text-wi...

15 years ago | 0

Answered
Indexing arrays with matrices
Now that is the kind of wondering that lead me to the project which lead me to the challenger! I think we can see what is going...

15 years ago | 0

| accepted

Answered
Problem Updating
Are you using a student edition? Perhaps this is not available on the student version.

15 years ago | 0

| accepted

Answered
Peak-finding function doesn't work.
What do you mean by, "Doesn't do anything?" Do you mean you get an error? I would imagine that the error is something about an...

15 years ago | 1

| accepted

Question


Hump-day Challenger - MATLAB Indexing
This challenger is very easy to state: Given an array of random size and dimensions whose only nonzero element is the first ele...

15 years ago | 5 answers | 6

5

answers

Answered
Double vs single
1- That would depend on how your dataset was generated. We really have no way of knowing that. 2- Use the DOUBLE function. ...

15 years ago | 1

| accepted

Answered
Find mod,median,total,average in Matrix
x = [80 90 70; 70 86 80; 90 80 82; 100 100 100]; mode(x,2) median(x,2) sum(x,2) mean(x,2) Also, see the help for thes...

15 years ago | 3

| accepted

Answered
file download
Go here: <http://www.mathworks.com/matlabcentral/fileexchange/4562-msopen> and click on the Download Now link. I have put it...

15 years ago | 0

Answered
fzero
It would probably help if you read the help for FZERO. Type this at the command line and read it: help fzero Once you read ...

15 years ago | 0

Answered
How to plot functions
Another way f = @(x) 1 + exp(-0.2*x).*sin(x+2); % Define the function. x = -20:.01:20; % Define an x range for the plot...

15 years ago | 0

Answered
How to give the total amount of row from a matrix as a value?
size(M,1) % The number or rows of an array. size(M,2) % The number of columns of an array. also, S = size(M); S(1) ...

15 years ago | 1

| accepted

Answered
Newtons Method Program?
From there I would guess you start implementing Newton's method to solve the problem. Where are you stuck?

15 years ago | 0

Load more