A résolu


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

plus de 6 ans il y a

A résolu


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]

plus de 6 ans il y a

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
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);

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 1

Réponse apportée
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;...

plus de 6 ans il y a | 1

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 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 ...

presque 7 ans il y a | 2 réponses | 0

2

réponses

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

environ 7 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 7 ans il y a | 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...

environ 7 ans il y a | 1 réponse | 0

1

réponse

A résolu


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

environ 7 ans il y a

A résolu


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

environ 7 ans il y a

A résolu


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

environ 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

plus de 7 ans il y a

A résolu


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

presque 8 ans il y a

Charger plus