Respondida
Matlab Doesn't Recognize Fits Files (evalin, sprintf)?
You forgot to put the image name into quotation marks to mark them as strings; note that you have to use two because they appear...

más de 10 años hace | 1

| aceptada

Respondida
Help with fitting linear equation
help robustfit the final exampel contains also a standard linear regression using "regress".

más de 10 años hace | 1

Respondida
Checking to see if a character is in a string array, then deleting entries where this character isn't in a string
To delete all entries with an 'a' from your dictionary dictionary = {'a' 'b' 'ba' 'c' 'hallo'}; idx = ~cellfun(@isempty, s...

más de 10 años hace | 0

| aceptada

Respondida
i am working with huge data (1800000x39 mtrix) in MATLAB. I have to extract a block of matrix from certain interval out of the this large matrix. How can i concatenate the matrix from each iteration.
First generate an index of all the rows you need, an then use this index to get the small matrix m: idx = cell2mat(arrayfun...

más de 10 años hace | 0

Respondida
How to do: Multiple Row Allocation within a for loop for a Variable in GF (2^m)
I would guess that the following works B{i} = [x0, y0];

más de 10 años hace | 0

| aceptada

Respondida
I want to read an image from folder in away that every time i run my code i could choose another image ?
Suppose you have jpg images in the current folder. First you read a description of the files d = dir('*.jpg'); Now each t...

más de 10 años hace | 1

Respondida
Is there Auto image cutting function???
To crop a 2D image I: M = (I==I(1,1)); Ic = I(~all(M,2), ~all(M)); This would also remove a black horizontal line that ...

más de 10 años hace | 0

Respondida
I need help with defining while loops?
Do you want to put the digits of a "a" and "b" into the elements of a matrix? The you can use this code: M = num2str([a; b])...

más de 10 años hace | 0

Respondida
Matrix help please?
You need another loop for col = 1:cols nested within the "for row" loop.

más de 10 años hace | 0

Respondida
How can increase the size of a plot with multiple plots
You can use subtightplot <http://www.mathworks.com/matlabcentral/fileexchange/39664-subtightplot>

más de 10 años hace | 0

| aceptada

Respondida
delete words from list based on logical statement
Another way would be to use strvcat List = {'abatable';'abate';'abatement';'abater';'dog';'cat'; ... 'make';'aba...

más de 10 años hace | 0

Respondida
Combine columns from different matrix
Or simply reshape out = reshape(vertcat(A,B,C), 3, [])

más de 10 años hace | 1

Respondida
Hey guys! I need to find the low points
dh = diff([realmax h realmax]) > 0; h(~dh(1:end-1) & dh(2:end))

más de 10 años hace | 0

Respondida
exiting code if condition is met
if length(dict)=1 newguess=dict else %bunch of code end

más de 10 años hace | 0

| aceptada

Respondida
How to make a random vector in Matlab as a ones and zeros but under control?
r = zeros(1,256); r(randperm(256, 90)) = 1;

más de 10 años hace | 0

| aceptada

Respondida
Annotate multipl plots with text
Well, you are aware of the x and y pos, because you can plot the line. You can do the following x = 1:10+randi(10); y = [r...

más de 10 años hace | 0

| aceptada

Respondida
error using open line 102
Probably the file you like to open is not in your path, or you do not have the permission to open the file.

más de 10 años hace | 0

Respondida
using For loop to represent positive intergers with the corresponding #. And modifying the script to write out a triangular pattern with a decreasing number of #'s on each successive line
Use input to get number, and repmat to replicate '#' number times. To count down, use for i=num:-1:1 To display num #'s...

más de 10 años hace | 0

Respondida
How to go one line before in a while loop ?
Store the line before and use it if needed: tline = []; while ~feof(fileID) linebefor...

más de 10 años hace | 0

Respondida
Divide a vector size into indivisible numbers
Avg=mean(reshape(A(1:770),10,[])) or more general Avg=mean(reshape(A(1:floor(numel(A)/10)*10),10,[]))

más de 10 años hace | 0

| aceptada

Respondida
last letter in a string
x = 'ear'; lastletter = x(end);

más de 10 años hace | 1

| aceptada

Respondida
Hi,I don't understand why this is not right,I am a completely new learner!
plot3 assumes three arguments. Use plot instead plot(x, V0)

más de 10 años hace | 0

| aceptada

Respondida
How to make 4 different colour on four different quadrant?
Use atan2 to get the four-quadrant inverse tangent.

más de 10 años hace | 0

Respondida
input a 1*3 vector
Use brackets when entering the input >> x=input('your guess') your guess[1 2 3] x = 1 2 3

más de 10 años hace | 0

Respondida
Error: Conversion to double from cell is not possible
Try x = {sum(matchcounts_ab,1) sum(matchcounts_ba,1) sum(matchcounts_AB,1)} whos x whos M You try to assign a cel...

más de 10 años hace | 0

Respondida
taking second mode from strings
You can compress your dictionary to a single string of letters and then remove the most common letter from the string. Then find...

más de 10 años hace | 0

Respondida
Compare pairs in an array with every other pair
Your code is correct. This produces all pairs in variable "pairs". A distance function is usually symmetric, so the the distance...

más de 10 años hace | 1

| aceptada

Respondida
Analyze a variable number of datas
N = size(a,1) for i=1:N subplot(1,N,i), plot(a(i,:)) end

más de 10 años hace | 0

Respondida
Get the common lowest values of 2 datasets?
[~, idx] = min(a); min1 = [a(idx) b(idx)] [~, idx] = min(b); min2 = [a(idx) b(idx)]

más de 10 años hace | 0

Respondida
finding most common letter in a bunch of words
x={'abac';'abaca';'abacate';'abacay';'abacinate';'abacination';'abaciscus'}; [h c] = hist(double([x{:}]), double('a':'z')) ...

más de 10 años hace | 0

Cargar más