Answered
Is "ix = 1:[4:12]" legal?
Documented: web(fullfile(docroot, 'matlab/ref/colon.html')) _If you specify nonscalar arrays, MATLAB interprets j:i:k as...

11 years ago | 0

| accepted

Answered
How to make next page in GUI
probably (j-12); Which will not always be 1:12. Instead: count = 0; for j = jj:etc count = count+1; subp...

11 years ago | 0

Answered
Referencing specific dimensions of an array
x(:,4) = all(bsxfun(@eq,x(:,1),x(:,2:3)),2) The fourth column will not be true where the first three columns are equal. ...

11 years ago | 0

| accepted

Answered
How to make next page in GUI
I probably doesn't remember what j is. Put a breakpoint on the line that isn't working, run it, and see what the variables ar...

11 years ago | 0

Answered
Contour Plot to Image.jpg
You need to save it somewhere else or have write-permissions for that directory. You could change the directory settings, or ru...

11 years ago | 0

Answered
Trying to change name of image file in for loop - use %s?
Use the filename as the following for ii = 1:10 filename = ['trial' num2str(ii) '.jpg'] imwrite(I,filename) en...

11 years ago | 1

| accepted

Answered
Can I change Matlab libraries in a program
Are you using |setenv| (from within MATLAB) to set LD_LIBRARY_PATH to the environment variable? Just having it in the workspace...

11 years ago | 1

| accepted

Answered
How to extend a array by multiplying internal values e.g. [1 2 3 4] to [1 1 1 2 2 2 3 3 3 4 4 4]?
B = kron(A,ones(1,4)) Or B = reshape(repmat(A,4,1),1,[])

11 years ago | 2

Answered
Modification of image using custom histogram
<http://www.mathworks.com/matlabcentral/fileexchange/28972-custom-shaped-histogram>

11 years ago | 0

Answered
Comparing two arrays to see if any similar values
doc ismember doc intersect Look at the _'rows'_ option.

11 years ago | 0

Answered
MATLAB Certification (associate and professional)
<http://www.mathworks.com/services/training/certification/index.html> Perhaps?

11 years ago | 0

Answered
In MATLAB, How can I set code or a specific task to be executed by specific one or more core of a cpu?
If you have the Parallel Computing Toolbox, |spmd| is the construct you will want. You can use |labindex| to determine the work...

11 years ago | 2

| accepted

Answered
Is there a way to identify each pixel of an image. Help needed!
Sure, a |for|-loop! I = your_image for ii = 1:numel(I) if I(ii) do_something_with(I(ii)) end end

11 years ago | 1

| accepted

Answered
copyobj changes between R2012 and R2014
In the release notes: <http://www.mathworks.com/help/matlab/release-notes.html> Go to: *MATLAB->Graphics->Compatibility...

11 years ago | 0

Answered
Switch case inside of another switch case
x = 2; y = 3; switch x case 1 disp 1 case 2 switch y case 2 disp H...

11 years ago | 2

Answered
Clear axes in GUI using cla reset does not work for secondary axes?
delete(allchild(handles.axes1))

11 years ago | 0

Answered
Matlab code for image binarization by Otsu's thresholding
doc graythresh doc imquantize

11 years ago | 0

Answered
Showing GIF images in GUI
for j=1:12 [I cmap] = imread(strcat(path,filename),'frames','all'); ax = subplot(4,3,j); image(I); colorma...

11 years ago | 0

| accepted

Answered
Locate Y given X and display on the graph
h = plot(cumsum(rand(1,10)),rand(1,10)); valueICareAbout = 3; yICareAbout = interp1(h.XData,h.YData,valueICareAbout) % R...

11 years ago | 0

Answered
How to write data to a specific column of an excel sheet?
Use the _'Range'_ option in |xlswrite|; the fourth input: doc xlswrite

11 years ago | 0

Answered
getting support for matlab installation not via phone for student license
Hi, This is the response from out TS people. All install support worldwide for student version is intended to come from Nat...

11 years ago | 0

Answered
Displaying images in uipanel
imshow(ORI_IMG,'Parent',handles.axes1) Since the _HandleVisibility_ for both axes if not _'on'_, they can never become the ...

11 years ago | 0

| accepted

Answered
DelaunayTri still hangs or crashes MATLAB, any workaround?
On my Win7x64 laptop, R2014b: tic x = [ 15.5; 15.872042489999444; 14.0; 15.5; 16.35853698188107; 15.385547998117818;...

11 years ago | 1

| accepted

Answered
GA Toolbox maximization fucntion
maxfcn = @(x)-minfcn; Just negate the min function!

11 years ago | 0

| accepted

Answered
using a function as the "main" script
I use scripts for simple one time things and for examples that I want to publish, or examples that document the use of a functio...

11 years ago | 0

Answered
Plotting a 2D Contour from data (A variable with its XY coordinates)
% Synthetic Data xy = rand(20,2); intensity = rand(20,1); % Interpolate to grid interpolant = scatteredInterpolant...

11 years ago | 3

| accepted

Answered
Controlling Arduino via Matlab GUI
Yes to all questions. You can specify the CData of a button to be whatever you want. To control up and down of arrow keys, y...

11 years ago | 0

| accepted

Answered
Why does running this function result in " Unexpected MATLAB operator" at the first line of measurment?
First: numErrs = numErrs + sum(ỹ=u) One = sign is assignment, so you are trying to assign u to y which is illegal. You...

11 years ago | 1

Answered
Problem getting slices of a volume data set along an arbitrary orientation
You should be able to do this by applying the operations to a |meshgrid| of values. Generate a grid for your coordinates and th...

11 years ago | 0

Answered
CONVERT TEXT TO IMAGE
>> imshow(insertText(zeros(200,700),[100 100],'Hello World','BoxOpacity',0,'FontSize',50,'TextColor','r')) <</matlabcen...

11 years ago | 0

Load more