Beantwortet
How can i find co-ordinates (x,y) of white lines in the image?
[y, x] = ind2sub(size(I), find(I > 0));

mehr als 10 Jahre vor | 0

Beantwortet
How to implement this equation in matlab,i am basic level?
T and Vt can be of arbitrary size and dimensions, as long as both T and Vt have the same size and dimensions. ind = Rt >=...

mehr als 10 Jahre vor | 0

Beantwortet
Resorting a list generated by subdirectories
Have a look at <http://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort Natural-Order Filename Sor...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
morphological opening of volumetric data.
For 3D data you need a 3D morphological structuring element, given by a 3D matrix. You create a block of ones of height, width a...

mehr als 10 Jahre vor | 0

Beantwortet
image and video processing
ROI = rand(241,77) > 0; % sample data any(ROI) give 1 for each column that contains at least one 1. acc = nnz(any(ROI))/...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
Are all grayscale images of the size 256*256. Please clarify
The size of your image is 289 x 318, as returned by the size command. Why do you think that the size is 256*256? A grayscale ima...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab code for Numerical analysic
help trapz

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
how to output how many numbers in the range are prime numbers using the function that i created?
I have correct the code and made several remarks; if you call the function without argument X, the user is asked to input the ra...

mehr als 10 Jahre vor | 1

Beantwortet
Convert string to a cell, array or matrix
A string is a 1Xn matrix of type char S = 'hallo'; You can convert it to a numerical matrix using M = double(S); ...

mehr als 10 Jahre vor | 0

Beantwortet
plotting cardioid and circle in one graph
Use polar theta = linspace(0, 2*pi); polar(theta, 1+cos(theta)) hold on polar(theta, 3*cos(theta), 'r') or if y...

mehr als 10 Jahre vor | 1

Beantwortet
How to plot axis with origin (0,0,0) on 3D plot
Since R2015b, you can use ax.XAxisLocation = 'origin'; ax.YAxisLocation = 'origin'; For older versions, have a look a...

mehr als 10 Jahre vor | 0

Beantwortet
Some questions with histograms
The histogram counts values in a range, the mode counts occurrences of numbers. So for example, if X = [1 1 1 11 11 12 13 14 15]...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
How to index cell Matrix with a logical matrix?
Not exactly want you want, but close: C = A; C(B ~= 1) = ' '

mehr als 10 Jahre vor | 1

Beantwortet
Import and modify " .txt" files
Copy those lines that have four numbers: fid = fopen('file.txt', 'r'); fid2 = fopen('file2.txt', 'w'); line = fgets...

mehr als 10 Jahre vor | 0

Beantwortet
How do I access and edit a cell array using a double for indexes?
results2 = cellfun(@(c) find(ismember(cities, c)), results);

mehr als 10 Jahre vor | 0

Beantwortet
How to load data from other directory?
Use '..' to refer to the folder that contains the current folder. To load ../folderName1/folderName1/filename.ext robustly on di...

mehr als 10 Jahre vor | 1

Beantwortet
I have a plot that I set to a black background and yellow square points. When I publish the script, the plot has a white background. How do I ensure the published document has the same plot as my script?
Please have a look at "Specifying a Custom Figure Window" in <http://de.mathworks.com/help/matlab/matlab_prog/specifying-output-...

mehr als 10 Jahre vor | 1

| akzeptiert

Beantwortet
problem with saving variables to .mat file- the variables of the old .mat files are changing after saving new ones
That's not possible. You have probably overwritten the old mat files. Please double check your code. If you still think that thi...

mehr als 10 Jahre vor | 0

Beantwortet
Can i use matlab to generate audio signals.
help sound

mehr als 10 Jahre vor | 0

Beantwortet
Problem with legend in a plot
h(1) = plot(x, sin(x), ':') hold on h(2) = plot(x, cos(x), '-') legend(h, {'sin', 'cos'})

mehr als 10 Jahre vor | 1

Beantwortet
Greek letters and label alignment in boxplot graph
To get Greek letters Parameterset = repmat({'Base Case' ['Case ' char(945)] ['Case ' char(946)] 'Case r' ['Case ' char(947)...

mehr als 10 Jahre vor | 1

| akzeptiert

Beantwortet
How can I convert a string to a function input?
You can do this eval(['plot(' str ')']) but why do you want to? Using eval often leads to messy code, and there are bette...

mehr als 10 Jahre vor | 1

Beantwortet
Why does scatter does not read a file as a parameter and how do I classify my data?
Read data data = csvread('../../Downloads/iris_data.csv') For a scatter plot of column 2 vs 1 scatter(data(:,1), data...

mehr als 10 Jahre vor | 0

Beantwortet
How can I fix the error of NaN?
The code breaks when you want to compute alt=atan(wt/wr); with wr = 0, resulting in alt = NaN. Instead, use alt =...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
Filling Cell Array with Empty value
for i = 1:numel(Result) [r, c]= size(Result{i}); assert(c == 1, 'Number of columns must be 1.') if r < 5, Resu...

mehr als 10 Jahre vor | 2

| akzeptiert

Beantwortet
Can someone tell me what I am doing wrong with this loop?
Do you want 11 runs? Then just use one loop for l=1:mstlength ls = mst(l,1); ps = mst(p,2); plot... end ...

mehr als 10 Jahre vor | 0

Beantwortet
Plot the values between the range
h = bar([10 25 45; 5 5 5]', 'stacked'); set(h(1), 'FaceColor', 'w', 'EdgeColor', 'w')

mehr als 10 Jahre vor | 2

| akzeptiert

Beantwortet
how to start with 0 (zero) in for loop?
Use for i = 1:n_slice+1 x(i) = (i-1)*deltar;

mehr als 10 Jahre vor | 2

| akzeptiert

Beantwortet
How to plot ROC curve?
I agree that the curves look strange. If you decrease the threshold, you cannot get a smaller true positive rate. The rate can o...

mehr als 10 Jahre vor | 1

| akzeptiert

Mehr laden