A résolu


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

plus de 11 ans il y a

Réponse apportée
How to get the y values for a given function and x values
It's a typo. You have to use y2 = feval(f, x); You could also directly write y2 = (x-2).^7;

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to use datestr(now)
[datestr(now, 'dd.mmmm') ' year ' datestr(now, 'yyyy')]

plus de 11 ans il y a | 0

Réponse apportée
error in eval command
for y=1:6 eval(sprintf('obj%d=[ch%d(1,1)+(2*ch%d(1,2))+(3*ch%d(1,3))+(4*ch%d(1,4))-30]',[y y y y y])); end

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to got about solving this loop question
Useful function are help rand diag find numel

plus de 11 ans il y a | 0

Réponse apportée
How to obtain union of two RGB Images of same size ?
The symbol '∪' is used in the paper to denote that the original image is the union of two images, one with shadows, the other wi...

plus de 11 ans il y a | 1

Réponse apportée
In this code i used boolean true and false ,but it's not working. What can i use insted of boolean true and false?
The code in the if-clause is probably wrong. First, you probably want to compare a particular element of T, i.e., T(i,j) against...

presque 13 ans il y a | 0

Réponse apportée
compare value between different arrays
You can compute two fractions a/b and b/a, and then take the minimum to ensure that the value is not above 100%. Then take the m...

presque 13 ans il y a | 0

Réponse apportée
Replacing scalar value with vector-value data
You can use the Euclidean distance between the two pixels p1 = [234;12;31]; p2 = [233;10;30]; x = norm(p1 - p2); w...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
textscan,skip 4 first line and import olny 2 columm....
fid = fopen('sample.txt'); Input all: D = cell2mat(textscan(fid, '%f%f', 'headerlines', 4)); Select just the seco...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
remove the first five letters of a string
str = str(6:end);

presque 13 ans il y a | 1

| A accepté

Réponse apportée
deleting part of a list of strings
newstr = str(:, 1:findstr(str(1,:), 'E'))

presque 13 ans il y a | 0

Réponse apportée
How can I generate random numbers with constraints?
randi was introduced in R2008A according to the internet If you do have a version of Matlab without randi, you can use the fo...

environ 13 ans il y a | 2

Réponse apportée
Finding index and count of values in an interval
This should do the job x = [1 2 3 4 5]; for i = 1:numel(x)-1 [val ind_firstentry(i)] = min(hwrect(x(i)-y)); i...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
converting RGB images to HSV images
Just multiply H by 360 and you get hue values between 0 and 360 degrees.

environ 13 ans il y a | 0

| A accepté

Réponse apportée
find value from matriks
A = rand(64, 4); ei = A(:,3) - 0.5*A(:, 1); fi = A(:,4) - 0.5*A(:, 2);

environ 13 ans il y a | 0

Réponse apportée
hello, how to convert a text file into utf-8 or utf -16 in matlab.Is there any function ?pls help me fnds..
According to http://www.mathworks.de/matlabcentral/newsreader/view_thread/238995 feature('DefaultCharacterSet', 'UTF8') ...

environ 13 ans il y a | 1

Réponse apportée
max co-ord on graph
[Y_peak ind] = max(Y) X_peak = X(ind); disp(['Function peaks at X = ' num2str(X_peak) ... ' with value ' num2str...

environ 13 ans il y a | 0

Réponse apportée
How to put strings inside the cell of an array continously ?
for i = 1:10 image_names{i} = [int2str(i) '.png']; end

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Matching certain characters of strings
Oh, I haven't realized that x were meant as placeholders for any number. In this case, use item_numbers = {'140xx1' '140xx2...

environ 13 ans il y a | 0

Réponse apportée
Create and save a file in a for cycle
data = [2 3 200 3 2 100 2 3 320]; for i = 1:size(data,1); fid = fopen(['a' int2s...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Matrix replications and form third matrix
A = rand(144, 400); B = rand(144, 1600); A(size(B, 1), size(B, 2)) = 0; D = A.^2 + B.^2; size(D)

environ 13 ans il y a | 0

Réponse apportée
How to write squarewave in matlab
t = linspace(0, 10); R = 0.3; y = R*square(t*pi); plot(t,y)

environ 13 ans il y a | 0

Réponse apportée
Matching certain characters of strings
item_number_list = { '140xx3' '140xx3' '140xx1' '145xxx' '140xx2' '140xx3'}; item_numbers = {'140xx1' '140xx2' '140xx3' '145x...

environ 13 ans il y a | 0

Réponse apportée
Using matlab to read array from a textfile
help dlmread help textread

environ 13 ans il y a | 0

Réponse apportée
Is centredFFT function really exist?
Can Matlab find your downloaded function? which centeredFFT If not, move your function to your current directory or ano...

plus de 13 ans il y a | 0

Réponse apportée
Area plot style graph
area([y(:, 1) diff(y')']) Label the x-axis from 0 to 1: Nticks = 11; xl = xlim; set(gca, 'XTick', linspace(xl(1), ...

plus de 13 ans il y a | 0

Réponse apportée
concatenation of multiple .mat file into one matrix
d = dir('*.mat'); Xall = nan(120, 1000); for i = 1:length(d) load(d(i).name) Xall(:, i) = X; % assuming that t...

plus de 13 ans il y a | 0

Réponse apportée
may i know about the VERBOSE MODE in matlab?
http://www.mathworks.de/de/help/matlab/matlab_prog/change-warning-modes.html

plus de 13 ans il y a | 0

Réponse apportée
Matlab does not seem to recognise my inputted commands
You have to define t before you can use it t = ... % whatever you need L = interpl(Lt,L,t);

plus de 13 ans il y a | 0

| A accepté

Charger plus