Answered
how can i make a surf from 36 points?
You need to use meshgrid: doc meshgrid to create outputs of the right dimensionality

11 years ago | 0

Answered
How to vectorize multiple images in 3D matrix?
myImages = cat( 3, ones(10), 2*ones(10), 3*ones(10), 4*ones(10) ); imSize = size( myImages, 1 ) * size( myImages, 2 ); ...

11 years ago | 0

| accepted

Answered
Code Previously Worked, Now keep getting "Unexpected Matlab Expression"..
Have you defined a variable called vehicleModel? If so Matlab will attempt to index into that variable with your arguments ra...

11 years ago | 0

Answered
How can I import .m files in a sequential way with Editor?
open( str ); should do the trick.

11 years ago | 0

Answered
Display Multiple Images in Pages GUI
You can create 10 axes on a panel or straight on the figure. Then show the first 10 by default. When you click next replace ...

11 years ago | 0

| accepted

Answered
Order workspace variables by order of appearance?
I'm fairly certain there isn't. Generally I give my variables meaningful names so I naturally want to look for that meaningful ...

11 years ago | 0

Answered
why does UIOPEN opens my GUI two times!
Loading an arbitrary 'handles' structure into a GUI to overwrite that of the GUI is not at all a good thing to do. I cannot thi...

11 years ago | 0

| accepted

Answered
MCR version compatibility with higher matlab version
You must use the same MCR version as that of the Matlab version from which the executable was built. If you upgrade your Matlab...

11 years ago | 0

| accepted

Answered
select folder by its name?
n = 10; d = uigetdir( [ 'C:' filesep 'A' filesep num2str(n) ] ) should work. There are other ways to compose a filena...

11 years ago | 0

| accepted

Answered
how to run a script within a GUI file?
What do you mean by "doesn't even start to work"? Does it produce error messages (in which case please post them) or do you j...

11 years ago | 0

Answered
Is it possible to call a subfunction inside a function mscript?
You can call a sub-function from a main function in an m-file. You cannot call a sub-function from a script (what would the f...

11 years ago | 1

Answered
Accessing data in cell arrays
Simplest way to learn these things is to try it on the command line and see what the result is. C = cell(2,2) C = ...

11 years ago | 0

Answered
how to convert unit8 type images to logical type
imageArrayLogical = cellfun( @(im) logical(im), imageArray, 'UniformOutput', false ); or you can just do it in a for loop i...

11 years ago | 0

Answered
Unable to plot. Problem with this error "Conversion to double from function_handle is not possible."
You are attempting to plot a function handle. The plot function expects data, not a function to evaluate. Your definition ...

11 years ago | 0

Answered
prarameters tobe passed for building GMM
If you use the 'fitgmdist' function from the Statistics Toolbox then you pass in all the data as a single multi-dimensional arra...

11 years ago | 0

Answered
What are some ways to improve Matlab?
If you have a license then you can simply think up a project of interest and start working on it. Alternatively you can try som...

11 years ago | 2

Answered
linkaxes with different x scales
xLimListener = addlistener( hAxes1, 'XLim', 'PostSet', @(src,evt) disp( 'X Changed' ) ) yLimListener = addlistener( hAxes1,...

11 years ago | 0

Answered
What vector will generate command - fliplr(5:5:10)?
10:-5:5 assuming you are talking more generically. This example is rather degenerate and can be replaced by: [10 5] ...

11 years ago | 1

| accepted

Answered
Calculations using Inline Functions
I've never used 'inline' and didn't even know it existed, but the documentation says: 'inline will be removed in a future rel...

11 years ago | 1

| accepted

Answered
In MATLAB how is it possible to select a certain data portion from a big file of data?
If you have it in memory then just e.g. A = rand(500,500,500); figure; plot( A(:,:,33) figure; plot( A(22,:,:) fig...

11 years ago | 0

| accepted

Answered
How to convert large sized 3D matrix to small sized 3D matrix
doc interp3 should do the job

11 years ago | 0

| accepted

Answered
Converting some matlab to C (or C++)
"What does sqrtMinusOne output as in debug? Is it precisely 0 - 1i? If not then I assume the error is just a rounding erro...

11 years ago | 0

| accepted

Answered
index out of bounds because numel(a)=7, please help?
Given the code I am surprised you reached a(8) before it crashed! Incidentally is that the exact code you ran? for k = 10 ...

11 years ago | 0

Answered
Can anybody tell me what is the mistake in my code?
Take a look at the dimensions of 'arr' after the line: arr=xlsread(xlfile); and compare it to sss. If at some iterati...

11 years ago | 0

Answered
random matrix with fix summation
You can just create 7000 random indices instead and place the 1s at those indices e.g. if you have a [500,500] matrix you ha...

11 years ago | 2

Answered
Why does my plot not display?
Both day_counter and savings are scalars so it just plots a single point.

11 years ago | 0

Answered
Plot style '--' in 2014b
Try switching to use hardware opengl using: opengl( 'hardware' ) (More details in my comment to the original question).

11 years ago | 1

| accepted

Answered
delete nan values and the corresponding value in another array
nanIdx = find( isnan(A) | isnan(B) | isnan(C) ); A(idx) = NaN; B(idx) = NaN; C(idx) = NaN

11 years ago | 0

| accepted

Load more