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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 2

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 2

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 3

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

Mehr laden