Solved


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

6 years ago

Solved


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 years ago

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

Question


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

6 years ago | 2 answers | 0

2

answers

Question


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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 0

| accepted

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

6 years ago | 2

Question


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

6 years ago | 1 answer | 0

1

answer

Solved


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

7 years ago

Solved


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

7 years ago

Solved


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

7 years ago

Solved


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 years ago

Solved


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 years ago

Solved


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 years ago

Solved


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

7 years ago

Solved


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 years ago

Solved


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

7 years ago

Solved


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

7 years ago

Load more