已回答
For loop and omitting every 10th step
for i = floor(1:10/9:30) ... end

10 years 前 | 1

已回答
why the name of software is MATLAB?
Try the Wikipedia article - the first sentence addresses this.

10 years 前 | 1

已回答
Adversity Testing MATLAB. Why does matlab say this?
<http://www.mathworks.com/help/symbolic/mupad_ref/c_.html C_> is the set of complex numbers. That looks right, since the identit...

10 years 前 | 0

| 已接受

已回答
Guessing the value of the temperature depending of the closest neighbours(3D)
If linear interpolation is sufficient, you can try interpolant = scatteredInterpolant(m(:,1:3), m(:,4)); temp = interpol...

10 years 前 | 0

已回答
Why does my plot not display?
The problem is that both *day_counter* and *savings* are scalars, so there is nothing to plot. I suspect that what you need is t...

10 years 前 | 0

已回答
Plot style '--' in 2014b
I think you should contact MathWorks about this. I've also experienced significant problems with plot() in R2014b (in my case wi...

10 years 前 | 1

已回答
ifft2 on an asymmetric matrix does not work correctly?
ifft2 works correctly. You can demonstrate this with the following code img = rgb2gray(imread('peppers.png')); % examp...

10 years 前 | 0

已回答
plot a complex data
The call to plot plot (img) looks wrong, because *img* is 2-D. I would expect you to be using image(), imagesc() or imsh...

10 years 前 | 0

| 已接受

已回答
how to apply dct code on each color plane of an RGB image
Rtrans = dct2(R); etc.

10 years 前 | 0

已回答
collapse 3d data set to 2d data set using indexer for 3rd dimension without loops
[yy, xx] = ndgrid(1:size(data,1), 1:size(data,2)); collapsedData = data(sub2ind(size(data), yy, xx, zz))

10 years 前 | 1

| 已接受

已回答
ho to display binary img as matrix
disp(binaryImage);

10 years 前 | 0

| 已接受

已回答
syntax error in the matlab code in image processing
A line starting with function is the first line of a function definition. That means it must go in an m-file - usually i...

10 years 前 | 1

已回答
Convert char to cell
Assuming that *ze1.Nome* is already a cell array, all you need to do is to replace the round brackets used for indexing it with ...

10 years 前 | 0

| 已接受

已回答
Help with imwarp and affine2d
The problem may be that imwarp() crops the output image to the transformed positions of the corners of the input image. A simple...

10 years 前 | 7

| 已接受

已回答
How can I process multiple image with for loop?
You are passing a string to imshow, which it interprets as a filename. However, there isn't a file called "img1". If you wish to...

10 years 前 | 1

已回答
I am newbie in the matlab, may some experts tell me what are the meaning of codes or logic in this file?
For someone coming from the C++ background, I suspect one unfamiliar aspect of the code is the colon operator (:), which generat...

10 years 前 | 0

已回答
Unstructured grid to structured grid
*scatteredInterpolant* may do what you need. Like this: x = [1 3 1 2.4].'; y = [12 10 11 15].'; f = [7 4 2 0].'; s...

10 years 前 | 0

| 已接受

已回答
Use index from max() to extract matching values from another array
Bmax = B(sub2ind(size(B), I, 1:size(B,2)))

10 years 前 | 2

| 已接受

已回答
need to find time difference between two time strings
Something like this: % Some data. Making the gap between d1 and d2 bigger than in your example % to provide a better che...

10 years 前 | 0

已回答
How do I use a for-loop to do fft and plot the power?
The variable *Be* is not changed between iterations, so *A* will also be the same each time, so each plot will be the same as th...

10 years 前 | 1

已回答
Doing DFT without using FFT function
First, let's confirm that the code you have used for the DFT is correct. Simplifying it a little for clarity (the second subscri...

10 years 前 | 2

| 已接受

已回答
Create a projective homography matrix with pitch/roll/yaw
[ *Edited*: example changed and transpose of matrix in call to projective2d() inserted. See comments.] It might be worth expe...

10 years 前 | 7

| 已接受

已回答
how to add space between matrix elements?
So another guess is that the input is in fact a double matrix, but the idea is that there ought to have been spaces between the ...

10 years 前 | 2

| 已接受

已回答
Plot symbols in 2014b
The circles as octagons and change of shape with line width is a recognised <https://www.mathworks.com/support/bugreports/detail...

10 years 前 | 0

| 已接受

已回答
Problem accessing the deformation map in image registration (using imregister, Matlab 2013a)
I think from the documentation you need imregtform() rather than imregister() to get the transform itself rather than the result...

10 years 前 | 1

已回答
Error (The value assigned to variable <variable_name> might be unused)
Your code is almost impossible to read - you need to format it using the "{} Code" button. The message is a warning rather th...

10 years 前 | 0

已回答
How to execute statements within functions in a random order?
One possible structure - but see my comment above. for trial = 1:3 switch phonemeorder(trial) case 1 ...

10 years 前 | 0

已回答
Plotting piece-wise functions with absolute value????
To fix your existing code, with the loop, you need y(k) = abs(x(k)); and y(k) = x(k).^2; Your condition x(k) > 2...

10 years 前 | 0

已回答
subtract two identical float number it gives a very small number not a zero
It's round-off error. See, for example <http://www.mathworks.com/matlabcentral/answers/102419-how-do-i-determine-if-the-error-in...

10 years 前 | 0

已回答
How to upscale the image and make it higher resolution?
You can't truly increase the resolution of an image, because in making the sampled digital image information at higher resolutio...

10 years 前 | 1

| 已接受

加载更多