Answered
How to fix all instances of one particular mlint (code analyzer) warning?
Please contact support and submit an enhancement request for this! As for a workaround: [inform,filepaths]=checkcode('fi...

13 years ago | 0

Answered
Modify matlab .m functions copyright issues
Since this is a legal and licensing question, I would recommend contacting support.

13 years ago | 2

| accepted

Answered
If Regexp matches return 1 otherwise 0 syntax
doc strfind %?

13 years ago | 1

Answered
Error When generating C code from Matlab file using Matlab Coder?
<http://www.mathworks.com/help/releases/R2013a/coder/gs/setting-up-the-c-c-compiler.html>

13 years ago | 0

Solved


select the primes of a vector
Find the prime numbers in a vector

13 years ago

Answered
automaticaly resize subplots when ylabels removed
<http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=tight+subplot FEX:query:tight subplot>

13 years ago | 0

| accepted

Answered
How to do automatic image cropping?
# Threshold ( |graythresh()| and |im2bw()|) # Get the boundingbox ( |regionprops()| ) # Extract it using simply indexing

13 years ago | 0

Answered
Can I access code underneath a Matlab App?
The App will install in a folder (named after the App) in the Apps directory (this can be found by going to *Home Tab* -> *prefe...

13 years ago | 1

Answered
How do I limit the repmat?
One way: str = 'MATLAB' key = [2,4,6,3]; %Replicate it to be slightly bigger and lop off the end. keysz = repmat(k...

13 years ago | 0

| accepted

Answered
Silhouette outline of polygon surface
Here is what I came up with: %% Sean's try % Here's the general approach: % % # Calculate the Delaunay Triangulat...

13 years ago | 2

| accepted

Answered
Bar graph coloring and shading
No reason to reinvent the wheel: * <http://www.mathworks.com/matlabcentral/fileexchange/29635-generalized-bar-charts> * <htt...

13 years ago | 0

Answered
What kind of optimization algorithm?
I recommend first trying |fmincon()| with the _interior-point_ algorithm, If you know that you want a global optimization, then...

13 years ago | 0

Answered
How to zoom in on figures within the dock? (2012b)
The best solution I can think of is to create a shortcut that turns zoom on and off and then add this shortcut to the Quick Acce...

13 years ago | 0

Answered
new in matlab, first question
Welcome! You can use |randperm| doc randperm or do what |randperm()| does under the hood: [~,idx] = sort(ran...

13 years ago | 0

Answered
Finding Maximum Value In Array
doc max Look at both output arguments. The second one, index, will tell you where to grab from.

13 years ago | 0

Answered
Easter eggs as Matlab code
Thanks for the Monday challenger. [x,y,z] = sphere(100); x = 1.7./(1-0.4*x); figure(10); h = surf(x,y,z); cdata = imres...

13 years ago | 1

Answered
Will Data Acquisition Toolbox 2013 work with MATLAB R2010a?
No. Download the R2010a version of the DAQ Toolbox or upgrade to all of MATLAB R2013a. You can contact our installation te...

13 years ago | 0

| accepted

Answered
Openning 14000 tif files...
If you have the Parallel Computing Toolbox; how about using |parfor|? doc parfor If you do not have the PCT, I'm sure yo...

13 years ago | 0

Answered
Matlab GUI zoom in/out
Are you using GUIDE? If so, go to *Tools* -> *Toolbar Editor* and add the zoom in and zoom out buttons. There's no reason t...

13 years ago | 3

Answered
Multiple anonymous functions combined
You can use the function |functions()| to figure out the workspace of a _E_. Here is an example, as for the error - I cannot re...

13 years ago | 0

Answered
R2013a editor slow to respond to edits?
This might be due to the Code Analyzer trying to analyze the entire file. Please shut it off in preferences and see if that hel...

13 years ago | 0

Answered
Problem with uitable with Logical cell and default value of 'true'
This is because _'True'_ is interpretted as a string for which any non-zero value is _true_. Thus it will always be true. Re...

13 years ago | 2

| accepted

Answered
how to subplot 4 images?
figure; for ii = 1:4 subplot(2,2,ii); imshow('cameraman.tif'); end

13 years ago | 2

Answered
Linearly increasing groups of indices
A = 1:100; A(sort([1:10:end, 3:10:end,4:10:end])) = pi Of course a |for|-loop might be faster.

13 years ago | 0

Answered
Continuous crashes Mac OS X 10.8 Simulink in Matlab 2012b
Hi Konstantinos, Please contact technical support and reference this thread: <http://www.mathworks.com/support/contact_us/...

13 years ago | 0

Answered
How to require DVD of Matlab Student Version 2013a
There is. Call our customer support during regular business hours.

13 years ago | 0

| accepted

Answered
diagonal matrix with ones
eye(5) ? *more* per clarification: a = tril(magic(3)); a(logical(eye(size(a,1)))) = 1

13 years ago | 0

Answered
Matlab 2012b - What happened to the Cell Mode tool bar?
3) Download R2013a :)

13 years ago | 0

Answered
How to modify the handles structure (GUI) from an external function
function [matrix, indexVector] = myFunction(handles) handles.variable1 = 1; guidata(handles.figure1,handles) Where _f...

13 years ago | 2

| accepted

Load more