回答済み

Q: How to remove outline circle in this image?

A simple method is to use "bwlabel". This assigns each of the non-touching white areas a unique number. You can then pick each o...

Q: How to remove outline circle in this image?

A simple method is to use "bwlabel". This assigns each of the non-touching white areas a unique number. You can then pick each o...

10年弱 前 | 0

回答済み

Synchronise real time to simulation time

If you use the "sim" command to run a simulink model, via matlab code, you can use tic & toc to measure how long it took to comp...

Synchronise real time to simulation time

If you use the "sim" command to run a simulink model, via matlab code, you can use tic & toc to measure how long it took to comp...

10年弱 前 | 0

回答済み

average of each two vectors of a matrix

(x(2:2:10,:) + x(1:2:9,:))/2 Thats the "simple" answer. There are other methods that are more flexible, but which need a lit...

average of each two vectors of a matrix

(x(2:2:10,:) + x(1:2:9,:))/2 Thats the "simple" answer. There are other methods that are more flexible, but which need a lit...

10年弱 前 | 1

| 採用済み

回答済み

Undefined function 'times' for input arguments of type 'cell'

When you want to access the contents of "M", you need to access it like this: M{:,1}

Undefined function 'times' for input arguments of type 'cell'

When you want to access the contents of "M", you need to access it like this: M{:,1}

10年弱 前 | 1

| 採用済み

回答済み

'for loop' for beginners?

The error is because you're trying to get the user to enter a list of numbers with a function that only allows ONE number to be ...

'for loop' for beginners?

The error is because you're trying to get the user to enter a list of numbers with a function that only allows ONE number to be ...

10年弱 前 | 0

回答済み

Best way to nest parfoor in for loops?

There are a few things to consider - 1. Is each loop iteration entirely independent of the prior ones? - If not, you can't ...

Best way to nest parfoor in for loops?

There are a few things to consider - 1. Is each loop iteration entirely independent of the prior ones? - If not, you can't ...

10年弱 前 | 1

| 採用済み

回答済み

help with this basic matlab code..

The answer you're looking for is actually really really really horrible: Mean_process_cut_cut_image_posi = rot90(cut_2,3); ...

help with this basic matlab code..

The answer you're looking for is actually really really really horrible: Mean_process_cut_cut_image_posi = rot90(cut_2,3); ...

10年弱 前 | 0

回答済み

generate random numbers with exact mean and std

A sequence of equal numbers of -1 and 1 has a mean of 0 and a population standard deviation of precisely 1. That sequence of...

generate random numbers with exact mean and std

A sequence of equal numbers of -1 and 1 has a mean of 0 and a population standard deviation of precisely 1. That sequence of...

10年弱 前 | 0

回答済み

Problem with logical indexing with arbitrary indices

aarray(find(r(1,1)==1)) = bindices(end); A. That's not logical indexing. r(1,1) == 1 can only return a scalar logical ...

Problem with logical indexing with arbitrary indices

aarray(find(r(1,1)==1)) = bindices(end); A. That's not logical indexing. r(1,1) == 1 can only return a scalar logical ...

10年弱 前 | 0

回答済み

what's the difference between handles and hObject?

handles is a structure holding ALL of the handles for the GUI. hObject, is JUST the handle for the GUI object used. eventd...

what's the difference between handles and hObject?

handles is a structure holding ALL of the handles for the GUI. hObject, is JUST the handle for the GUI object used. eventd...

10年弱 前 | 4

回答済み

Performance of structures as function arguments

Yes. The "Good reason", is that an equation, say, L = 1/2 * rho * Vel.^2 * area * (alpha*P1 + P0); Is far quicker to...

Performance of structures as function arguments

Yes. The "Good reason", is that an equation, say, L = 1/2 * rho * Vel.^2 * area * (alpha*P1 + P0); Is far quicker to...

10年弱 前 | 0

| 採用済み

回答済み

how to value nan number in a vector? and how to do the same calc in a 2d matrix?

You've got an x & y vector, so this would remove the NaNs: nans = isnan(Y) || isnan(X); Y(nans) = []; X(nans) = []; ...

how to value nan number in a vector? and how to do the same calc in a 2d matrix?

You've got an x & y vector, so this would remove the NaNs: nans = isnan(Y) || isnan(X); Y(nans) = []; X(nans) = []; ...

10年弱 前 | 0

回答済み

Split a matrix into a two submatrixes by a condition

This is the "simple" answer: male = ex3(find(ex3(:,1) == 1),:); female = ex3(find(ex3(:,1) == 0),:);

Split a matrix into a two submatrixes by a condition

This is the "simple" answer: male = ex3(find(ex3(:,1) == 1),:); female = ex3(find(ex3(:,1) == 0),:);

10年弱 前 | 0

回答済み

How can I cast 4 octets in 32bit signed integer type ?

typecast(uint8([1 2 3 4]),'int32')

How can I cast 4 octets in 32bit signed integer type ?

typecast(uint8([1 2 3 4]),'int32')

10年弱 前 | 0

回答済み

The role of singleton elements in calls to the zeros function.

Matlab only really needs to know which dimensions are "nonsingular". - A scalar has infinite dimensions, all with a size of 1. ...

The role of singleton elements in calls to the zeros function.

Matlab only really needs to know which dimensions are "nonsingular". - A scalar has infinite dimensions, all with a size of 1. ...

10年弱 前 | 0

回答済み

Missile guidance system not reaching target

You're missing something. Heres a multiple choice question that'll suit- Do you want your missile to explode? A. afte...

Missile guidance system not reaching target

You're missing something. Heres a multiple choice question that'll suit- Do you want your missile to explode? A. afte...

10年弱 前 | 0

回答済み

Need help figuring out how to save values

As it's homework, I'll just say the keyword you want. persistent

Need help figuring out how to save values

As it's homework, I'll just say the keyword you want. persistent

10年弱 前 | 0

回答済み

how can remove corner of binary image??

If you repeatedly erode & dilate (imerode & imdilate) the image you should get close to what you want if you use the right "neig...

how can remove corner of binary image??

If you repeatedly erode & dilate (imerode & imdilate) the image you should get close to what you want if you use the right "neig...

10年弱 前 | 0

| 採用済み

回答済み

Transfer and execute function

I don't quite get what you're asking: Are you saying that you want to use a variable function for something? In which case yo...

Transfer and execute function

I don't quite get what you're asking: Are you saying that you want to use a variable function for something? In which case yo...

10年弱 前 | 0

回答済み

How to keep precision of Math Operations?

You are probably getting more than 2 decimal places of "accuracy". You're probably getting 15 or 16 significant figures worth of...

How to keep precision of Math Operations?

You are probably getting more than 2 decimal places of "accuracy". You're probably getting 15 or 16 significant figures worth of...

10年弱 前 | 0

回答済み

Is there any way to do an operator on a specific region

A simple way is to simply chop it off: % (Tune the numbers for what you need) LowerLeftquad = my_image(74:end,1:30); % ass...

Is there any way to do an operator on a specific region

A simple way is to simply chop it off: % (Tune the numbers for what you need) LowerLeftquad = my_image(74:end,1:30); % ass...

10年弱 前 | 0

回答済み

How can I integrate something times a function file?

This example uses "sin", instead of whatever function you're using to get your integrand. to_be_integrated = @(x)(sin(x).^2*...

How can I integrate something times a function file?

This example uses "sin", instead of whatever function you're using to get your integrand. to_be_integrated = @(x)(sin(x).^2*...

10年弱 前 | 0

回答済み

Count equal values in multiple matrices

If you can concatenate your matrices in the 3rd dimension: x_oth = X2; x_oth(:,:,2) = X3; ... Then you may be able ...

Count equal values in multiple matrices

If you can concatenate your matrices in the 3rd dimension: x_oth = X2; x_oth(:,:,2) = X3; ... Then you may be able ...

10年弱 前 | 0

回答済み

Reading text from an excel file and populating a matrix with those values.

[numbers_only text_only both] = xlsread(filename,sheet_4); Then one of: network_station_coordinates = numbers_only; % ...

Reading text from an excel file and populating a matrix with those values.

[numbers_only text_only both] = xlsread(filename,sheet_4); Then one of: network_station_coordinates = numbers_only; % ...

10年弱 前 | 0

| 採用済み

回答済み

How to change the name of variables using a loop?

Cells ARE the way to go. Structures would be preferable to what you want mystruct.description = 'blah blah'; mystruc...

How to change the name of variables using a loop?

Cells ARE the way to go. Structures would be preferable to what you want mystruct.description = 'blah blah'; mystruc...

10年弱 前 | 1

回答済み

Goto command in matlab: Undefined function 'goto' for input arguments of type 'double'"

Ok, so you've downloaded a function "goto" from the file exchange, and it's probably just using "eval" on every line from the on...

Goto command in matlab: Undefined function 'goto' for input arguments of type 'double'"

Ok, so you've downloaded a function "goto" from the file exchange, and it's probably just using "eval" on every line from the on...

10年弱 前 | 1

回答済み

How do I find the Nth high number in a matrix A ?

values = 1:500; sorted = sort(values,'descend'); sorted(5)

How do I find the Nth high number in a matrix A ?

values = 1:500; sorted = sort(values,'descend'); sorted(5)

10年弱 前 | 0

回答済み

Make a connection between MATLAB-VISUAL BASIC via ActiveX as a bridge,

Using activeX is a bit of a pain. HOWEVER, if you look at the code for xlsread/xlswrite, you'll see that there is a whole load o...

Make a connection between MATLAB-VISUAL BASIC via ActiveX as a bridge,

Using activeX is a bit of a pain. HOWEVER, if you look at the code for xlsread/xlswrite, you'll see that there is a whole load o...

10年弱 前 | 1

| 採用済み

回答済み

getting error of not enough input argument?

gumbelpdf, gumbelcdf, gumbelinv are all functions that we don't have, so we can only say how to fix your error properly gumbe...

getting error of not enough input argument?

gumbelpdf, gumbelcdf, gumbelinv are all functions that we don't have, so we can only say how to fix your error properly gumbe...

10年弱 前 | 0