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

presque 10 ans il y a | 4

| A accepté

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

presque 10 ans il y a | 5

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 4

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 2

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

presque 10 ans il y a | 3

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 0

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 4

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 7

| A accepté

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

presque 10 ans il y a | 4

| A accepté

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

presque 10 ans il y a | 3

| A accepté

Réponse apportée
SIFT feature descriptor is not working in matlab R2013a, any solution?
There is no "detectSIFTFeature" function in any Matlab version.

presque 10 ans il y a | 4

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 4

| A accepté

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

presque 10 ans il y a | 3

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 9

| A accepté

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

presque 10 ans il y a | 4

| A accepté

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

presque 10 ans il y a | 3

| A accepté

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

presque 10 ans il y a | 3

Charger plus