Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

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

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 5

| akzeptiert

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 4

| akzeptiert

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

mehr als 14 Jahre vor | 4

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 3

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 5

| akzeptiert

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 3

| akzeptiert

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 3

| akzeptiert

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 2

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

mehr als 14 Jahre vor | 7

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

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 4

| akzeptiert

Mehr laden