Solved


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

11 years ago

Solved


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

11 years ago

Answered
how to display using subplot one by one.
Add this line to the first part of your for-loop subplot(2,2,i)

11 years ago | 0

Answered
Threshold value question using otsu method
Show us an image! Without an image, it's very difficult if not impossible to guess at what you need. Have you tried the mult...

11 years ago | 0

Answered
Creating a rock shape
% My Rock x = randn(1000,1); y = randn(1000,1); z = randn(1000,1); % Alpha Shape and plot as = alphaShape(x,y,z,4); ...

11 years ago | 3

| accepted

Answered
programmatic GUI callback function
I fyou're using a version of MATLAB < R2014b, |hObject.Value| won't work. That syntax is added in R2014b. If your company/un...

11 years ago | 0

Answered
Maximum variable size allowed by the program is exceeded.
That array will require: 8*11*6^11 ans = 3.1926e+10 Just under 32gb. To do anything with it will require a copy or...

11 years ago | 0

| accepted

Answered
I am trying to create a table but somehow can't.
Table was added in R2013b. If you're using an older release, tables won't work. If your company/university is current on maint...

11 years ago | 0

Answered
Why does the || absolutely not work?
How about just using |ismember| if any(ismember('oe',location)) disp(true) end

11 years ago | 2

Answered
How can I create gui compatible in all screen resolutions or display?
>>web(fullfile(docroot, 'matlab/creating_guis/designing-for-cross-platform-compatibility.html'))

11 years ago | 0

Answered
finding max points of an inline function?
First, don't use |inline|, it's been deprecated; use anonymous functions instead. Next, use |fminsearch| to find the minimum of...

11 years ago | 0

| accepted

Answered
selecting a specific range in a matrix and cell array
Just use two lines of code. There's no shame in doing this. And since MATLAB passes implicitly by reference anyway, it won't r...

11 years ago | 0

Answered
How to select the x-value of the maximum of a figure (without using ginput)?
You could use |datacursortmode| the axes _'ButtonDownFcn'_ or |max()| on the |line|'s _'YData'_. This is what I would do. ...

11 years ago | 0

Answered
Uitable column width setting
Yes, it can be a cell array with numbers and _'auto'_ interleaved. web(fullfile(docroot, 'matlab/ref/uitable-properties.htm...

11 years ago | 1

| accepted

Answered
Is there a command that simulates ginput?
You could use the java.awt.Robot but this workflow sounds horrible. What are you trying to do? Can you give a minimal working ...

11 years ago | 0

Answered
How to crop an image and automatically crop another image with same positioning?
One of the outputs from <http://www.mathworks.com/help/releases/R2014b/images/ref/imcrop.html |imcrop|> is the bounding rectangl...

11 years ago | 1

Answered
how can i create non rigid registration before after can some body help me
doc imregdemons doc imwarp

11 years ago | 0

Answered
Read .seq file in MATLAB
<http://www.mathworks.com/matlabcentral/fileexchange/36417-yuv-files-reading-and-converting FEX> perhaps?

11 years ago | 0

Answered
Pull out certain strings from a text file
Just use the import tool: * Right click on the file in the current folder browser * Select "Import Data" * Select the data ...

11 years ago | 0

Answered
how to draw a free hand box on an image to select that region of interest?
To force it to a rectangle, use |imrect| which has the same api as |imfreehand|.

11 years ago | 0

| accepted

Answered
i need the matlab code for programming qr function
doc qr

11 years ago | 1

Answered
How to find the mean and leave out the zeros?
mnz = mean(nonzeros(x))

11 years ago | 13

| accepted

Answered
xlsread can't find file but exist() can
Are you creating absolute full file paths with both outputs of uigetfile? [FileName,PathName] = uigetfile() fn = fullfil...

11 years ago | 0

Answered
Dear Users I have the energy.txt file and i need ti extract two columns data from this file [No ,Levels]
Select Import Data on the home tab, select the file, select the columns you want and hit import.

11 years ago | 0

Answered
Can we define operators in MATLAB?
No, you can only overload the current operators. I think this is pretty close to the full list le,lt,gt,ge,eq,ne,colon,end...

11 years ago | 1

Answered
Running multiple functions simultaneously
Do you have the Parallel Computing Toolbox? If so, this is easily doable with |parfor|, |parfeval| or |batch|. If not, con...

11 years ago | 0

Answered
Parallel Computing Toolbox: Underperformance AND Cannot cancel or destroy a job that was not created by this Local cluster.
The only time I have seen that is also when something failed in a previous MATLAB session (hang/out of memory/etc.) You shoul...

11 years ago | 0

Answered
How to set a path for saving file?
Some friends doc pwd % present working directory doc fullfile % build a full file path doc uiputfile % let the user c...

11 years ago | 0

Answered
How to modify a value in code.
<http://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum>

11 years ago | 2

Answered
MATLAB R2014A - Undo/Redo buttons
You can add them to your "Quick Access Toolbar" through preferences. <</matlabcentral/answers/uploaded_files/22693/Captur...

11 years ago | 2

| accepted

Load more