Feeds
질문
Stack overflow in mex
Hi Friends, I have one confusion regarding a mex code. The code is giving me a segmentation fault. #include<math.h> #...
거의 7년 전 | 답변 수: 4 | 0
4
답변질문
Matlab Coder : Size Mismatch Issue
Hi, I am using MATLAB coder to generate mex files for the matlab. Here is one error I am getting in line x2_est_sym = x...
거의 7년 전 | 답변 수: 2 | 0
2
답변질문
MATLAB expression 'R_loc' is not of the correct complexness.
Hi, This is an issue I am getting using matlab coder. While declaring C the type I used was complex. But during run time some ...
11년 초과 전 | 답변 수: 0 | 0
0
답변답변 있음
how to covariance of 16*16 matrix
cov(matrix). See this http://www.mathworks.in/help/matlab/ref/cov.html
how to covariance of 16*16 matrix
cov(matrix). See this http://www.mathworks.in/help/matlab/ref/cov.html
11년 초과 전 | 0
답변 있음
Function classify in matlab
The classifiers accuracy can never be 100%. The classifiers gets trained on training set and then work on the data. Porbably you...
Function classify in matlab
The classifiers accuracy can never be 100%. The classifiers gets trained on training set and then work on the data. Porbably you...
11년 초과 전 | 0
답변 있음
How to extract pixel values in 8-bit binary format from an image?
Once you extract the pixel from image quantize it to (0,256) fixed point representation. Let the pixel be p(i,j) the output shou...
How to extract pixel values in 8-bit binary format from an image?
Once you extract the pixel from image quantize it to (0,256) fixed point representation. Let the pixel be p(i,j) the output shou...
11년 초과 전 | 0
질문
MEXCallMatlab very slow. Suggest alternate
Hi, I am working on a MEX file. I am using MEXCallMatlab which is very slow to call matlab inbuilt function as well as user de...
거의 12년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
거의 12년 전
문제를 풀었습니다
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
거의 12년 전
문제를 풀었습니다
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
거의 12년 전
문제를 풀었습니다
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
거의 12년 전
문제를 풀었습니다
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...
거의 12년 전
문제를 풀었습니다
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 ...
거의 12년 전
답변 있음
how to choose homogeneous blocks from image in matlab
Segment the image and pick up any region.
how to choose homogeneous blocks from image in matlab
Segment the image and pick up any region.
거의 12년 전 | 0
문제를 풀었습니다
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...
거의 12년 전
답변 있음
taking part of the picture
Here is an error you can't use imshow on an image. You have to first read it in a variable then use imshow on that. imshow(ROI) ...
taking part of the picture
Here is an error you can't use imshow on an image. You have to first read it in a variable then use imshow on that. imshow(ROI) ...
대략 12년 전 | 0
| 수락됨
문제를 풀었습니다
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
대략 12년 전
문제를 풀었습니다
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.
대략 12년 전
문제를 풀었습니다
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 ...
대략 12년 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
대략 12년 전
답변 있음
How can I reduce the time complexity of this matlab code.. Its taking lot of time to execute when an image is fed as input.
Vectorize your code. Example you don't need inner loops you can use sum to get the value of counts. In the outer two loops you a...
How can I reduce the time complexity of this matlab code.. Its taking lot of time to execute when an image is fed as input.
Vectorize your code. Example you don't need inner loops you can use sum to get the value of counts. In the outer two loops you a...
대략 12년 전 | 1
| 수락됨
답변 있음
How can I find a number in a matrix?
http://www.mathworks.in/help/matlab/ref/find.html. see it.
How can I find a number in a matrix?
http://www.mathworks.in/help/matlab/ref/find.html. see it.
대략 12년 전 | 0
| 수락됨
답변 있음
find the position of a specific cell entry
[truefalse, index] = ismember('USA', B)
find the position of a specific cell entry
[truefalse, index] = ismember('USA', B)
대략 12년 전 | 0
| 수락됨
답변 있음
Scaling the values to specific range
D1=int16(S*32768) maps your any integer S*32768 outside the range to 32768 or for S>1 the output will be 32768(2^15) otherwise i...
Scaling the values to specific range
D1=int16(S*32768) maps your any integer S*32768 outside the range to 32768 or for S>1 the output will be 32768(2^15) otherwise i...
대략 12년 전 | 0
| 수락됨
답변 있음
Converting decimal value to binary
http://www.mathworks.in/help/matlab/ref/dec2bin.html. See this. It will do 2's complement for negative numbers
Converting decimal value to binary
http://www.mathworks.in/help/matlab/ref/dec2bin.html. See this. It will do 2's complement for negative numbers
대략 12년 전 | 0
| 수락됨
답변 있음
Multiple Dice Rolls Help
Here is what I feel will work fine % function SumDice=RollDice(NumDice,NumRolls) distribution=zeros(NumDice*6,1); for rol...
Multiple Dice Rolls Help
Here is what I feel will work fine % function SumDice=RollDice(NumDice,NumRolls) distribution=zeros(NumDice*6,1); for rol...
대략 12년 전 | 0
답변 있음
how to see x and y cordinate in the plot beyond its end point?
HI Satish, If you dont have any information about the values beyond 5 and 25 then you have to extrapolate. Well the typ...
how to see x and y cordinate in the plot beyond its end point?
HI Satish, If you dont have any information about the values beyond 5 and 25 then you have to extrapolate. Well the typ...
대략 12년 전 | 0