Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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. ...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 1

| aceptada

Respondida
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...

más de 11 años hace | 1

| aceptada

Respondida
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,[])

más de 11 años hace | 2

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 2

| aceptada

Respondida
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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 2

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

más de 11 años hace | 0

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

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

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

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

Respondida
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;...

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 0

Respondida
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...

más de 11 años hace | 3

| aceptada

Respondida
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...

más de 11 años hace | 0

| aceptada

Respondida
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...

más de 11 años hace | 1

Respondida
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...

más de 11 años hace | 0

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

más de 11 años hace | 0

Cargar más