문제를 풀었습니다


05 - Vector Equations 2
Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...

6년 초과 전

문제를 풀었습니다


Repeat elements of a vector
Repeat each elements of a given vector according to their values. say x=[1,2,1,3] y=[1,2,2,1,3,3,3]

6년 초과 전

답변 있음
append new row in loop
Its a simple concatanation operation, pass the values e as L is your constant matrix and number iof loops as L = [13 25 1...

6년 초과 전 | 0

답변 있음
how to remove the zero from the first column and last row (4,1) to make it empty. it change my all values by subtracting.
Not specified what subtraction operation here. And you can't remove zero and put empty here this lead to non structure of the ...

6년 초과 전 | 1

| 수락됨

답변 있음
Summation Equation in matlab code
Assuming are vectocrs of the length number of pixels in the image(N) sigma = (1/N)*sum(C.^2-mu.^2);

6년 초과 전 | 0

| 수락됨

답변 있음
storing for loop answer into matrix
Yes you can write by adding the loop variavle value to index of the locations. If the result of the find(B2) is same length for...

6년 초과 전 | 0

| 수락됨

답변 있음
How to check where the MATLAB folder is installed and how to check compiler version
To check installed MATLAB folder/MATLAB root folder use MATLAB command >> matlabroot ans = 'C:\Program Files\MATL...

6년 초과 전 | 0

답변 있음
find values from array
First 3 Maximum values sorted_values_des = sort(A, 'descend'); maximun_3 = sorted_values_des(1:3); Coming to minimum values ...

6년 초과 전 | 0

답변 있음
dont want the number if its a part of a complex number
MATALB convert all numbers float if any number is float in the array as it Auto type cast so we need to convert from the manipul...

6년 초과 전 | 1

답변 있음
Hello guys, i want to add threshold on my probability density function that is vertical line on x coordinate, how to do that pls help me
In MATLAB R2018b mathworks introduced xline(xvalue) command for this kind of requirement In your context the code is hold on;...

6년 초과 전 | 1

답변 있음
Storing data using cellstr
I understood, convert the each character of the input string(usertext) to 0/1 if the ASCII value greater than 95 then i would ...

6년 초과 전 | 0

답변 있음
How an script for get the product of G(x)=(x-x1).*(x-x2)...(X-Xn)
insufficient data Assuming all the data which may match with your context n = 8; % number of values X = 9; % X...

6년 초과 전 | 0

| 수락됨

답변 있음
Add / before _ in a string
There are many ways to do this, the simplest way is by the command "strrep" str = 'Mean_Tumor_Radius_prolif' replaced_str = s...

6년 초과 전 | 0

| 수락됨

답변 있음
How to find the distances between two points in X-Y plane?
You can use pdist command if you have Statistics and Machine Learning Toolbox with different variations of distance metrics l...

6년 초과 전 | 1

질문


Insert desired number of spaces in the string contains numerical value
Hi, I need to print the below string which is in loop as 0 STR 1 where the first character ...

거의 7년 전 | 답변 수: 2 | 0

2

답변

질문


Correlation between two row matrices
I am trying to do correlation between two row matrices but i am getting all NaN? a = [-1 -1 -1 -1 -1 1 1 ...

대략 7년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Could anyone help me to solve the issue.
Since the matrix size assigning to the variable "swarm_pos" is deifferent for each iteration, initialize the matrix as cell arra...

대략 7년 전 | 0

| 수락됨

답변 있음
Extracting numbers from a G-code file
I put all your given data as "gcodefile.txt" , hope help you this matchWords = {'X','Y','E'}; % Your required letters dat...

대략 7년 전 | 2

질문


How can I extract only large connected region with eliminating unwanted lines in the segmented binary image?
I have done segmentation operation on MRI image, in the last step i got required region with unwated lines/region. Out of that I...

대략 7년 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


only input
Return the output without writing any code into the function.

7년 초과 전

문제를 풀었습니다


Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

7년 초과 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

7년 초과 전

문제를 풀었습니다


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

7년 초과 전

문제를 풀었습니다


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

7년 초과 전

문제를 풀었습니다


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

7년 초과 전

문제를 풀었습니다


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

7년 초과 전

문제를 풀었습니다


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

거의 8년 전

문제를 풀었습니다


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

거의 8년 전

더 보기