解決済み


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

14年弱 前

解決済み


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

14年弱 前

解決済み


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

14年弱 前

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

14年弱 前 | 0

回答済み
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>

14年弱 前 | 1

| 採用済み

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

14年弱 前 | 2

| 採用済み

回答済み
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...

14年弱 前 | 2

| 採用済み

回答済み
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/...

14年弱 前 | 2

回答済み
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])...

14年弱 前 | 5

| 採用済み

回答済み
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)= ...

14年弱 前 | 2

回答済み
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,...

14年弱 前 | 4

| 採用済み

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

14年弱 前 | 4

回答済み
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...

14年弱 前 | 2

回答済み
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+...

14年弱 前 | 3

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

14年弱 前 | 2

| 採用済み

回答済み
'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...

14年弱 前 | 5

| 採用済み

回答済み
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=...

14年弱 前 | 1

回答済み
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...

14年弱 前 | 2

| 採用済み

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

14年弱 前 | 1

回答済み
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...

14年弱 前 | 3

| 採用済み

回答済み
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...

14年弱 前 | 2

回答済み
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 ...

14年弱 前 | 3

| 採用済み

回答済み
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...

14年弱 前 | 2

回答済み
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...

約14年 前 | 2

回答済み
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...

約14年 前 | 2

回答済み
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...

約14年 前 | 7

回答済み
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...

約14年 前 | 1

回答済み
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...

約14年 前 | 2

| 採用済み

回答済み
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 ...

約14年 前 | 4

| 採用済み

さらに読み込む