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

mehr als 10 Jahre vor | 1

| akzeptiert

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

mehr als 10 Jahre vor | 1

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

Beantwortet
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];

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 1

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

mehr als 10 Jahre vor | 0

Beantwortet
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])...

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 1

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

Beantwortet
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,[]))

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 1

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 1

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

Mehr laden