![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/4711487_1522103733423_DEF.jpg)
mounika
CALIFORNIA STATE UNIVERSITY LONG BEACH
Followers: 0 Following: 0
Feeds
提问
Array indices must be positive integers or logical values
Hello All, I am trying to rearrange the elements in a matrix based on index values using matrix indexing. I have tried multipl...
3 years 前 | 2 个回答 | 0
2
个回答已解决
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
3 years 前
提问
generate random numbers between limits and satisfy condition
Hello All, I am trying to generate two sets of 16 length random number sequences. x1, x2, x3 ...x16 y1, y2, y3 ...y16 Condit...
3 years 前 | 1 个回答 | 0
1
个回答提问
MATLAB Coder for FSK Demodulation
Hello, I am trying to generate c code for FSK Modulation and Demodulation. Following is my function for code generation: fun...
5 years 前 | 1 个回答 | 0
1
个回答提问
MATLAB Coder: Undefined function or Variable, the first assignment to a local variable determines its class
Hi, I am using MATLAB Coder to convert a simple FSK Modem to C Code. Following are my codes: Modulator Function: function m...
5 years 前 | 0 个回答 | 0
0
个回答提问
Correct phase of sine wave based on phase difference?
Hello Everyone, I have the following sample code: clear all; close all; clc; %#ok %% Sine Wave Generation: (includin...
6 years 前 | 0 个回答 | 0
0
个回答已回答
Audioread of *.m4a file problems
.m4a format should be accepted by audioread according to its <http://in.mathworks.com/help/matlab/ref/audioread.html documentati...
Audioread of *.m4a file problems
.m4a format should be accepted by audioread according to its <http://in.mathworks.com/help/matlab/ref/audioread.html documentati...
6 years 前 | 0
提问
For given Decimal number, calculate possible fractions
I am trying to convert a decimal number to possible fractions. For example, if my decimal is 0.5, the possible fractions can ...
6 years 前 | 1 个回答 | 0
1
个回答提问
.txt to .pdf using matlab
Hello Everyone, As a part of an application, I am reading my pdf file and converting them to binary: fileID = fopen(...
6 years 前 | 0 个回答 | 0
0
个回答已回答
What is block in simulink ?
They are all S-function blocks -> User-definable block written using the MATLAB S-Function API. To learn more about MATLAB S-...
What is block in simulink ?
They are all S-function blocks -> User-definable block written using the MATLAB S-Function API. To learn more about MATLAB S-...
6 years 前 | 0
| 已接受
已回答
How to calculate RMS value of a voice signal in Matlab simulink to turn on LEDs?
<https://www.mathworks.com/help/physmod/sps/powersys/ref/rms.html> Check the example in the above link, you should get an ide...
How to calculate RMS value of a voice signal in Matlab simulink to turn on LEDs?
<https://www.mathworks.com/help/physmod/sps/powersys/ref/rms.html> Check the example in the above link, you should get an ide...
6 years 前 | 0
| 已接受
已回答
How to combine the result of two scope into one?
You can use the "mux" function block to combine the two signals of interest. The output of the mux block can be fed directly int...
How to combine the result of two scope into one?
You can use the "mux" function block to combine the two signals of interest. The output of the mux block can be fed directly int...
6 years 前 | 0
| 已接受
已回答
How can I extract entries from a matrix and a vector into a new vector in a specific way?
M = [0.6,0.8;-0.8,0.6] t = [0.4;0.8] M = reshape(M,4,1) v = vertcat(M,t) Otherway: M = v(1:4,:); M ...
How can I extract entries from a matrix and a vector into a new vector in a specific way?
M = [0.6,0.8;-0.8,0.6] t = [0.4;0.8] M = reshape(M,4,1) v = vertcat(M,t) Otherway: M = v(1:4,:); M ...
7 years 前 | 0
已回答
Unique factorial design or number sequence
You can start with this: a = [4 6 8 10 12]; b= [1 2 3]; c = ones(1,6); % initialize to ones t = randi([1,5],1,1); ...
Unique factorial design or number sequence
You can start with this: a = [4 6 8 10 12]; b= [1 2 3]; c = ones(1,6); % initialize to ones t = randi([1,5],1,1); ...
7 years 前 | 0
已回答
Propagate signal from one location to another
Check the below link, this has an example on how to use phased.FreeSpace: <https://in.mathworks.com/help/phased/ref/phased.fr...
Propagate signal from one location to another
Check the below link, this has an example on how to use phased.FreeSpace: <https://in.mathworks.com/help/phased/ref/phased.fr...
7 years 前 | 0
已回答
do not show hidden file in current folder
This might help: <https://in.mathworks.com/help/matlab/ref/fileattrib.html> <https://in.mathworks.com/matlabcentral/answer...
do not show hidden file in current folder
This might help: <https://in.mathworks.com/help/matlab/ref/fileattrib.html> <https://in.mathworks.com/matlabcentral/answer...
7 years 前 | 0
已回答
What's the difference between outputs.major and outputs.minor in simulink profile?
The outputs.major and outputs.minor are related to major and minor time steps respectively. For more information on these tim...
What's the difference between outputs.major and outputs.minor in simulink profile?
The outputs.major and outputs.minor are related to major and minor time steps respectively. For more information on these tim...
7 years 前 | 0
| 已接受
已回答
How to use decimal values with fixed point typing?
a = fi(1.01) bin(a) Please refer to the following: <https://in.mathworks.com/help/fixedpoint/ref/fi.html> <https:/...
How to use decimal values with fixed point typing?
a = fi(1.01) bin(a) Please refer to the following: <https://in.mathworks.com/help/fixedpoint/ref/fi.html> <https:/...
7 years 前 | 0
| 已接受
已回答
Too many arguments error when converting .tiff to .bmp
Try this: t = Tiff('ref.tiff','r'); imageData = read(t); imwrite(imageData,'ref.bmp');
Too many arguments error when converting .tiff to .bmp
Try this: t = Tiff('ref.tiff','r'); imageData = read(t); imwrite(imageData,'ref.bmp');
7 years 前 | 0
已回答
How can I find the maximum of a given matrix and then locate the minimum value along the row of the maximum value
x=[4 2 8;5 9 1;3 10 17]; [M,I] = max(x(:)); % find maximum element in the entire matrix [I_row, I_col] = ind2sub(size(x)...
How can I find the maximum of a given matrix and then locate the minimum value along the row of the maximum value
x=[4 2 8;5 9 1;3 10 17]; [M,I] = max(x(:)); % find maximum element in the entire matrix [I_row, I_col] = ind2sub(size(x)...
7 years 前 | 0
已回答
How do I obtain accurate result for this code snippet
If just creating output as a cell array is the interest, you can try the following: squ = [1,4,9,16,25]; x = num2cell(sq...
How do I obtain accurate result for this code snippet
If just creating output as a cell array is the interest, you can try the following: squ = [1,4,9,16,25]; x = num2cell(sq...
7 years 前 | 1
已回答
Show values of fixed-point signals in Simulink?
If it is just about displaying the real "bit value", you can modify the block parameters of display by double clicking on it and...
Show values of fixed-point signals in Simulink?
If it is just about displaying the real "bit value", you can modify the block parameters of display by double clicking on it and...
7 years 前 | 0
| 已接受
已回答
How can I randomly extract a element in an array?
If it is just about how to extract an element randomly, you can try by random indexing, you can try the following for the given ...
How can I randomly extract a element in an array?
If it is just about how to extract an element randomly, you can try by random indexing, you can try the following for the given ...
7 years 前 | 0
| 已接受
已解决
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
7 years 前
提问
Error Correction Capability of Viterbi Decoder
Hello folks, I am using fec encoding followed by viterbi decoding. In this process, I observed that the viterbi decoder error...
7 years 前 | 1 个回答 | 0
1
个回答已解决
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
7 years 前
已解决
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
7 years 前
已解决
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
7 years 前
已解决
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
7 years 前