Gelöst


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

mehr als 6 Jahre vor

Gelöst


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]

mehr als 6 Jahre vor

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 1

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

mehr als 6 Jahre vor | 0

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 0

| akzeptiert

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

mehr als 6 Jahre vor | 1

Frage


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

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

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

fast 7 Jahre vor | 0

| akzeptiert

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

fast 7 Jahre vor | 2

Frage


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

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


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

etwa 7 Jahre vor

Gelöst


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

etwa 7 Jahre vor

Gelöst


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

etwa 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Mehr laden