Gelöst


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

fast 13 Jahre vor

Beantwortet
how to read data from wordpad and use the data to do the question
There's an example in the <http://www.mathworks.com/help/releases/R2013b/matlab/ref/fgetl.html doc for |fgetl|>

fast 13 Jahre vor | 0

Beantwortet
Which version of Perl is built into MATLAB? perl.m
From looking inside of |perl|, i.e. |edit perl| On Windows, MATLAB uses its own Perl interpreter and this is located here (13...

fast 13 Jahre vor | 0

Beantwortet
Problem with for-loop and trapz
You need to |subs|-stitute the values in for sigma: syms a b sigma y; m = 10; for a = 1:1:m for b = 1:1:m y =...

fast 13 Jahre vor | 0

Beantwortet
Supress Command Line messages: system.m
Either capture the outputs: [st,rt] = system('copy 1.txt+2.txt+3.txt MyBigFat.txt'); Or if that does not supress it, the...

fast 13 Jahre vor | 0

| akzeptiert

Gelöst


surface of a spherical planet
you just discovered its circumference, that is the input.

fast 13 Jahre vor

Gelöst


click away
Write a function that clicks on a GUI button. *Description*: Some times one wishes to use Matlab to automate some time con...

fast 13 Jahre vor

Beantwortet
how to find max neighbour pixel in a 8-cordinated window?
Extract the neighborhood into its own variable and set the middle value to |-inf|

fast 13 Jahre vor | 0

Beantwortet
using the while loop function
You're close! Inside the loop you say: n-1 This just does the computation but does not assign this value back to n. ...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
How do I publish my question with the frenet function?
which -all frenet _'frenet' not found._ On a full product install. You need to make sure that |frenet.m| is on the pat...

fast 13 Jahre vor | 0

Beantwortet
Interpolation and gps data
doc interp1 |interp1| will do this for you.

fast 13 Jahre vor | 0

Beantwortet
Accelerate nested bsxfun double loop?
Usually two dimensional: bsxfun(@times Can be replaced with matrix multiplication: SZC = b'*a; isequal(SZC,SZI) a...

fast 13 Jahre vor | 0

Beantwortet
How to convert all elements of a cell array to one string matrix.
A = {'Steve';'wonder';'Marcus';'Jacob'}; B = strjoin(strcat(cellstr(num2str((1:numel(A)).')),'-',A).',' ') 13a or newer f...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
Sum of squares profiling on GPU
You might be interested in |gputimeit|, new in R2013b: <http://www.mathworks.com/help/releases/R2013b/distcomp/gputimeit.html...

fast 13 Jahre vor | 2

Beantwortet
Slow screen reaction matlab GUI
The editor is sluggish because of the various background processes. One of these is the Code Analyzer, so the first thing you c...

fast 13 Jahre vor | 0

Beantwortet
2D slice of a 3D volume!(arbitrary plane-slice function)
There are many: <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=slice+volume FEX:query:slice+v...

fast 13 Jahre vor | 0

Beantwortet
MATLAB 2006B is compatible with windows 7 (32 bit/64bit) or not?
No. <http://www.mathworks.com/support/sysreq/release2006b/index.html>

fast 13 Jahre vor | 1

Beantwortet
Error using imfilter: imfilter_mex.mexw64
It sounds like your path has been been corrupted. Please run the following commands to restore it: restoredefaultpath; re...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
diff gives back one less valor
From the <http://www.mathworks.com/help/releases/R2013b/matlab/ref/diff.html doc for diff> If X is a vector of length m, th...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
How do I add space between strings when I am using randperm?
You could also do this with |strjoin| (13a or newer) string = ['BCDFGHKJLMNPQRSTVWXYZ']; numRands = length(string); ...

fast 13 Jahre vor | 0

Beantwortet
Problem in rotation detection for the angles less than 1 degree using Fourier-mellin transform
Have you tried using |imregister|?

fast 13 Jahre vor | 0

Beantwortet
MATLAB executable code generator error
You can't generate code for graphics since this is java... <http://www.mathworks.com/help/releases/R2013b/coder/ug/matlab-lan...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
Images don't show with imshow after converting them to double.
You could also just show it over the full range by using the [] input to imshow: imshow(I,[])

fast 13 Jahre vor | 3

Beantwortet
How to find the Direction (angle) of Points on an Edge in a Digital Image
Randima, you're in luck. I've been working on a tool for this and I finally polished it on the plane last week. BW = your_...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
Detect change between two values in an array
x = [1 1 2 3 4 4 5 6 6 6 6 7]; diff(x)==0 %?

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
How do I subtract variable dimension arrays
Use |diff| specifying the dimension: dists = rand(100,4,23); drow = diff(dists,1,1); %rows first dimension dcol = diff(...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
I am trying to draw a tennis court with a green court and white lines
bgc = [0.85 0.85 0.85]; %backgroundcolor figure('color',bgc); axes('color',bgc,'XColor',bgc,'YColor',bgc,'ZColor',bgc); pat...

fast 13 Jahre vor | 0

Beantwortet
Parallel execution for Lasso
<http://www.mathworks.com/help/releases/R2013b/stats/lasso.html doc lasso> Look at the _'UseParallel'_ option in _'options'_....

fast 13 Jahre vor | 0

Beantwortet
no speed improvement using 'parfor'
What release are you using? If you are using a release before R2013b, did you start a |matlabpool|? matlabpool open %open...

fast 13 Jahre vor | 0

Beantwortet
Fill NaNs in array with last value
You still have to figure out what to do if the first value is nan. v = [321 nan() nan() nan() nan() 55 nan() nan() nan() 22...

fast 13 Jahre vor | 7

| akzeptiert

Mehr laden