Réponse apportée
how can i make a surf from 36 points?
You need to use meshgrid: doc meshgrid to create outputs of the right dimensionality

plus de 11 ans il y a | 0

Réponse apportée
How to vectorize multiple images in 3D matrix?
myImages = cat( 3, ones(10), 2*ones(10), 3*ones(10), 4*ones(10) ); imSize = size( myImages, 1 ) * size( myImages, 2 ); ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Code Previously Worked, Now keep getting "Unexpected Matlab Expression"..
Have you defined a variable called vehicleModel? If so Matlab will attempt to index into that variable with your arguments ra...

plus de 11 ans il y a | 0

Réponse apportée
How can I import .m files in a sequential way with Editor?
open( str ); should do the trick.

plus de 11 ans il y a | 0

Réponse apportée
Display Multiple Images in Pages GUI
You can create 10 axes on a panel or straight on the figure. Then show the first 10 by default. When you click next replace ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Order workspace variables by order of appearance?
I'm fairly certain there isn't. Generally I give my variables meaningful names so I naturally want to look for that meaningful ...

plus de 11 ans il y a | 0

Réponse apportée
why does UIOPEN opens my GUI two times!
Loading an arbitrary 'handles' structure into a GUI to overwrite that of the GUI is not at all a good thing to do. I cannot thi...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
MCR version compatibility with higher matlab version
You must use the same MCR version as that of the Matlab version from which the executable was built. If you upgrade your Matlab...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
select folder by its name?
n = 10; d = uigetdir( [ 'C:' filesep 'A' filesep num2str(n) ] ) should work. There are other ways to compose a filena...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
how to run a script within a GUI file?
What do you mean by "doesn't even start to work"? Does it produce error messages (in which case please post them) or do you j...

plus de 11 ans il y a | 0

Réponse apportée
Is it possible to call a subfunction inside a function mscript?
You can call a sub-function from a main function in an m-file. You cannot call a sub-function from a script (what would the f...

plus de 11 ans il y a | 1

Réponse apportée
Accessing data in cell arrays
Simplest way to learn these things is to try it on the command line and see what the result is. C = cell(2,2) C = ...

plus de 11 ans il y a | 0

Réponse apportée
how to convert unit8 type images to logical type
imageArrayLogical = cellfun( @(im) logical(im), imageArray, 'UniformOutput', false ); or you can just do it in a for loop i...

plus de 11 ans il y a | 0

Réponse apportée
Unable to plot. Problem with this error "Conversion to double from function_handle is not possible."
You are attempting to plot a function handle. The plot function expects data, not a function to evaluate. Your definition ...

plus de 11 ans il y a | 0

Réponse apportée
prarameters tobe passed for building GMM
If you use the 'fitgmdist' function from the Statistics Toolbox then you pass in all the data as a single multi-dimensional arra...

plus de 11 ans il y a | 0

Réponse apportée
What are some ways to improve Matlab?
If you have a license then you can simply think up a project of interest and start working on it. Alternatively you can try som...

plus de 11 ans il y a | 2

Réponse apportée
linkaxes with different x scales
xLimListener = addlistener( hAxes1, 'XLim', 'PostSet', @(src,evt) disp( 'X Changed' ) ) yLimListener = addlistener( hAxes1,...

plus de 11 ans il y a | 0

Réponse apportée
What vector will generate command - fliplr(5:5:10)?
10:-5:5 assuming you are talking more generically. This example is rather degenerate and can be replaced by: [10 5] ...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Calculations using Inline Functions
I've never used 'inline' and didn't even know it existed, but the documentation says: 'inline will be removed in a future rel...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
In MATLAB how is it possible to select a certain data portion from a big file of data?
If you have it in memory then just e.g. A = rand(500,500,500); figure; plot( A(:,:,33) figure; plot( A(22,:,:) fig...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to convert large sized 3D matrix to small sized 3D matrix
doc interp3 should do the job

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Converting some matlab to C (or C++)
"What does sqrtMinusOne output as in debug? Is it precisely 0 - 1i? If not then I assume the error is just a rounding erro...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How can I count the number of pixels in an image that satisfy a certain condition?
res = nnz( im > 0.1 );

plus de 11 ans il y a | 0

Réponse apportée
index out of bounds because numel(a)=7, please help?
Given the code I am surprised you reached a(8) before it crashed! Incidentally is that the exact code you ran? for k = 10 ...

plus de 11 ans il y a | 0

Réponse apportée
help n=12 for I=1:n p(I) =rand p(I) =28×p(I) p(I)=ceil(p(I)) end I need to put constraint on this code must be theres no redanandnt values ..so if n=28 p will be all the numbers from 1:28 but in random
Something like this would work: nums = 1:28; n = 28; p = zeros(1,n); count = numel( nums ); for...

plus de 11 ans il y a | 0

Réponse apportée
Can anybody tell me what is the mistake in my code?
Take a look at the dimensions of 'arr' after the line: arr=xlsread(xlfile); and compare it to sss. If at some iterati...

plus de 11 ans il y a | 0

Réponse apportée
random matrix with fix summation
You can just create 7000 random indices instead and place the 1s at those indices e.g. if you have a [500,500] matrix you ha...

plus de 11 ans il y a | 2

Réponse apportée
Why does my plot not display?
Both day_counter and savings are scalars so it just plots a single point.

plus de 11 ans il y a | 0

Réponse apportée
Plot style '--' in 2014b
Try switching to use hardware opengl using: opengl( 'hardware' ) (More details in my comment to the original question).

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
delete nan values and the corresponding value in another array
nanIdx = find( isnan(A) | isnan(B) | isnan(C) ); A(idx) = NaN; B(idx) = NaN; C(idx) = NaN

plus de 11 ans il y a | 0

| A accepté

Charger plus