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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

| aceptada

Respondida
Matlab code for Numerical analysic
help trapz

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 1

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

más de 10 años hace | 0

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

más de 10 años hace | 1

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 1

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 1

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

más de 10 años hace | 1

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 1

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

más de 10 años hace | 1

| aceptada

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

más de 10 años hace | 1

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 2

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 2

| aceptada

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

más de 10 años hace | 2

| aceptada

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

más de 10 años hace | 1

| aceptada

Cargar más