Feeds
답변 있음
Averaging z values for xy gridded data
Hello Ara, So the brute force implementation would be to run a search through your data and check the lat and lon values. If th...
Averaging z values for xy gridded data
Hello Ara, So the brute force implementation would be to run a search through your data and check the lat and lon values. If th...
거의 5년 전 | 0
답변 있음
how do I substitute all negative values in a vector with a random number between 0 and 2
The simplest (but not the most efficient) way to do this would be to inititalize a for loop and run through all the elements one...
how do I substitute all negative values in a vector with a random number between 0 and 2
The simplest (but not the most efficient) way to do this would be to inititalize a for loop and run through all the elements one...
대략 5년 전 | 0
답변 있음
How do I compute the correlation between corresponding rows of two matrices?
From what I know, Correlation Matrices are usually square. As in you have 10000 rows with 60 elements in each row. So if you tak...
How do I compute the correlation between corresponding rows of two matrices?
From what I know, Correlation Matrices are usually square. As in you have 10000 rows with 60 elements in each row. So if you tak...
6년 초과 전 | 0
답변 있음
How to xor key with the element by element in an array?
Here, try this I = randi([1,10],5); %Input matrix [m, n] = size(I) %Size of the input matrix for loo...
How to xor key with the element by element in an array?
Here, try this I = randi([1,10],5); %Input matrix [m, n] = size(I) %Size of the input matrix for loo...
6년 초과 전 | 0
답변 있음
Error using mex: No supported compiler or SDK was found
You need to download and install a compiler first. Go to the add-ons and click on get add-ons. You will get a list of add-on...
Error using mex: No supported compiler or SDK was found
You need to download and install a compiler first. Go to the add-ons and click on get add-ons. You will get a list of add-on...
6년 초과 전 | 0
답변 있음
How to plot multiple Y in the form of samples in the same X
Try this, plot(x1, y1, 'r*', x2, y2, 'yo', x3, y3, 'ks'); Here, I have taken (x, y) from a1 as (x1, y1), (x, y) from a2 a...
How to plot multiple Y in the form of samples in the same X
Try this, plot(x1, y1, 'r*', x2, y2, 'yo', x3, y3, 'ks'); Here, I have taken (x, y) from a1 as (x1, y1), (x, y) from a2 a...
6년 초과 전 | 0
| 수락됨
답변 있음
Could anyone tell me how to omit zero values while plotting the graph
You can try this A1 = A(A ~= 0); % Removes the zeros from A plot(A1); hold on; plot(B); hold off; Hope this helps...
Could anyone tell me how to omit zero values while plotting the graph
You can try this A1 = A(A ~= 0); % Removes the zeros from A plot(A1); hold on; plot(B); hold off; Hope this helps...
6년 초과 전 | 0
답변 있음
Construct a square wave
I cannot give you the exact code because its a homework assignment. But this should lead you towards the answer. So the signa...
Construct a square wave
I cannot give you the exact code because its a homework assignment. But this should lead you towards the answer. So the signa...
6년 초과 전 | 0
| 수락됨
답변 있음
How to subtract Black and White image from RBG Original image.
You cannot subtract the image because the two images are of different dimensions. You can check this in your workspace. Consider...
How to subtract Black and White image from RBG Original image.
You cannot subtract the image because the two images are of different dimensions. You can check this in your workspace. Consider...
6년 초과 전 | 0
| 수락됨
답변 있음
How do I make my data from a while loop into a table of vectors?
"How do I make my data from a *while loop* into a table of vectors?" I have modified the code you gave in your question. ...
How do I make my data from a while loop into a table of vectors?
"How do I make my data from a *while loop* into a table of vectors?" I have modified the code you gave in your question. ...
6년 초과 전 | 0
| 수락됨
답변 있음
Type of license file
It depends on what license your institution uses. For example, our institution uses an academic license for total headcount ...
Type of license file
It depends on what license your institution uses. For example, our institution uses an academic license for total headcount ...
6년 초과 전 | 0
답변 있음
Compare the result of loop
Add a temp variable in your code and store the new UtilityD value in temp. At the end you can just add a if statement as foll...
Compare the result of loop
Add a temp variable in your code and store the new UtilityD value in temp. At the end you can just add a if statement as foll...
6년 초과 전 | 0
답변 있음
How to compress a location map using JBig compression?
This code from what I know is from <https://in.mathworks.com/matlabcentral/fileexchange/5104-toolbox-wavelets> toolbox. Down...
How to compress a location map using JBig compression?
This code from what I know is from <https://in.mathworks.com/matlabcentral/fileexchange/5104-toolbox-wavelets> toolbox. Down...
6년 초과 전 | 0
답변 있음
i have applied huffman coding and decoding from matlab/simulink for digital communication by won y yang
Usually compression doesn't work well for data which has uniform distribution. Almost all natural images follow this trait. You ...
i have applied huffman coding and decoding from matlab/simulink for digital communication by won y yang
Usually compression doesn't work well for data which has uniform distribution. Almost all natural images follow this trait. You ...
6년 초과 전 | 0
답변 있음
Signal Phase using FFT
_"I have to extract the phase of the signals and the average phase displacement using FFT"_ Use the "fft" and the "fftshift" ...
Signal Phase using FFT
_"I have to extract the phase of the signals and the average phase displacement using FFT"_ Use the "fft" and the "fftshift" ...
6년 초과 전 | 0
| 수락됨
답변 있음
How to save whole output of the script? (387 figures grouped into one figure window, each figure in its own tab)
I think you might find a clue here, <https://in.mathworks.com/matlabcentral/answers/228691-organize-several-figures-using-tab...
How to save whole output of the script? (387 figures grouped into one figure window, each figure in its own tab)
I think you might find a clue here, <https://in.mathworks.com/matlabcentral/answers/228691-organize-several-figures-using-tab...
6년 초과 전 | 0
답변 있음
how to convolute two discrete impulse functions
x[n]= -delta[n+1] + 0.5delta[n] + 2delta[n-1] h[n]= 2delta[n] + delta[n-1] _"I don't know how to write the two signals in ...
how to convolute two discrete impulse functions
x[n]= -delta[n+1] + 0.5delta[n] + 2delta[n-1] h[n]= 2delta[n] + delta[n-1] _"I don't know how to write the two signals in ...
6년 초과 전 | 1
| 수락됨
답변 있음
convolution of two unit step functions.
*1.* The first thing you need to know is that in Matlab, the array index starts from 1 and not from 0. So if you write x(0)=1, y...
convolution of two unit step functions.
*1.* The first thing you need to know is that in Matlab, the array index starts from 1 and not from 0. So if you write x(0)=1, y...
거의 7년 전 | 1
| 수락됨
답변 있음
Hi all! Is there a way to initialize row vectors like this:
_"No, it's a single row vector."_ Based on this I will assume that R,G and B are also row vectors. Say, x=1:30 You...
Hi all! Is there a way to initialize row vectors like this:
_"No, it's a single row vector."_ Based on this I will assume that R,G and B are also row vectors. Say, x=1:30 You...
거의 7년 전 | 1
| 수락됨
답변 있음
Process an image depending of the peaks of its histogram
*"I'm looking for a matlab function that let me analyse different regions of an image depending of the peaks of its histogram."*...
Process an image depending of the peaks of its histogram
*"I'm looking for a matlab function that let me analyse different regions of an image depending of the peaks of its histogram."*...
거의 7년 전 | 0
답변 있음
How to fix: "Index exceeds matrix dimension"
You are not updating H(i+1) in your while loop. "i=1; H(i)=Hs;" This line creates an array named "H" of size [1, 1] whi...
How to fix: "Index exceeds matrix dimension"
You are not updating H(i+1) in your while loop. "i=1; H(i)=Hs;" This line creates an array named "H" of size [1, 1] whi...
거의 7년 전 | 1
| 수락됨
답변 있음
How to XOR the pixel values of image with a matrix containing decimal numbers?
_"I am using color image."_ Lets say your input image is I. I = imread ('image.tif'); If you check the workspace aft...
How to XOR the pixel values of image with a matrix containing decimal numbers?
_"I am using color image."_ Lets say your input image is I. I = imread ('image.tif'); If you check the workspace aft...
거의 7년 전 | 0
질문
How does bsxfun actually work ?
I tried to multiply two matrices using bsxfun. Here is a sample code. a = [0,1]; b = [1,2]; q = bsxfun(@times, a, b); ...
거의 7년 전 | 답변 수: 2 | 0
2
답변질문
How to obtain a path traced by a line plot which has been superimposed on an image ?
I have an image which has been divided into blocks of 2x2 pixels and a line plot of some randomized points. I want to superimpos...
9년 초과 전 | 답변 수: 0 | 0
0
답변질문
Error: subscripted assignment dimension mismatch during convolution.
I am writing a code for convolution of rows of a 256x256 matrix with a column vector consisting entirely of ones. But I am getti...
10년 초과 전 | 답변 수: 2 | 0
2
답변질문
Is there any way of stopping the execution of a program in the middle ?
My code is now running for 10 minutes. Is there any way i can pause or stop the execution and see the current status of my va...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to create a vector in which numbers increase at first, then remain constant, then reduce back to 1 ?
I need to create vectors of length 255 which have the following format: {1,2,3,4,5,5,5,5,......,5,5,4,3,2,1} {1,2,3,4,5,...
10년 초과 전 | 답변 수: 3 | 0
3
답변질문
How to plot a 2D histogram of pixel pairs ?
I have a 'M by 2' matrix consisting of pixel pairs in an image. I want to find which pixel pairs occur more frequently. For this...
10년 초과 전 | 답변 수: 2 | 0
2
답변질문
Is it normal for a code with 2 nested for loops to run for more than 2 hours ?
I have a color image and I am using two for loops to separate pixel pairs. Its been running for the past 2 hours. Is it normal ?...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
How do I know the frequency of each unique pair?
*Edited by Azzi after Shounak changed his question* I have a uint8 matrix nx2, I want to know the frequency of each unique pa...
10년 초과 전 | 답변 수: 2 | 0