Resuelto


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

más de 6 años hace

Resuelto


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]

más de 6 años hace

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

más de 6 años hace | 0

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

más de 6 años hace | 1

| aceptada

Respondida
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);

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 1

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

más de 6 años hace | 1

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 1

Pregunta


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

más de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 7 años hace | 1 respuesta | 0

1

respuesta

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

casi 7 años hace | 0

| aceptada

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

casi 7 años hace | 2

Pregunta


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

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Resuelto


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

alrededor de 7 años hace

Resuelto


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

alrededor de 7 años hace

Resuelto


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

alrededor de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Resuelto


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

más de 7 años hace

Cargar más