已回答
Return index from Plot3 using getCursorInfo(dcm_obj);
Works for me: function test t = 0:pi/50:10*pi; plot3(sin(t),cos(t),t) uicontrol('Style', 'pushbutton','Callback',@...

12 years 前 | 0

已回答
TriScatteredInterp from 3 lines to get surface
Try [xq,yq] = meshgrid(0:.01:.4, 0:.1:60); vq = F(xq,yq); mesh(xq,yq,vq);

12 years 前 | 0

已回答
generate random numbers in range from (0.8 to 4)
n = 20; R = [0.8 4]; z = rand(n,1)*range(R)+min(R)

12 years 前 | 3

已回答
find and store index for consecutive numbers
I guess your problem is identifying same areas in a vector. Therefore you may use this function: Isame = @(x) [1; find(diff...

12 years 前 | 0

已回答
Loop code for images to plot graph
N = 22; % Number of images pix = 768*1024; % number of pixels in each image A = zeros(N,1); % preallocation for k...

12 years 前 | 0

| 已接受

已回答
SURF 2D. How is possible.
MATLAB help is great. doc surf Quote: _surf(Z) creates a three-dimensional shaded surface from the z components in matri...

12 years 前 | 2

| 已接受

已回答
how to create a loop
vENU = rand(6,400); % random data generation N = size(vENU,2); % = 400 steps (in your example) yaw_deg = zeros(1,N); % p...

12 years 前 | 1

已回答
Need to write a code for this method....
Since your explanations feel like a puzzle, whats wrong with this? N = 60; % or N = length(t) t1 = 1:N; %[sec] timesteps...

12 years 前 | 1

| 已接受

已回答
Search for line passing through a point in edge image
doc hough

12 years 前 | 0

| 已接受

已回答
save excel data to matfile.....
Reading excel sheet: doc xlsread Saving into matfile doc save

12 years 前 | 1

| 已接受

已回答
curve fitting a power function
As I said in the comment, I think |f(x)=b*x^m| is your power function. x = [0.5 2.4 3.2 4.9 6.5 7.8]'; y = [0.8 9.3 37.9...

12 years 前 | 5

已回答
how to write empty variable....
A = [] % A is empty isempty(A) % Is A empty? exist(A,'var') % Does A exist as variable? % empty and not exis...

12 years 前 | 1

| 已接受

已回答
how can i make an array of letters? is it possible
a = 1:26; astr = char(96+a);

12 years 前 | 0

已回答
??? Index exceeds matrix dimensions. please help me
With your image height d and if p gets p=2, then you are trying to address with (p+d-1) the (d+1) pixel. Thats not possible.

12 years 前 | 3

| 已接受

已回答
How can I calculate the angle between two points and camera?
# Image segmentation to find the object. The method depends on your image (object ,background,etc ), simplest one, might be im2b...

12 years 前 | 0

| 已接受

已回答
mathlab, don't want debug this programme
Do you have the last line in a different m-file with a clear all at start? If so, clear _all_ clears also breakpoints, try only ...

12 years 前 | 0

已回答
Can somebody give me an example on how to use voronoi(AX,...)
AX1 = axes('position',[0.1 0.1 0.8 0.4]); AX2 = axes('position',[0.1 0.6 0.8 0.4]); x = gallery('uniformdata',[1 10]...

12 years 前 | 0

| 已接受

已回答
Gui , add İmage on figure
try ... 'position',[300 200 400 600],... ...

12 years 前 | 1

| 已接受

已回答
Comparing Time Series data using correlation
Both, interpolation and adding zeros will work. But xcorr doesn't need same vector length. For not constant signal sample time t...

12 years 前 | 0

| 已接受

已回答
Integration of scattered data
vq(scalar,scalar,vector) doesnt work. f=@(z)vq(zeros(size(z)),zeros(size(z)),z);

12 years 前 | 0

| 已接受

已回答
applying colour for clustered image
You can define the water color. Than calculate the mean color for every cluster. Compare the mean cluster color with your define...

12 years 前 | 0

已回答
how to convert jpeg images to pgm format...can someone help
X = imread('ngc6543a.jpg'); imwrite(X,'test.pgm')

12 years 前 | 3

| 已接受

已回答
Plotting graph using M-file.
k = 0; for m = 1:10:100 k = k+1; y(k)=m+2; t=y(k)^2+4; x(k) = (2*t-1); end plot(x,y)

12 years 前 | 0

已回答
Simulink: return values of simulation
Check out the Sinks-Library. There are _Display_-, _To Workspace_- and _To File_ Blocks.

12 years 前 | 0

已回答
how to implement in simulink
phi -> sin(phi) with Trigonometric Function block phi_dot -> phi with Integrator block

12 years 前 | 0

| 已接受

已回答
How I can do edge detection to almost white picture where are black lines/edges?
This demo might answer your question: <http://www.mathworks.de/products/image/examples.html?file=/products/demos/shipping/image...

12 years 前 | 0

| 已接受

已回答
darkest pixel in image
X = rand(100); [C,I] = min(X(:));

12 years 前 | 2

| 已接受

已回答
How to understand R of the regresion plot in neural network training?
y = sim(net,inputn); r = regression(outputn,y); % r for every objective R = regression(outputn(:)',y(:)'); % R from plot...

12 years 前 | 0

| 已接受

已回答
How to merge digits from a step signal into a single number(Simulink)?
"User-Defined Functions" is an option. As another possibility (among many) you can take "Triggered Subsystems", with the trig...

12 years 前 | 0

| 已接受

已回答
Draw an arc between two points --> (x1,y1,z1) and (x2,y2,z2)
function test_sphere n = 200; THETA = rand(1,n)*2*pi; PHI = rand(1,n)*2*pi; R = 1.1*ones(1,n); [x,y,z] = sph2ca...

12 years 前 | 0

加载更多