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

10 years ago | 0

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

10 years ago | 0

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

10 years ago | 0

| accepted

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

10 years ago | 0

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

10 years ago | 0

| accepted

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

10 years ago | 0

| accepted

Answered
Matlab code for Numerical analysic
help trapz

10 years ago | 0

| accepted

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

10 years ago | 1

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

10 years ago | 0

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

10 years ago | 1

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

10 years ago | 0

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

10 years ago | 0

| accepted

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

10 years ago | 1

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

10 years ago | 0

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

10 years ago | 0

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

10 years ago | 1

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

10 years ago | 1

| accepted

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

10 years ago | 0

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

10 years ago | 0

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

10 years ago | 1

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

10 years ago | 1

| accepted

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

10 years ago | 1

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

10 years ago | 0

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

10 years ago | 0

| accepted

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

10 years ago | 2

| accepted

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

10 years ago | 0

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

10 years ago | 2

| accepted

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

10 years ago | 2

| accepted

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

10 years ago | 1

| accepted

Load more