Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 2

| aceptada

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

casi 13 años hace | 2

| aceptada

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

casi 13 años hace | 2

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

casi 13 años hace | 5

| aceptada

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

casi 13 años hace | 2

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

casi 13 años hace | 4

| aceptada

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

casi 13 años hace | 4

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

casi 13 años hace | 2

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

casi 13 años hace | 3

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

casi 13 años hace | 2

| aceptada

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

casi 13 años hace | 5

| aceptada

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

casi 13 años hace | 1

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

casi 13 años hace | 2

| aceptada

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

casi 13 años hace | 1

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

casi 13 años hace | 3

| aceptada

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

casi 13 años hace | 2

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

casi 13 años hace | 3

| aceptada

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

casi 13 años hace | 2

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

casi 13 años hace | 2

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

casi 13 años hace | 2

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

casi 13 años hace | 7

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

casi 13 años hace | 1

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

casi 13 años hace | 2

| aceptada

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

casi 13 años hace | 4

| aceptada

Cargar más