Answered
why i got error when executing below code what can i do
aswathy - rather than pasting the *slic.m* code into your question, you could have just attached it using the paperclip button. ...

12 years ago | 0

Answered
Getting error matrix dimensions must agree when I run a stack that calculates the sin of the last number on the stack.
Nicole - a helpful statement to run before executing your code is *dbstop if error*. This will cause the code to pause at the l...

12 years ago | 0

| accepted

Answered
How to do this without blkproc function..?
Nimisha - it seems as if you are attempting to do some sort of JPG compression (given the use of *dctmtx* on the image) so try t...

12 years ago | 0

| accepted

Answered
Index out of bounds for simple nested for loop
Allie - since you are performing your own version of matrix multiplication, if you are multiplying P*Q, then the number of colum...

12 years ago | 0

| accepted

Answered
I am getting an error of “Undefined function 'Calllib' for input arguments of type 'char'.”
While Anna probably figured this out months ago, the function to call a method in a shared library is called <http://www.mathwor...

12 years ago | 0

Answered
Min Returns Value That is Not in List
Paul - are you somehow converting your numbers to strings? Try the executing the following statements in the Command Window ...

12 years ago | 2

| accepted

Answered
Problem with C++ DLL in Matlab: The function was not found in the library
Golnaz - while the library *MyProject.dll* may load successfully, are you sure there are no warnings being raised when you do lo...

12 years ago | 0

Answered
How to create 3d mesh plot in GUI?
Ksenia - you're correct in saying that the 3D function callback doesn't recognize the *x* and *y* (or any other) variables from ...

12 years ago | 0

Answered
Newton's Method for nonlinear system vector operation.
Lechen - if I run through your code, I observe the following error Error using + Matrix dimensions must agree. Error...

12 years ago | 0

| accepted

Answered
Mex Link Failure: Undefined Symbols for Architecture
Artin - a couple of the warnings are ndfun.c:403:7: warning: implicit declaration of function 'zgemm_' ndfun.c:614:4: warn...

12 years ago | 2

| accepted

Answered
How to get rid of the error: Error using horzcat. Dimensions of matrices being concatenated are not consistent.
Keegan - you don't have to change the value of *store*, just change how you are concatenating *store* with *diffpcm*. Note ...

12 years ago | 4

Answered
Two optional parameters mutually exclusive
Thales - you could just pass a structure as the second input to your function, and depending upon which field has been defined, ...

12 years ago | 1

| accepted

Answered
Movie function via getframe(gcf) displays multi-axis figure incorrectly
Jonathan - have you verified that the avi output from *movie2avi* does in fact produce a video where the extra axes appears? ...

12 years ago | 0

| accepted

Answered
If a fft of vector x is plotted then what would be the x-axis?
The x-axis is frequency. You can calculate it as freqHz = (0:1:length(X_mag)-1)*Fs/N; where *Fs* is your sampling rate (...

12 years ago | 2

| accepted

Answered
Why this program generates error..?
Nimisha - it would be helpful to include what this program is supposed to do, what block size you are using (second input to thi...

12 years ago | 0

Answered
listbox, filtering with 2 conditions
Jason - just use <http://www.mathworks.com/help/matlab/ref/sprintf.html sprintf> to include *CM* in the filter filenameFilte...

12 years ago | 0

Answered
Variable in a string name
Andrew - try using <http://www.mathworks.com/help/matlab/ref/fullfile.html fullfile> instead foldername = 'W:\folder'; fil...

12 years ago | 1

| accepted

Answered
Getting index outta bounds error for line 38 cant find out why
Brad - if you step through the code, using the debugger, you will notice that on the first iteration of the *for* loop, *n==1*, ...

12 years ago | 0

| accepted

Answered
GUI: adjust axes values with 2 different sliders
Marcel - you almost have the correct code, you just need to pass a vector as the value for the *Xlim* parameter. Since *slider1...

12 years ago | 0

| accepted

Answered
how can i rotate many ellipsoids
Imola - the *drawEllipsoid* function accepts a input vector of nine elements. The first three correspond to the centre of the e...

12 years ago | 0

Answered
how to show the title in the imtool figure?
According to the documentation of <http://www.mathworks.com/help/images/ref/imtool.html?searchHighlight=imtool imtool>, if you d...

12 years ago | 2

Answered
Image Encryption using RSA
Anisha - there may be two problems with the above code. The first is the iterating over the pixels of the input image, in this...

12 years ago | 0

| accepted

Answered
How do I plot a 3D Box containing points?
Lamin - consider using <http://www.mathworks.com/help/matlab/ref/plot3.html plot3> to draw your box (and later, the 10 points). ...

12 years ago | 3

Answered
Why am I having trouble connecting to a SQL database using JDBC and Windows Authentication?
Mathew - if, in the Command Window, you type methodsview(com.microsoft.sqlserver.jdbc.SQLServerDriver) what do you see? ...

12 years ago | 0

Answered
Hello guys....i am working on embedded project for that i want to display the result generated from Matlab using serial port through LCD already programmed with microcontroller.
Summet - please see <http://www.mathworks.com/help/matlab/ref/serial.fwrite.html serial write> for details. According to the do...

12 years ago | 0

Answered
Scientific computing loops and iterations
George - I did notice a couple of pieces of your code which I'll just highlight here. In your *for* loops you do the following ...

12 years ago | 0

| accepted

Answered
impixel info - just coordinates
Moved comment to here: From <http://newsgroups.derkeiler.com/Archive/Comp/comp.soft-sys.matlab/2009-07/msg01680.html impixeli...

12 years ago | 0

| accepted

Answered
How can I use tblwrite in Matlab
Summary of above discussion - the error message *Number of case names must equal number of data rows* is indicating that there i...

12 years ago | 0

| accepted

Answered
Help with fourier transform
Suppose the following (I'm assuming that you have done something similar for *t*, *s*, and *nu*) Fs = 8192; % sa...

12 years ago | 0

| accepted

Answered
How to change the iteration value of for loop by the use of edit text box?
Shanmukha - check your usage of *guidata* in the *segments_Callback*. You should be saving the updated version of *handles* and...

12 years ago | 0

| accepted

Load more