A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

environ 14 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

environ 14 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 14 ans il y a

Réponse apportée
edit-error in calculating dsit
Could you please tell what is Ds ? for simplicity make Ds random matrix and then simplify your questions.

environ 14 ans il y a | 0

Réponse apportée
There have the errors after we type FCM(2,'[1 2;2 3;4 5;2 4;3 3;1 5]','[0.1 0.2 0.3 0.4 0.5 0.7;0.9 0.8 0.7 0.6 0.5 0.3]',2, 0.001,5)
Kindly reformat your code. Make it readable.

environ 14 ans il y a | 1

Réponse apportée
How can I make a variable defined in one script make change also in a second script?
Hi, use global variables. declare p2 as global. <http://www.mathworks.co.jp/help/techdoc/ref/global.html>

environ 14 ans il y a | 1

| A accepté

Réponse apportée
error in calculating distance
Hi, Similar question was asked. <http://mathworks.com/matlabcentral/answers/22844-how-to-find-euclidean-distance-in-matlab...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
change the order of a row vecor
Hi, let say your row vector is: a=[-90 -54 -12 -2]; b = sort(a,2,'descend'); vector b contains your desired output...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
Exporting image to bounded pdf
follow code generated good pdf check close all; t=linspace(0,2*pi,500); P=1/17*exp(-t).*(4*sin(4*t)-cos(4*t))+18/...

environ 14 ans il y a | 2

Réponse apportée
Exporting image to bounded pdf
There are couple of ways to do it 1. plot something do this code plot([1:10]); set(gcf, 'PaperPosition', [0 0 5 5])...

environ 14 ans il y a | 5

| A accepté

Réponse apportée
plotting 20 graphs on singe screen with different colors
Dear Somayeh, col=hsv(20); figure; hold on; for ss=1:20 for y=1:25 for t=1:12 s_sim{ss}(y,t)= ...

environ 14 ans il y a | 2

Réponse apportée
plotting 20 graphs on singe screen with different colors
Dear one possible ways is this... col=hsv(20); figure; hold on; for i=1:20 plot([0 1],[0 i],'color',col(i,...

environ 14 ans il y a | 4

| A accepté

Réponse apportée
Refresh legend from the command line
Dear, legend('-DynamicLegend'); it will refresh. And update the contents dynamically, either you delete something from...

environ 14 ans il y a | 4

Réponse apportée
Help me too install MATLAB in linux
Dear follow this tutorial. It would really help you. https://help.ubuntu.com/community/MATLAB even if you fail, then I a...

environ 14 ans il y a | 2

Réponse apportée
Defining function handles in MATLAB
Dear Richard, To define a function in matlab you can do following syntax of given function: function n = F(x) n= 2*x^3+...

environ 14 ans il y a | 3

Réponse apportée
help section
Dear Tom, Matlab has so many online tutorials. Including interactive videos. I have posted some. But you can find many more....

environ 14 ans il y a | 2

| A accepté

Réponse apportée
'legend' problem
Dear Silva, The best way is that when you plot give the name to the curve instantly. let say plot([1:10],'Color','r','D...

environ 14 ans il y a | 5

| A accepté

Réponse apportée
how can i browse an image in gui
Dear Usman, If I understand you correct. You mean how to browse image from GUI right? If yes then it is as follow: a=...

environ 14 ans il y a | 1

Réponse apportée
generating matrix randomly
Dear What I understand is you will randomly swap the pixel values of images 6 times. At the end you will have 6 images. Again mu...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
generating matrix randomly
There are many ways to do it. One possible way is. myface = imread('myface.jpg'); myRan = randperm(prod(size(myface)...

environ 14 ans il y a | 1

Réponse apportée
Problem in displaying a substring
Dear.. there can be multiple way. The easy way I think is to parse the string by dividing into tokens. Here is example you reque...

environ 14 ans il y a | 3

| A accepté

Réponse apportée
index must be a positive integer or logical.
Dear Dark. In your previous example you have vector *v*. and to access each element in any vector you have to give positive in...

environ 14 ans il y a | 2

Réponse apportée
index must be a positive integer or logical.
Dear one possible way is this. clear all; close all; figure; hold on; index = 1; for t=1:0.1:2*pi if t<pi ...

environ 14 ans il y a | 3

| A accepté

Réponse apportée
How to speed up calculations?
Dear, If you process are sequential then It would be problem. The best way to improve the speed is to avoid loops. As in mat...

environ 14 ans il y a | 2

Réponse apportée
unequal arrays and basic calculations
Dear I guess if your matrix num after reshaping maintains it dimensions then reshape function should not be a problem. The examp...

environ 14 ans il y a | 2

Réponse apportée
Reading a select number of characters from a string
Dear Let say your file name is "someFile.xls" then following code should work. [m mess] = xlsread('someFile.xls', 1); The...

environ 14 ans il y a | 2

Réponse apportée
Reading a select number of characters from a string
Dear Louis, Let say you have string Variable a; a = 'HelloMoto'; if you want to take first 5 character of this. It is...

environ 14 ans il y a | 7

Réponse apportée
Circle packed with Circles
Dear Carlas, The easy way is to use this link. <http://www.mathworks.com/matlabcentral/fileexchange/2876-draw-a-circle/conte...

environ 14 ans il y a | 1

Réponse apportée
how to find euclidean distance for an image
Dear FIR, Sorry FIR I can't overview your code you sent to me. To compute the Euclidean distance between images or image feature...

environ 14 ans il y a | 2

| A accepté

Réponse apportée
Plotting a normalised histogram graph
Dear John, Let say you have distance in D. You first have to take Histogram. For histogram if you know the number of bins then ...

environ 14 ans il y a | 4

| A accepté

Charger plus