Answered

Append to an array

Hi, A possible solution to your problem could be something like this. Set the array as empty initially(beginning of the sess...

Append to an array

Hi, A possible solution to your problem could be something like this. Set the array as empty initially(beginning of the sess...

nästan 11 år ago | 5

| accepted

Answered

A question regarding matrices

Hi, Below is a working code for reading your specific file. function adjMatrix = adjMatrix() fileID = fopen('adjMat....

A question regarding matrices

Hi, Below is a working code for reading your specific file. function adjMatrix = adjMatrix() fileID = fopen('adjMat....

nästan 11 år ago | 1

| accepted

Answered

How to use fnzeros to find the zeros of a function?

Hi, The fnzeros function requires the inputs to be in a specific format as it is a function that works on splines and is a pa...

How to use fnzeros to find the zeros of a function?

Hi, The fnzeros function requires the inputs to be in a specific format as it is a function that works on splines and is a pa...

nästan 11 år ago | 1

| accepted

Answered

how to use kmeans function to transform grayscale image to binary

Hello, Please check the link below. Maybe this helps. Also, I would like you to know that this is a part of the image proc...

how to use kmeans function to transform grayscale image to binary

Hello, Please check the link below. Maybe this helps. Also, I would like you to know that this is a part of the image proc...

nästan 11 år ago | 0

Answered

Duplicate names in one cell column

Hi, You can use the " |hist| " functions and the unique functions to determine if there are any duplicate values in your colu...

Duplicate names in one cell column

Hi, You can use the " |hist| " functions and the unique functions to determine if there are any duplicate values in your colu...

nästan 11 år ago | 0

Answered

How to smooth the edges of given image

Hi, You can try the solution listed in the linke below. Hope this helps. <http://www.mathworks.com/matlabcentral/answers...

How to smooth the edges of given image

Hi, You can try the solution listed in the linke below. Hope this helps. <http://www.mathworks.com/matlabcentral/answers...

nästan 11 år ago | 0

Answered

How to remove the middle part of a graphic

Hi, You can try setting the values between 25% to 75% to NaN. This might do the thing.

How to remove the middle part of a graphic

Hi, You can try setting the values between 25% to 75% to NaN. This might do the thing.

nästan 11 år ago | 0

Answered

embedding matlab figures (.fig files) automatically into a Word document

Hi, Once you have a image in your word document you can associate it with a hyperlink to a .m file or a .fig file in MATLAB, ...

embedding matlab figures (.fig files) automatically into a Word document

Hi, Once you have a image in your word document you can associate it with a hyperlink to a .m file or a .fig file in MATLAB, ...

nästan 11 år ago | 0

Answered

Counting Colored Objects in an Image

Hello, May be the link below will be useful. It is based on the segmentation of the image based on colors. The link is : <h...

Counting Colored Objects in an Image

Hello, May be the link below will be useful. It is based on the segmentation of the image based on colors. The link is : <h...

nästan 11 år ago | 0

Answered

convert matrix into another matrix

Hi, You can try using the " |fliplr| " command for flipping the matrix elements. Here is the link to the documentation: ...

convert matrix into another matrix

Hi, You can try using the " |fliplr| " command for flipping the matrix elements. Here is the link to the documentation: ...

nästan 11 år ago | 0

Answered

How to receive data over tcp and plot them?

Hi, May be this will help you. <http://www.mathworks.com/matlabcentral/answers/68878>

How to receive data over tcp and plot them?

Hi, May be this will help you. <http://www.mathworks.com/matlabcentral/answers/68878>

nästan 11 år ago | 0

Answered

How to add 10dB or 30 dB noise to an image?

Hey, You can try using the "awgn" function. <http://www.mathworks.com/help/comm/ref/awgn.html?searchHighlight=awgn> Also ...

How to add 10dB or 30 dB noise to an image?

Hey, You can try using the "awgn" function. <http://www.mathworks.com/help/comm/ref/awgn.html?searchHighlight=awgn> Also ...

nästan 11 år ago | 0

| accepted

Answered

how can we measure a pahase difference between two sinusoidal signals?

I think may be this post will help you. <http://www.mathworks.com/matlabcentral/answers/44830>

how can we measure a pahase difference between two sinusoidal signals?

I think may be this post will help you. <http://www.mathworks.com/matlabcentral/answers/44830>

nästan 11 år ago | 0

| accepted

Answered

Evaluate FIS with Dataset in MS Excel

Hi, You can import your dataset from an Excel sheet into MATLAB using the "Import Data" button at the top of your MATLAB work...

Evaluate FIS with Dataset in MS Excel

Hi, You can import your dataset from an Excel sheet into MATLAB using the "Import Data" button at the top of your MATLAB work...

nästan 11 år ago | 0

Answered

Why can't I find the number 1.7?

Hi, It has to do with the way floating point numbers are represented in MATLAB. May be this article helps: <http://blogs....

Why can't I find the number 1.7?

Hi, It has to do with the way floating point numbers are represented in MATLAB. May be this article helps: <http://blogs....

nästan 11 år ago | 0

Answered

How to run k means clustering on multiple items in a text file

Hi, You can try using the "kmeans" function by formatting your data as per the data format required in the function. The func...

How to run k means clustering on multiple items in a text file

Hi, You can try using the "kmeans" function by formatting your data as per the data format required in the function. The func...

nästan 11 år ago | 0

| accepted

Answered

How to display a variable in workspace before the end of the script?

Hi, It is possible that you are creating the variables locally in a fuction which your script is calling. Hence, when the funct...

How to display a variable in workspace before the end of the script?

Hi, It is possible that you are creating the variables locally in a fuction which your script is calling. Hence, when the funct...

nästan 11 år ago | 0

Answered

ploting 2 variable function

Hi, The length of vector X should be the same as number of columns of Z and the length of vector Y go with number of rows of...

ploting 2 variable function

Hi, The length of vector X should be the same as number of columns of Z and the length of vector Y go with number of rows of...

nästan 11 år ago | 0

Solved

Which doors are open?

There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

ungefär 11 år ago

Solved

Create a square matrix of multiples

Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

ungefär 11 år ago

Solved

Flag largest magnitude swings as they occur

You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

ungefär 11 år ago

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

ungefär 11 år ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4

Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

ungefär 11 år ago

Solved

Reverse Run-Length Encoder

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

ungefär 11 år ago

Solved

Balanced number

Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

ungefär 11 år ago

Solved

Determine Whether an array is empty

Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

ungefär 11 år ago

Solved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

ungefär 11 år ago

Solved

Increment a number, given its digits

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

ungefär 11 år ago

Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

ungefär 11 år ago