Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 2

| accepted

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

13 years ago | 2

| accepted

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

13 years ago | 2

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

13 years ago | 5

| accepted

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

13 years ago | 2

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

13 years ago | 4

| accepted

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

13 years ago | 4

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

13 years ago | 2

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

13 years ago | 3

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

13 years ago | 2

| accepted

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

13 years ago | 5

| accepted

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

13 years ago | 1

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

13 years ago | 2

| accepted

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

13 years ago | 1

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

13 years ago | 3

| accepted

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

13 years ago | 2

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

13 years ago | 3

| accepted

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

13 years ago | 2

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

13 years ago | 2

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

13 years ago | 2

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

13 years ago | 7

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

13 years ago | 1

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

13 years ago | 2

| accepted

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

13 years ago | 4

| accepted

Load more