Feeds
已回答
what does sin(pi*[-Fs:1/Fs:Fs] )mean?
Let's break it down into smaller chunks: This line creates a vector from -Fs to Fs with increments of 1/Fs vector = -F...
what does sin(pi*[-Fs:1/Fs:Fs] )mean?
Let's break it down into smaller chunks: This line creates a vector from -Fs to Fs with increments of 1/Fs vector = -F...
12 years 前 | 2
已回答
Button output in GUI
It seems like having all of the buttons share a callback is a good idea for this situation. One good way to share data betwee...
Button output in GUI
It seems like having all of the buttons share a callback is a good idea for this situation. One good way to share data betwee...
12 years 前 | 1
已回答
How can I reduce the time complexity of this matlab code.. Its taking lot of time to execute when an image is fed as input.
Also, try to avoid using |eval|. Look at this link to see why: <http://www.mathworks.com/matlabcentral/answers/51946-systemat...
How can I reduce the time complexity of this matlab code.. Its taking lot of time to execute when an image is fed as input.
Also, try to avoid using |eval|. Look at this link to see why: <http://www.mathworks.com/matlabcentral/answers/51946-systemat...
12 years 前 | 0
已回答
Not enough inputs error
Pressing the "Run" button on this class runs |card| in the Command Window. This is being called with no inputs, but according to...
Not enough inputs error
Pressing the "Run" button on this class runs |card| in the Command Window. This is being called with no inputs, but according to...
12 years 前 | 0
已回答
how can i append a matrix n times
You are looking for the |repmat| function. B = [1 2]; C = repmat(B,1,600) This will repeat matrix |B| for 1 row and...
how can i append a matrix n times
You are looking for the |repmat| function. B = [1 2]; C = repmat(B,1,600) This will repeat matrix |B| for 1 row and...
12 years 前 | 1
| 已接受
已回答
How we can calculate using MATLAB for small values?
You must first create an anonymous function to be able to evaluate the function like that: This means "f" is a function with ...
How we can calculate using MATLAB for small values?
You must first create an anonymous function to be able to evaluate the function like that: This means "f" is a function with ...
12 years 前 | 0
已回答
plotting multiple boxplots in the same figure window
Are you familiar with the SUBPLOT function? This may be what you are looking for… <http://www.mathworks.com/help/matlab/ref/s...
plotting multiple boxplots in the same figure window
Are you familiar with the SUBPLOT function? This may be what you are looking for… <http://www.mathworks.com/help/matlab/ref/s...
12 years 前 | 1
已回答
financial portfolio optimization using fmincon?
If you want the sigma passed into POPTIM to be also passed into PSIGMA, you do not need to specify sigma as an input parameter t...
financial portfolio optimization using fmincon?
If you want the sigma passed into POPTIM to be also passed into PSIGMA, you do not need to specify sigma as an input parameter t...
12 years 前 | 0
已回答
reshaping data to fit contour plot requirements
This strongly depends on how the data in "z" is stored. If the first 31 values in "z" represent the values for x = 30 & y = 15:4...
reshaping data to fit contour plot requirements
This strongly depends on how the data in "z" is stored. If the first 31 values in "z" represent the values for x = 30 & y = 15:4...
12 years 前 | 0
| 已接受
已回答
GUIDE Callbacks using function handles or strings
In the GUI's OpeningFcn, you can try: set(handles.object,'Callback',@cb) and just replace "object" with the actual tag o...
GUIDE Callbacks using function handles or strings
In the GUI's OpeningFcn, you can try: set(handles.object,'Callback',@cb) and just replace "object" with the actual tag o...
12 years 前 | 0
已回答
uipanel does not appear in GUI
The value for the FontSize property must be numeric, not a character string. Remove the single quotes around the _12_, and that ...
uipanel does not appear in GUI
The value for the FontSize property must be numeric, not a character string. Remove the single quotes around the _12_, and that ...
12 years 前 | 2
| 已接受
已回答
How to output result to static text uicontrol?
This is likely not working because diff(f) is of type SYM, and the SET function is expecting a string of type CHAR. In order to ...
How to output result to static text uicontrol?
This is likely not working because diff(f) is of type SYM, and the SET function is expecting a string of type CHAR. In order to ...
12 years 前 | 1
已回答
Subplot a matrix within a single Graph
For some random data of 40 rows, 4 columns, this plots a line plot data = rand(40,4); for i = 1:size(data,2) ...
Subplot a matrix within a single Graph
For some random data of 40 rows, 4 columns, this plots a line plot data = rand(40,4); for i = 1:size(data,2) ...
12 years 前 | 0
已回答
How do I create a vector of 20 elements with the numbers 1,2,3,4,5 repeated four times?
You can create a smaller vector of the repeating entries and then repeat this vector with the REPMAT function for 1 row and 4 co...
How do I create a vector of 20 elements with the numbers 1,2,3,4,5 repeated four times?
You can create a smaller vector of the repeating entries and then repeat this vector with the REPMAT function for 1 row and 4 co...
12 years 前 | 2
已回答
adding folder to the path option
Adding a folder to the MATLAB path adds it only for the current MATLAB session. In order to save this path for a future MATLAB s...
adding folder to the path option
Adding a folder to the MATLAB path adds it only for the current MATLAB session. In order to save this path for a future MATLAB s...
12 years 前 | 1
已回答
uicontrol assigning values a a user defined date
A couple of things: # The switch/case algorithm you have there does not hold true for many of the months, e.g. there are 31 d...
uicontrol assigning values a a user defined date
A couple of things: # The switch/case algorithm you have there does not hold true for many of the months, e.g. there are 31 d...
12 years 前 | 0
已回答
User-Defined Function Help?
Please see the following related question/answer: <http://www.mathworks.com/matlabcentral/answers/53100#answer_64689>
User-Defined Function Help?
Please see the following related question/answer: <http://www.mathworks.com/matlabcentral/answers/53100#answer_64689>
12 years 前 | 0
已回答
how to automatically import multiple excel files, each contains 3D coordinates, into matlab?
The naming model that you suggest is not really the best way to name your variables. Consider the following: Get the list of ...
how to automatically import multiple excel files, each contains 3D coordinates, into matlab?
The naming model that you suggest is not really the best way to name your variables. Consider the following: Get the list of ...
12 years 前 | 0
已回答
How to use find function to get log of the values?
Use logical indexing to accomplish this: A = [8 14 3; -13 1 42; -39 -8 15]; B = zeros(size(A)); Valid indices are...
How to use find function to get log of the values?
Use logical indexing to accomplish this: A = [8 14 3; -13 1 42; -39 -8 15]; B = zeros(size(A)); Valid indices are...
12 years 前 | 0
| 已接受
已回答
Not Enough Input Arguments
Your function defines 2 input arguments (w and theta_deg). When you run Mec134function, you must specify exactly two inputs, oth...
Not Enough Input Arguments
Your function defines 2 input arguments (w and theta_deg). When you run Mec134function, you must specify exactly two inputs, oth...
12 years 前 | 25
| 已接受
已回答
Changing multiple structure vales
% Setup structure "S" S.a = 11; S.b = 22; S.c = 33; S.d = 44; % This is the list of fields in "S" that I ...
Changing multiple structure vales
% Setup structure "S" S.a = 11; S.b = 22; S.c = 33; S.d = 44; % This is the list of fields in "S" that I ...
12 years 前 | 0
已解决
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
12 years 前
已解决
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
12 years 前
已解决
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
12 years 前
已解决
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
12 years 前
已解决
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
12 years 前
已解决
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
12 years 前
已解决
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
12 years 前
已解决
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
12 years 前
已解决
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
12 years 前