Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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. ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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,[])

plus de 11 ans il y a | 2

Réponse apportée
Modification of image using custom histogram
<http://www.mathworks.com/matlabcentral/fileexchange/28972-custom-shaped-histogram>

plus de 11 ans il y a | 0

Réponse apportée
Comparing two arrays to see if any similar values
doc ismember doc intersect Look at the _'rows'_ option.

plus de 11 ans il y a | 0

Réponse apportée
MATLAB Certification (associate and professional)
<http://www.mathworks.com/services/training/certification/index.html> Perhaps?

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
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

plus de 11 ans il y a | 1

| A accepté

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

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 2

Réponse apportée
Clear axes in GUI using cla reset does not work for secondary axes?
delete(allchild(handles.axes1))

plus de 11 ans il y a | 0

Réponse apportée
Matlab code for image binarization by Otsu's thresholding
doc graythresh doc imquantize

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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;...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
GA Toolbox maximization fucntion
maxfcn = @(x)-minfcn; Just negate the min function!

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

Charger plus