Resuelto


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]

más de 11 años hace

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

más de 11 años hace | 0

| aceptada

Respondida
How to use datestr(now)
[datestr(now, 'dd.mmmm') ' year ' datestr(now, 'yyyy')]

más de 11 años hace | 0

Respondida
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

más de 11 años hace | 0

| aceptada

Respondida
How to got about solving this loop question
Useful function are help rand diag find numel

más de 11 años hace | 0

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

más de 11 años hace | 1

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

| aceptada

Respondida
remove the first five letters of a string
str = str(6:end);

casi 13 años hace | 1

| aceptada

Respondida
deleting part of a list of strings
newstr = str(:, 1:findstr(str(1,:), 'E'))

casi 13 años hace | 0

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

alrededor de 13 años hace | 2

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

alrededor de 13 años hace | 0

| aceptada

Respondida
converting RGB images to HSV images
Just multiply H by 360 and you get hue values between 0 and 360 degrees.

más de 13 años hace | 0

| aceptada

Respondida
find value from matriks
A = rand(64, 4); ei = A(:,3) - 0.5*A(:, 1); fi = A(:,4) - 0.5*A(:, 2);

más de 13 años hace | 0

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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

Respondida
Matching certain characters of strings
item_number_list = { '140xx3' '140xx3' '140xx1' '145xxx' '140xx2' '140xx3'}; item_numbers = {'140xx1' '140xx2' '140xx3' '145x...

más de 13 años hace | 0

Respondida
Using matlab to read array from a textfile
help dlmread help textread

más de 13 años hace | 0

Respondida
Is centredFFT function really exist?
Can Matlab find your downloaded function? which centeredFFT If not, move your function to your current directory or ano...

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

Cargar más