Réponse apportée
Normalizing data
Dear John, Lets say you have matrix D and you want to normalize each value of Column to unit length (between 0-1). One possib...

environ 14 ans il y a | 4

| A accepté

Réponse apportée
how to find euclidean distance for an image
Dear Fir, You have Query image Q, you want to compute euclidean distance of Q with all images in database. Is that you want ? I...

environ 14 ans il y a | 1

Réponse apportée
how to find euclidean distance for an image
Dear FIR, Similar question was asked by one fellow. The solution you can see from following URL. I hope it might help you. ...

environ 14 ans il y a | 1

Réponse apportée
How to Envelope a Dataset?
Dear Aviator, Sorry I was away so could not reply on time. Actually you can play trick with this. k = convhull(x,y) So ...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
How to extract the keyframes from video?
Dear Pan, There are so many easy and complex ways. The best and the simplest is based on Entropy. You calculate the Entropy o...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
How to Envelope a Dataset?
Dear Aviator, Actually your problem is quite related to finding the Convex hull. The data points you have shown are not good en...

environ 14 ans il y a | 2

Réponse apportée
constant line in output, while plotting data
Dear the constant line is getting as your last point might be outlier. You can simply remove that line by this code. plot(tim...

environ 14 ans il y a | 2

Réponse apportée
IMAGE SEPARATION INTO BLOCKS
Dear as in obove code division is n't correct .. follow this code let say your image is I of 256 x 256. Make your your grid whi...

environ 14 ans il y a | 3

| A accepté

Réponse apportée
how to divide an image into blocks
Dear Pat, mat2cell is the only easy solution for your question. You are getting this error because your the mod of your IMG a...

environ 14 ans il y a | 2

Réponse apportée
Is '.-' no longer a valid line format for plots?
Dear Sir, I am not sure for older versions. You still can use this format for line and marker in plots. plot(1:10,'.-') % is ...

environ 14 ans il y a | 2

Réponse apportée
"FOR" loop
p=primes(100); A = zeros(1,length(p)-1); for i=1:length(p)-1 A(i) = p(i) * p(i+1); end A just copy and past...

environ 14 ans il y a | 2

Réponse apportée
"FOR" loop
let say your prime vector is P; p=primes(100); a = zeros(1,length(p)-1); for i=1:length(p)-1 a(i) = p(i) * p(i+1); e...

environ 14 ans il y a | 2

Réponse apportée
hi, im trying to produce the answer for this equation in vector. example for a[1 2 3 4 5], im expecting my answer to be y[0 4 8 10 12.5]. can anyone help me to explain about this?thanks
I don't your formula to produce y. But to get equal length vector to a, you should do like this. a=[1 2 3 4 5]; y=size(a...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
How to plot 3 garph in one figure?
Well, if you want to draw three different graph figures into one figure then you can use subplot. ex: let say I have two graphs...

environ 14 ans il y a | 2

Réponse apportée
Import from .arff to matlab
Dear Mani, I didn't test this but hopefully it will solve your problem. Check this link below. Do let us know if it worked. ...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
Path, Current Directory, "exist" and "which" functions
Dear I guess it depends on your current directory. Let say you are in studies_1/ directory. then load ('data/file.mat'); ...

environ 14 ans il y a | 2

Réponse apportée
Recursive gaussian filter vs traditional gaussian filter
As I understand your code and question. you have kernel variable. Kernel =[1, 4, 7, 4, 1, 4, 16, 26, 16, 4, 7, 26, 41, 26, 7,...

environ 14 ans il y a | 1

Réponse apportée
Graphing problem
Dear Courtney, Whenever you copy code please make it proper so that reader can read and then execute if needed. something lik...

environ 14 ans il y a | 1

Réponse apportée
choosing region of interest of an image (cropping problem)
Dear you just have to drag the mouse to make rectangle and then right click and select "Copy position". The cropped region will...

environ 14 ans il y a | 5

Réponse apportée
how to find Euclidean distance in matlab?
Dear what is the size of your feature vector, if it is column vector then let say your have 1000 feature vector of 1000 images. ...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
To apply Gaussian in histogram?
Dear I guess you have histogram and you want to apply gaussian weight to it. If it is so then let say you have Histogram H. then...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
if statement logical error
Dear when I execute your code, i get the if part not else part. I also checked your all conditions and all conditions are true. ...

environ 14 ans il y a | 0

Réponse apportée
How to convert a .tif file into a .mat file?
If it is so, then you simply convert that tiff into mat file like this.. let say tif file name is "Example.tiff"; A = imread...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
"double" vs. "uint8" input using "imshow" function
uint8 is used unsigned 8 bit integer. And that is the range of pixel. We can't have pixel value more than 2^8 -1. Therefore, for...

environ 14 ans il y a | 12

Réponse apportée
folder in a directory
A = dir % you get everything in current directly of matlab. or if you want to explicitly mention any directory path then you ...

environ 14 ans il y a | 1

| A accepté

Question


Handling multi figures.
I have saved three figures in my system. Figure1.fig, Figure2.fig, and Figure3.fig. Now I want to load this figures and ...

environ 14 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
The code does not work with 1.7
Anyway you can do what ever you want from this simple one lines. v =hist(y,[1:.1:2]) This is simple. Take the histgram. ...

environ 14 ans il y a | 1

Réponse apportée
Equality error
Dear for comparing the string you should use *strcmp* function. ex. a(1).name ='2pm'; a(2).name='SNSD'; a(3).name = '2p...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
Array/Data Strucutre Returns Problem
I think you can't compare two string with == . You will get dimensions mismatch. As for string '2pm' the length = 3 and for 'SNS...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
random number generator
Yes you can do it for non repeating randoms. One possible way is which chandra suggested above. But if you want to avoid loops t...

environ 14 ans il y a | 1

| A accepté

Charger plus