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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

| A accepté

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

| A accepté

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

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Matlab code for Numerical analysic
help trapz

plus de 10 ans il y a | 0

| A accepté

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

plus de 10 ans il y a | 1

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 1

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

| A accepté

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

plus de 10 ans il y a | 1

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 1

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

plus de 10 ans il y a | 1

| A accepté

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

plus de 10 ans il y a | 0

Réponse apportée
Can i use matlab to generate audio signals.
help sound

plus de 10 ans il y a | 0

Réponse apportée
Problem with legend in a plot
h(1) = plot(x, sin(x), ':') hold on h(2) = plot(x, cos(x), '-') legend(h, {'sin', 'cos'})

plus de 10 ans il y a | 1

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

plus de 10 ans il y a | 1

| A accepté

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

plus de 10 ans il y a | 1

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 0

| A accepté

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

plus de 10 ans il y a | 2

| A accepté

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 2

| A accepté

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

plus de 10 ans il y a | 2

| A accepté

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

plus de 10 ans il y a | 1

| A accepté

Charger plus