Réponse apportée
linkaxes and hold on issues
linkaxes sets the XLimMode and YLimMode properties to 'manual' Try inserting ah_main.XLimMode = 'auto'; ah_main.YLimM...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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....

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 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...

plus de 11 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
find all elements that can be devided with 5
a( rem(a,5) == 0 ) = 5;

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
mena of each row in matrix
myMatrix = rand(250,21); m = mean( myMatrix, 2 );

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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'...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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.

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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 ),: ) = [];

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 0

| A accepté

Charger plus