Feeds
답변 있음
for loop
The only thing that doesn't look right to me is where you have elseif size(qq)==[1,#] / size(qq)==[1,#+1] Where # is 6...
for loop
The only thing that doesn't look right to me is where you have elseif size(qq)==[1,#] / size(qq)==[1,#+1] Where # is 6...
대략 14년 전 | 0
답변 있음
Store fllepath in variable
Yes. Just store it as a string. filepath = 'C:\Users\ecorbett\Documents\MATLAB\Labelers\fred'; filename = 'text.csv'; ...
Store fllepath in variable
Yes. Just store it as a string. filepath = 'C:\Users\ecorbett\Documents\MATLAB\Labelers\fred'; filename = 'text.csv'; ...
14년 초과 전 | 1
| 수락됨
답변 있음
Determining Host ID
Does this help? http://www.mathworks.com/support/solutions/en/data/1-171PI/
Determining Host ID
Does this help? http://www.mathworks.com/support/solutions/en/data/1-171PI/
14년 초과 전 | 0
답변 있음
How do I access and modify only the non diagonal entries in a matrix?
If tmp is your matrix, try: tmp-diag(diag(tmp)) %works only with square matrices OR triu(tmp,1)+tril(tmp,-1) Both of...
How do I access and modify only the non diagonal entries in a matrix?
If tmp is your matrix, try: tmp-diag(diag(tmp)) %works only with square matrices OR triu(tmp,1)+tril(tmp,-1) Both of...
14년 초과 전 | 0
답변 있음
How did you learn MATLAB?
I started Matlab by being thrown into it through my internship at Sandia Natl. Labs two years ago. I learned how to program in M...
How did you learn MATLAB?
I started Matlab by being thrown into it through my internship at Sandia Natl. Labs two years ago. I learned how to program in M...
14년 초과 전 | 0
답변 있음
Changing the names of text files in a directory
Maybe this will do? (Run this under your NAIC directory.) Assuming you are on a windows machine: files = dir('*.txt.*'); na...
Changing the names of text files in a directory
Maybe this will do? (Run this under your NAIC directory.) Assuming you are on a windows machine: files = dir('*.txt.*'); na...
14년 초과 전 | 1
답변 있음
Nested loop problem !
Will this do what you are looking for: *EDIT:* a(:,3:end) = b(:,1:end-2); OR, if you really wanted a for loop: d = ...
Nested loop problem !
Will this do what you are looking for: *EDIT:* a(:,3:end) = b(:,1:end-2); OR, if you really wanted a for loop: d = ...
14년 초과 전 | 1
| 수락됨
답변 있음
Finding diag of two cells
Does this work for you? diag(cell2mat([a b])) Note that the solution is the same as: diag([a{1} a{2}]) To get the di...
Finding diag of two cells
Does this work for you? diag(cell2mat([a b])) Note that the solution is the same as: diag([a{1} a{2}]) To get the di...
14년 초과 전 | 0
답변 있음
changes of data
You would not be able to use a matrix, as matrices can only contain the same data types (all numerical or all character arrays) ...
changes of data
You would not be able to use a matrix, as matrices can only contain the same data types (all numerical or all character arrays) ...
14년 초과 전 | 0
| 수락됨
답변 있음
Marking where one clicked with ginput
I did something similar to this when measuring diameters of soot particles. I would frequently get lost as to where I last click...
Marking where one clicked with ginput
I did something similar to this when measuring diameters of soot particles. I would frequently get lost as to where I last click...
14년 초과 전 | 1
| 수락됨
답변 있음
Control Break Processing
Here's a dirty method, but no handwritten loops as requested. Assume tmp contains your 22x3 cell array of data (the 4th column ...
Control Break Processing
Here's a dirty method, but no handwritten loops as requested. Assume tmp contains your 22x3 cell array of data (the 4th column ...
14년 초과 전 | 0
답변 있음
Imprecise Basic operations
See: http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F Welcome to the world of floa...
Imprecise Basic operations
See: http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F Welcome to the world of floa...
거의 15년 전 | 2
| 수락됨
답변 있음
Specify columns inside a for loop
You are only checking of the data within any given column is between 1 and 8, which isn't what you describe to be wanting. Ju...
Specify columns inside a for loop
You are only checking of the data within any given column is between 1 and 8, which isn't what you describe to be wanting. Ju...
거의 15년 전 | 0
| 수락됨
답변 있음
Writing variable as filename using csvwrite
Try writing: csvwrite(filename,A); %without quotes
Writing variable as filename using csvwrite
Try writing: csvwrite(filename,A); %without quotes
거의 15년 전 | 0
답변 있음
dilation of specific objects
First, I would label regions in your image: bwl = bwlabel(img,8); Area of regions: a = regionprops(img,'area');...
dilation of specific objects
First, I would label regions in your image: bwl = bwlabel(img,8); Area of regions: a = regionprops(img,'area');...
거의 15년 전 | 0
| 수락됨
답변 있음
Counting number of zeros in column or row, without looping
Given A: idx = A~=0; c = sum(idx,1); r = sum(idx,2);
Counting number of zeros in column or row, without looping
Given A: idx = A~=0; c = sum(idx,1); r = sum(idx,2);
거의 15년 전 | 1
| 수락됨
답변 있음
Getting data values from a plot
User interpolation x = [1 2 4 5]; y = [1 3 4 9]; xi = x(1):.01:x(end); %values between x yi = interp1(x,y,x...
Getting data values from a plot
User interpolation x = [1 2 4 5]; y = [1 3 4 9]; xi = x(1):.01:x(end); %values between x yi = interp1(x,y,x...
거의 15년 전 | 0
| 수락됨
답변 있음
Manipulation of different size of matrices with strings and numbers
Look up the documentation for CELL, it might suit your needs. doc cell In regular matrices, you cannot mix data ty...
Manipulation of different size of matrices with strings and numbers
Look up the documentation for CELL, it might suit your needs. doc cell In regular matrices, you cannot mix data ty...
거의 15년 전 | 2
답변 있음
montage function
The montage function allows you to input your own path to images that you want to use. doc montage Example, if the pictures...
montage function
The montage function allows you to input your own path to images that you want to use. doc montage Example, if the pictures...
거의 15년 전 | 1
| 수락됨
답변 있음
I want a button to be pressed in MATLAB GUI when Enter key is pressed. How to do it?
I do something similar to this. Use keypress functions, and check to see if the current character being pressed is the enter key...
I want a button to be pressed in MATLAB GUI when Enter key is pressed. How to do it?
I do something similar to this. Use keypress functions, and check to see if the current character being pressed is the enter key...
거의 15년 전 | 1
답변 있음
Sorting Cell stucture with different data types
How about this one: [d ix] = sort(C{12}); newC = cellfun(@(x)x(ix),C,'un',0);
Sorting Cell stucture with different data types
How about this one: [d ix] = sort(C{12}); newC = cellfun(@(x)x(ix),C,'un',0);
거의 15년 전 | 0
| 수락됨
답변 있음
Last Axes Display Image
You have a scope issue. Try doing this instead (note the "end"s) function Axes N.fh=figure('unit','pix',... 'Position',[40...
Last Axes Display Image
You have a scope issue. Try doing this instead (note the "end"s) function Axes N.fh=figure('unit','pix',... 'Position',[40...
거의 15년 전 | 2
답변 있음
Challenge - Change my avatar colors
My "spy" command gives me a picture of a dog: spy To change the background and outline color in one shot: whitebg To c...
Challenge - Change my avatar colors
My "spy" command gives me a picture of a dog: spy To change the background and outline color in one shot: whitebg To c...
거의 15년 전 | 0
| 수락됨




