Answered
Multiply specific parts of cell with cell column
Why do you have a cell array in the first place instead of a numeric array? It is far slower and requires you to use much uglie...

9 years ago | 0

Answered
initializing mwArray as "empty"
The default constructor myArray( ); should do this.

9 years ago | 0

| accepted

Answered
how to move a plot?
You can edit the 'XData' property of the line object if you have its handle. If you didn't keep its handle you can search for i...

9 years ago | 0

| accepted

Answered
I have troubles to plot several functions in one diagram.
Your use of an explicit axes handle is good: hold(axes1,'on'); xlim(axes1,[1000 200000000]); box(axes1,'on'); but ...

9 years ago | 0

Answered
How do I change the handle name in guide?
The tag is what is referred to on the handles struct. If you change this in GUIDE it will automatically update all references t...

9 years ago | 0

Answered
Display iteration value amongst other preset text.
sprintf( 'Difference In X Coordinate Value %d Between Left and Right Model Space', i ) would do the job instead of disp

9 years ago | 0

| accepted

Answered
How to display 16bit gray level images?
Why are you using a gpuArray just to convert data? You didn't say exactly what problem you are having (not visualise the imag...

9 years ago | 0

Answered
arrays of anonymous functions
g=cell(J+1,1); in the first line of your for loop overwrites everything previously in g. Move it outside the for loop inst...

9 years ago | 1

| accepted

Question


Unwanted changes/bugs/complaints in R2016b
I have edited my original moan about the zoom cursor to be a more general thread about things that have changed in R2016b that I...

9 years ago | 1 answer | 3

1

answer

Answered
How to write for and while loops with restricted variable input with steps in function?
x = -2:0.1:2; f = ( x.^3 + 9 + x.^2 - 4 ) ./ ( x*7 + 5 ); figure; plot( x, f ) You don't need loops at all. Ma...

9 years ago | 0

Answered
Help with nested for loop, for a matlab hw problem
sigma_d = [0.5 1.1 1.5]; omega_d = [3.5 5.0]; Put those into arrays to start with (you got them the wrong way round too ...

9 years ago | 0

Answered
Problem with clims using imagesc display
clims = [0 1000]; will just create a variable and do nothing else. caxis( hAxes, clims ); where hAxes is the handle...

9 years ago | 0

Answered
I would to save the variables in a file txt or csv with a push button, can help me someone?
You have to give a filename as the first argument to the save function.

9 years ago | 0

Answered
How to access pixels data of a 3 channel Mat iteratively?
I would guess that Test.jpg is a uint8 or int8 or int16 or some other integer type of image. When you create a new matrix thoug...

9 years ago | 0

| accepted

Answered
Why am I receiving unbalanced or unexpected parenthesis or bracket on my line of code?
x2^2(Tow21 is not valid syntax, hence the unexpected parenthesis.

9 years ago | 0

| accepted

Answered
how to make automatic graph script with a for loop?
Your for loop doesn't change anything so you just plot the same point every time. Neither con1 nor step changes so neither do x...

9 years ago | 0

Answered
How to set data in the same uitable
You haven't shown how you create your table, but I assume 'Data' is a numeric array, not a cell array. Why would you create a...

9 years ago | 0

| accepted

Answered
Issue with colormap using Matlab 2016b
Use the specific object handle - e.g. colormap( hAxes, 'jet' ) where hAxes is your axes handle.

9 years ago | 1

Answered
how to find index of a cell that contains a numeric value?
find( cellfun( @(d) isequal( d, x ), data) ); works theoretically, but you should never be testing for exact equality with ...

9 years ago | 0

| accepted

Answered
How can I delete last Yticklabel?
Do you mean just the label or the actual tick too? If you want Matlab to still auto label them if you allow anything to happe...

9 years ago | 0

Answered
How to combine mat file
ALoad = load( 'databaseA.mat' ); BLoad = load( 'datalabelB.mat' ); a = ALoad.a; b = BLoad.b; save( 'databa...

9 years ago | 1

| accepted

Answered
Where is my mistake in loop?
busy isn't an error, it just means it is busy working. You can use the pause functionality of the editor if you are using a rec...

9 years ago | 0

Answered
how to generate static method from rtw ?
Use object-oriented programming: <https://www.mathworks.com/help/pdf_doc/matlab/matlab_oop.pdf>

9 years ago | 0

Answered
I know resample but I can't figure out what these ' ' do on these places?
doc transpose or <https://uk.mathworks.com/help/matlab/ref/transpose.html>

9 years ago | 1

| accepted

Answered
How to use subplot, to plot an image?
A = rand(200); B = rand(200); D = A - B; figure; subplot( 2, 1, 1 ) imagesc( A ); subplot( 2, 1, 2 ) ...

9 years ago | 0

Answered
a program runs in 3 minutes on Matlab R2012b but takes 12 minutes on Matlab R2016a, Why?
doc profile Run this on both and see the results for yourself. It is impossible for us to know without knowing what the co...

9 years ago | 0

Answered
Splitting of 1 coloumn into multiple coloumn
myMat = reshape( myVec, [], 137 ); maxVals = max( myMat );

9 years ago | 1

| accepted

Answered
Using if else statements to change values of pixel in an image
I very much doubt you need three nested for loops for this, but if inimg<128 is not going to do what you want if inimg i...

9 years ago | 0

| accepted

Answered
Apply mean and standard deviation of an image to another image
tmpimg = imsubtract(tmpimg,meanint2); tmpimg = imdivide(tmpimg,stdint2); tmpimg = immultiply(tmpimg,stdint); tmpimg =...

9 years ago | 0

Answered
how to remove repeating columns in a matrix
Just transpose the matrix and use unique(A, 'rows' )

9 years ago | 1

Load more