已回答
Is it me ? or something else ...
Others have addressed the other topics of this post, but I would like to comment about what I see as "reasonable expectations" f...

11 years 前 | 0

已回答
how to delete certain rows that contain string
So you want to delete any string that contains the string 'A12-1'? Or is it more general than that? Assuming it's just that one ...

11 years 前 | 0

| 已接受

已回答
Draw a line between two points
P = [1 5.2; 2 0; 3 0; 4 0; 5 9.9; 6 0; 7 0; 8 12.1]; posP = find(P(:,2)); %find where y values aren't zero. C = polyfit(...

11 years 前 | 0

| 已接受

已回答
deleting part of a string
Here's another answer, just in case the characters you want to keep don't fall in sequential order. If they don't, *regexp* with...

11 years 前 | 2

已回答
make a GUI for an existing programme
Whether you copy and paste your code into a callback of your GUI or call it from within the gui, it's going to require some modi...

11 years 前 | 2

已回答
plot and calculate error bar
It's really difficult to provide any further help without you offering a more thorough description of your problem, but the *err...

11 years 前 | 0

| 已接受

已回答
Is there a function or method that rounds a value towards a entries of a vector?
v = 1.25:10.25; x = 5.5; v(find(x-v>0,1,'last')); %round to nearest lower v(find(x-v<0,1,'first')); %round to nearest...

11 years 前 | 0

| 已接受

已回答
Help with 3D plot and meshgrid
You could use the *reshape* command to turn your matrix v into one with the same size as your mesh, then plot using a command li...

11 years 前 | 0

已回答
If I am given a image of black circle with white background, how can I find the exact center of that circle?
Is this a binary image? If not, you'll need to do some thresholding. Once you do that, you can use *regionprops* (if you have th...

11 years 前 | 2

已回答
Set GUI sliders to parameters?
In the callback for whatever GUI control is activated to perform your calculations, add in code that looks something like this: ...

11 years 前 | 0

已回答
how to find out number of rows in particular matrix of the cell?
>> a = {[1 2] [1 2; 3 4]}' >> cellfun('size',a,1) ans = 1 2 For more: help cellfun

11 years 前 | 0

| 已接受

已回答
set NaN as another color than default using imagesc
You can use the *isnan* function to find the indices of all NaNs, then set those elements to another value: Example: >>A...

11 years 前 | 0

已回答
How to display image above threshold?
mask = rawImage > N; %simple thresholding--adjust for your needs maskedImage = rawImage; %copy image maskedI...

11 years 前 | 1

已回答
GUI 'uitable' with option to add or remove rows depending on 'textbox' value
It looks like you just need to put the following i the callback of your editbox (I'm assuming you meant editbox instead of textb...

11 years 前 | 2

| 已接受

已回答
How to I plot this?
Does this do what you need? X = [1 2 3 1 1; 6 6 6 2 1; 9 8 7 1 0; 3 3 3 2 0]; hold on plot(X...

11 years 前 | 1

已回答
popupmenu in GUI, string call backs.
Are you using GUIDE for this GUI? If so, you'll need to access the "value" property of each of your popupmenus from within your ...

11 years 前 | 1

| 已接受

已回答
How to use axis(axis_handle...)?
Try putting your desired axis bounds inside a bracket. Axis accepts this as a single argument rather than four. axis(axes_ha...

11 years 前 | 0

| 已接受

已回答
how do i crop an image using its matrix data?
It's a bit hard to tell what exactly needs to be done without you defining your need in a more detailed way. Do you want to only...

11 years 前 | 0

| 已接受

已回答
Error: 'Matrix dimensions must agree' even when using a scalar to multiply with Matrix.
Based on the code you placed here, it looks like your first line is missing an *input* function and is instead just creating a s...

11 years 前 | 1

| 已接受

已回答
Training for matlab Programming
These tutorials might be of interest to you: http://www.mathworks.com/help/matlab/getting-started-with-matlab.html

11 years 前 | 1

已回答
How to delete entire row containing a certain value.
Does this work? A(any(isnan(A),2),:) = [] It looks like your "any" function was operating column-by-column instead of ro...

11 years 前 | 1

已回答
What does this syntax mean?
You can index and array with *end*. End is basically just the length of your variable. So this is saying "index from the 365th f...

11 years 前 | 0

已回答
Select graph section using ginput
It looks like you're reassigning y in your code when you call ginput. y should be the ith column of P, but it gets overwritten a...

11 years 前 | 0

| 已接受

已回答
Updating edit text box in GUI
Instead of putting your equation in the CreateFcn, put it in AOI_Callback. Also, using the handles structure instead of globa...

11 years 前 | 1

| 已接受

已回答
I have a char data. I want to extract first column from this char data.
If out1 is your string: pgs = char(regexp(out1,'p\.\d+','match')); Note that this requires out1 be a 1xn array, which it...

11 years 前 | 0

| 已接受

已回答
How to construct a matrix values by its row or column indexes?
[R C] = find(A);

11 years 前 | 0

已回答
How to construct a matrix values by its row or column indexes?
A(sub2ind(size(A),R,C)) Example: >>A = magic(4); >>R = [1 1 1; 2 2 2; 3 3 3; 4 4 4]; >>C = [1 2 3; 1 2 3; 1 2 3;...

11 years 前 | 0

已回答
indexing diagonals out of a 3d matrix
A = rand(14,14,1045); B = A(logical(repmat(eye(size(A(:,:,1))),[1 1 size(A,3)])))

11 years 前 | 0

已回答
Loading in raw image data using the Tiff class: Images return as all zeros, multiple warnings
It looks as if my problems stemmed not from the Matlab code, but from Adobe's DNG converter. The below settings in the DNG conve...

11 years 前 | 5

| 已接受

已回答
how to sort array of time format from min to max time value?
help sort Example: A = magic(5); sort(A,2) If you want to convert your time data to a numeric representation for...

11 years 前 | 0

| 已接受

加载更多