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

10 years ago | 4

| accepted

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

10 years ago | 5

| accepted

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

10 years ago | 3

| accepted

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

10 years ago | 4

| accepted

Answered
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)

10 years ago | 3

| accepted

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

10 years ago | 2

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

10 years ago | 3

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

10 years ago | 3

| accepted

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

10 years ago | 0

| accepted

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

10 years ago | 3

| accepted

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

10 years ago | 3

| accepted

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

10 years ago | 3

| accepted

Answered
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

10 years ago | 3

| accepted

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

10 years ago | 4

| accepted

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

10 years ago | 3

| accepted

Answered
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); ...

10 years ago | 3

| accepted

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

10 years ago | 7

| accepted

Answered
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?

10 years ago | 4

| accepted

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

10 years ago | 3

| accepted

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

10 years ago | 4

| accepted

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

10 years ago | 3

| accepted

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

10 years ago | 4

| accepted

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

10 years ago | 3

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

10 years ago | 3

| accepted

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

10 years ago | 3

| accepted

Answered
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'));

10 years ago | 9

| accepted

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

10 years ago | 4

| accepted

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

10 years ago | 3

| accepted

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

10 years ago | 3

Load more