解決済み


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9年以上 前

回答済み
Mex results different from linux to windows!
I answer myself. The problem was related to the function abs. In gcc, math.h has a C version of abs that works on integers, so g...

9年以上 前 | 0

| 採用済み

質問


Mex results different from linux to windows!
Hello everyone. I have a mex routine written in C++ that I use on a Windows computer compiled through Visual Studio. Now I ne...

9年以上 前 | 1 件の回答 | 0

1

回答

回答済み
may i directly convert video to text document using matlab ?
You can use matlab OCR function: <http://uk.mathworks.com/help/vision/examples/recognize-text-using-optical-character-recogni...

9年以上 前 | 0

回答済み
how to display a query image and database side-side ? i have few lines but i am not able to proceed ahead with them as they are incomplete .
Maybe you want to use subplot: figure subplot(1,2,1) imshow(im1) subplot(1,2,2) imshow(im2)

9年以上 前 | 0

送信済み


Where am I in the code?
Simple script to open the editor on the current debugging line

9年以上 前 | ダウンロード 1 件 |

Thumbnail

回答済み
How to stop printing anything to command window?
The best solution would be using disp inside an if statement. A really bad soulution (still working) would be replacing the fun...

9年以上 前 | 0

回答済み
script running for 13 hours. should I be worried?
You can use a task manager to check if matlab is still using the CPU. If not, it probably got stuck.

9年以上 前 | 0

回答済み
Find the distance between object and camera
Calculating the distance between an object and a camera in not an easy task. In theory, you would need two different cameras bec...

9年以上 前 | 0

回答済み
Why are vectors horizontally and matrices vertically indexed?
Matlab variables are always indexed vertically. What you are talking about is a plot behaviour: plot(X,Y) plots vector Y v...

9年以上 前 | 0

回答済み
estimate time needed for a code to finish
This is my favourite solution: tic for i = 1:1e9 if toc > 10 fprintf('Iteration %d/%d\n',i,1e9) ...

9年以上 前 | 2

| 採用済み

回答済み
Calculating statistical PDF and percentiles over matrices
You can replace x with x(:) in prctile. The whole matrix will be squeezed in a single vector what will be evaluated just once.

9年以上 前 | 0

回答済み
The definition of variables
You can create integer random vectors with randi(), convert it to binary with de2bi(), and convert input binary to decimal with ...

9年以上 前 | 0

| 採用済み

回答済み
HELP with Undefined variable, size of the indicated variable changes with each loop iteration.
The variable files is a cell array, and you are trying to refer it as a matrix. You should use files{i} instead of files(i,1) wh...

9年以上 前 | 0

回答済み
how can i make my scattered 3 dimensional data points as a 3d surface?
tri = delaunay(k(:,1),k(:,2)); trisurf(tri,k(:,1),k(:,2),k(:,3))

9年以上 前 | 0

回答済み
how to read audio file?
You can use audioread: http://uk.mathworks.com/help/matlab/ref/audioread.html

9年以上 前 | 0

| 採用済み

回答済み
How to find the variance of an image in a special windows? variance(in 3*3 windows)
You can use the function conv2: A = imread('foo.bmp'); small_window = ones(3)/9; A_sq = conv2(A.^2,small_window,'s...

9年以上 前 | 0

回答済み
Problem in Plot diagrams
I cannot see your attachment, but you can use any char you wish for your plot, just using text instead of plot: x = linspac...

9年以上 前 | 0

回答済み
How to use threshold in this problem?
Supposed your image varies from o to 1, you could use a threshold in this way: THR = 0.5 above = image>=THR; imag...

9年以上 前 | 0

| 採用済み

回答済み
Distance from 3d point to an ellipse
A simple and straightforward solution could be discretizing the points of the ellipse, evaluating the distance from all the poin...

9年以上 前 | 0

回答済み
How to convert an acceleration time graph, into a velocity time graph
You can integrate the acceleration vector with cumsum or cumtrapz to get the velocity, and again to get the space.

9年以上 前 | 0

| 採用済み

回答済み
plot smooth curve through discreet points
xx = linspace(min(x),max(x),100); yy = spline(x,y,xx); figure,plot(x,y,'o',xx,yy)

9年以上 前 | 2

回答済み
Solving an integral with variable as upper limit and plotting the solution
You can use cumsum or cumtrapz.

9年以上 前 | 0

回答済み
what does this mean?
hblms is a struct array ( http://uk.mathworks.com/help/matlab/ref/struct.html ) Set its variable WeightsOutputPort to false

9年以上 前 | 1

| 採用済み

回答済み
Determing intermediate points in 3D mesh plot
If the points are on regular grid, you can use interp2: interp2(x,y,z,x0,y0,'cubic') Otherwise, you can scatteredInt...

9年以上 前 | 0

| 採用済み

回答済み
Why is my surface not fitting the data points smoothly?
You can try to plot your surface with trisurf: [x,y]=meshgrid(1:15,1:15); tri = delaunay(x,y); z = peaks(15)...

9年以上 前 | 0

回答済み
Stitching sub images to reconstruct full image
What about using mat2cell and cell2mat? It should be much easier.

9年以上 前 | 0

回答済み
surf plot- Z must be a matrix, not a scalar or vector.
The surf function requires the z values to be a matrix. If you have column data you can use trisurf, instead: tri = delaun...

9年以上 前 | 2

質問


Delaunay special constraints not being part of the triangulation
Hello, I'm trying to create a constrained delaunay triangulation of a set of points: in particular, I don't wont triangles to i...

9年以上 前 | 1 件の回答 | 1

1

回答

送信済み


Align equal sign
Automatically align equal sign in variables assignment

9年以上 前 | ダウンロード 3 件 |

Thumbnail

さらに読み込む