A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 3

| A accepté

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 2

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 1

| A accepté

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 1

Réponse apportée
how can i create non rigid registration before after can some body help me
doc imregdemons doc imwarp

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
i need the matlab code for programming qr function
doc qr

plus de 11 ans il y a | 1

Réponse apportée
How to find the mean and leave out the zeros?
mnz = mean(nonzeros(x))

plus de 11 ans il y a | 13

| A accepté

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 1

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 2

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

plus de 11 ans il y a | 2

| A accepté

Charger plus