Respondida
Why is the text function not showing the text for this figure?
The problem is that the coordinates you are using to put text do not correspond to the ones in the axes. If you try using normal...

más de 9 años hace | 4

| aceptada

Respondida
How to add new rows and columns between the original pixels?
Here is the implementation of method for zero-order-hold zooming in your link: %open image A = double(rgb2gray(imread('p...

más de 9 años hace | 5

| aceptada

Respondida
abs and sign simplification
It happens because for the scalar case norm(y)=|y| (here y=y(x) is any function), therefore Matlab computes derivative by splitt...

más de 9 años hace | 3

| aceptada

Respondida
how to save image on which calculation are performed?
You can save your image *sm* as .png as follows: imwrite(sm,'mySavedImage.png');

más de 9 años hace | 4

| aceptada

Respondida
Need help with computing an approximation of a singular integral.
Use integral function. fun = @(x) (sin(x.^5)) ./ (x.^(2).*(1+x).^55); q = integral(fun,0,inf)

más de 9 años hace | 3

| aceptada

Respondida
Color Space Change from RGB to CHL
Look here: <http://stackoverflow.com/questions/7530627/hcl-color-to-rgb-and-backward>

más de 9 años hace | 2

Respondida
Fix help text for newer MATLAB versions
It seems you have a conflict with another file named "data". Try to supply the full path name to the help argument.

más de 9 años hace | 3

Respondida
Plotting Cos complete stupidity
This is not ridiculous, this is math. Try refine the step of x: x = 0:.01:20; y = .5*cos(2*pi*60*x); plot(x,y) ...

más de 9 años hace | 3

| aceptada

Respondida
"Matrix dimensions must agree"
Of course it gives you an error. In your script x=0:0.01:6 is a vector of size 1x601. When you do elementwise multipli...

más de 9 años hace | 0

| aceptada

Respondida
hi , i use the following statement ,
If you want to show decimal numbers just do this: fprintf('S=%d Z0=%.1f PHI=%.1f MSEreal=%.1f MSEfuzzy=%.1f Numberofreal=%d...

más de 9 años hace | 3

| aceptada

Respondida
Get several subsets from a set using two arrays.
Ok, I got it. You can work like this, by exploiting *arrayfun*, which iterates an operation on array elements. vect = 101:1...

más de 9 años hace | 3

| aceptada

Respondida
Matrix from triple loop
It doesn't work because your are using the RS_n matrices in your second code. This is a simplification of the first code: R...

más de 9 años hace | 3

| aceptada

Respondida
How can I select a random number between 0 and 1, if the result should have only one decimal ? e.g result= 0.6 , result=0.2, result =0.9
Here it is. rnd = 0.1*(randi(11)-1); It gives a random number among 0.0, 0.1, ... , 1.0

más de 9 años hace | 3

| aceptada

Respondida
I have to write a bisection program , I have written a program but their is no output ? How am I doing it wrong ?
Here is the code to implement bisection by recurrence (the function bisection is invoking iteself). a=0; b=5; tol=1e-...

más de 9 años hace | 4

| aceptada

Respondida
Calculating linear fit with respect from origin (0,0)
Ok, you just have to use the right statistics. Look here: %random points x=1:10; y=rand(1,10); %fit data p=poly...

más de 9 años hace | 3

| aceptada

Respondida
Hi all, i want to get the cropped image in another axes with the same size of the crop rectangle??Is there any way....
Here it is. %open image and crop it I = imread('peppers.png'); rect = [70,10,100,200]; Icrop = imcrop(I,rect); ...

más de 9 años hace | 3

| aceptada

Respondida
How to decrease the number of points in a shape?
Since your shape is not convex, you cannot use convexhull trick. Here is the piece of code to eliminate collinear points. ...

más de 9 años hace | 7

| aceptada

Respondida
How do I find the gradient of an image which is divided into 32*32 blocks and is having standard deviation of every particular block?
Whatever is your image, to compute gradient use [Gmag,Gdir] = imgradient(I); Is that what you need?

más de 9 años hace | 4

| aceptada

Respondida
Two kind of instructions for specific blocks
Very simple. Assume your block (vector) to test is X: caseA=[1,2,5,6,9,10,13,14,17,18]; caseB= [3,4,7,8,11,12,15,16,1...

más de 9 años hace | 3

| aceptada

Respondida
SIFT feature descriptor is not working in matlab R2013a, any solution?
There is no "detectSIFTFeature" function in any Matlab version.

más de 9 años hace | 4

| aceptada

Respondida
plot using for loop?
Assume your five matrices are Y1,Y2,Y3,Y4,Y5. Then, put them in a cell and then run a for loop: Y = {Y1,Y2,Y3,Y4,Y5}; x=...

más de 9 años hace | 3

| aceptada

Respondida
How can i compress the text file using huffman encoding?
Refer to this help page. <http://it.mathworks.com/help/comm/ref/huffmanenco.html>

más de 9 años hace | 4

| aceptada

Respondida
Complex double Array converts to double array after assignment
Sure it does, because a complex number with a NULL imaginary part is indeed real. Notice that in the call COMPLEX(a,0), you in ...

más de 9 años hace | 3

Respondida
Is there a way to only recognize particles above a certain intensity?
Just threshold your image at a fixed intensity value. For example, assume your image is matrix A, storing values from 0 to 1. If...

más de 9 años hace | 3

| aceptada

Respondida
Save Features Extracted in one row/column and save it as .mat file
Ok, so define your vectors and save them as follows: FEATURES={'MEAN','SD','RMS',...}; VALUES=[66.2561,78.0825,11.0548,....

más de 9 años hace | 3

| aceptada

Respondida
How do you set a new default colormap for Matlab?
You need to set it default at root level. Type this in the command line: set(0,'DefaultFigureColormap',feval('jet'));

más de 9 años hace | 9

| aceptada

Respondida
How can I read or load a .txt with multiple vector/matrix in it?
Use the function *dlmread* by changing its parameters to access the txt file at different line and column offsets. For the text...

más de 9 años hace | 4

| aceptada

Respondida
How to display command lines from a function?
Use the fgets to read each line of a script and print it. fid = fopen('matlab_file.m'); tline = fgets(fid); while...

más de 9 años hace | 3

| aceptada

Respondida
How to process multiple txt files in a loop?
With DIR function you have access to all data in a folder. An example is %provide the path to your folder as argument My...

más de 9 años hace | 3

Cargar más