Answered
linkaxes and hold on issues
linkaxes sets the XLimMode and YLimMode properties to 'manual' Try inserting ah_main.XLimMode = 'auto'; ah_main.YLimM...

11 years ago | 1

| accepted

Answered
Creating a script that will allow the user to input values repeatedly until each case has been entered
You haven't said what you are stuck with, but a few points that immediately come to mind: * You are only looping on user inpu...

11 years ago | 0

Answered
how to deal unsupporeted function in matlab??
I assume from your tag (which ideally should just be a list of simple tags!) you are trying to use Matlab Coder. What would y...

11 years ago | 1

| accepted

Answered
Why does MATLAB think I have 5 output args when I have 6?
Have you used mlock on the file at all? Your comment below shows it thinks you have _too many_ arguments when you call it, i....

11 years ago | 0

| accepted

Answered
Storing function and variable values as the function runs
for k=1:200 for i=1:200 f(k, i)=penalty(k,i); end end is the simplest change to your code...

11 years ago | 0

| accepted

Answered
I have an Anonymous Function and want to integrate it
Can you not just call: A( myMatrix(1,1) ); to evaluate just the first element of your matrix? Or A( myMatrix( xSta...

11 years ago | 0

Question


Patch performance with caxis?
Is there any way I can improve the performance of patch objects with respect to changing caxis settings or the figure's colourma...

11 years ago | 2 answers | 0

2

answers

Answered
find all elements that can be devided with 5
a( rem(a,5) == 0 ) = 5;

11 years ago | 1

| accepted

Answered
input and output arguments in a function file
Where is that function defined? If you have tried to define a function in a script file you would get that error (I just test...

11 years ago | 0

| accepted

Answered
Cannot set the tick mark direction as default
Try set( groot, 'defaultAxesTickDir', 'out' ) instead. Since graphics objects are now all actual objects rather than ma...

11 years ago | 0

Answered
Can I create a matrix with unknown dimension ?
Just working with a matrix in a normal way and using instructions that expand its size (ignoring the warnings you get) is the eq...

11 years ago | 0

Answered
mena of each row in matrix
myMatrix = rand(250,21); m = mean( myMatrix, 2 );

11 years ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals
You have a variable called 'length' that is over-riding the function. Never name variables the same as a builtin function (or...

11 years ago | 2

| accepted

Answered
Highlighting handles in figure
You just need to set a callback for your button and then in the callback you can call any other function or script. Depending...

11 years ago | 0

Answered
problem with radiobuttons and If loop in GUI
Is exchanger_selection actually updating as you expect when you put a breakpoint in your pushbutton9 callback? It really isn'...

11 years ago | 0

| accepted

Answered
How to access subfunction headers with "help" command?
I'm fairly sure you can't. The subfunction is private to the file it is in so it has no outside visibility and shouldn't need i...

11 years ago | 0

| accepted

Answered
Conflict with 2 matlab R2014b windows running
Click 'Set Path' on the main ribbon and just delete the folders you don't want and remember to save.

11 years ago | 0

Answered
Current folder window: how does "MATLAB Code File" differ from "Script"
What is in makeFigures.m? I would suggest that Matlab simply cannot determine for some reason whether it is a function or a s...

11 years ago | 0

| accepted

Answered
Can i plot the mean of a number of graphs that are in the same plot
How did your graphs get there? Ideally keep the handles to the line plots (I assume they are line plots) when you plot them s...

11 years ago | 0

Answered
Help with loops and plotting with functions
What exactly are you stuck on? For a start though you are not assigning the output of tempToColor to a variable so your 'colo...

11 years ago | 0

| accepted

Answered
How to use for Loop and if statement to construct a Pythagorean triple function?
Is the aim of your function simply to determine whether a, b, and c form a Pythagorean triple? If so then yes you need to int...

11 years ago | 0

| accepted

Answered
I am trying to write a function but it will not work.
r=0.5*abs((sin(i-j)^2/sin(i+j)^2)+(tan(i-j)^2)/(tan(i+j)^2)); That is your maths for 'r'. Without putting it into my Matla...

11 years ago | 0

Answered
How to update compiled .mat file in standalone?
Use the full path when saving. Otherwise it will dump it in some odd location related to the install directory.

11 years ago | 0

| accepted

Answered
How to link gui push button with the matlab code m files.
Just call your m-file in the push button callback. If that isn't enough information try giving more information in your quest...

11 years ago | 0

Answered
delete matrix row with certain value
A = [2 3 4 5; 6 7 8 9; 2 1 1 1; 3 3 3 3]; A( any(A == 2, 2 ),: ) = [];

11 years ago | 0

Answered
double in a "gain" function
What is gain? Type: which gain on the command line. If it doesn't point to a function file then you presumably need ...

11 years ago | 0

Answered
Error using vertcat(out of memory)
So you are concatenating B with A 150 times (and more)? Is that really what you want to do? If your loop is of size 9000 is ...

11 years ago | 0

Answered
Error in script Subscript indices must either be real positive integers or logicals.
Do you have a variable named min further up the code? The error message is typical of such a scenario where the code thinks t...

11 years ago | 1

Answered
matrix product in function handle
Try just typing: [0,1].^(2:-1:0) on the command line and you will see you get the same error. It isn't a function handl...

11 years ago | 0

Answered
Repeat simulation 300 times and plot all simulations in one graph
What have you tried with nested loops? It should just be a case of wrapping the relevant part of your code up in a loop (maybe ...

11 years ago | 0

| accepted

Load more