Réponse apportée
What are the features of MATLAB fig-format?
Hi, fig files are binary mat files. This can be obtained when you load a fig file as follows: a = load('figename.fig','-mat'...

plus de 15 ans il y a | 2

Réponse apportée
How to convert to latex display from a cell array?
Hi Ben, please try this set(h,'LineWidth',4); title(['\',index{count}]) ,'FontSize',20); instead of set(h,'LineWidth',...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
Plotting two types of graph together
Hi Jennifer, I could not run you code because West and North are unknown so I replaced it with random values. But I think wha...

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
why is the differnce in subtracting two images and subtracting two matrices ?
Hi Pramod, I think this is related due the fact that an image is hold as an uint8 matrix and those have no sign. What you can...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
How do I make variables that I enter in a script to apply to a second script without need to run or open the second one?
Hi Emerson, I think the easiest way is to use a function, because they are designed to do this. function [n, o, p, N, ...

plus de 15 ans il y a | 1

Réponse apportée
matrix result storing problem
Hi Sayanta, this is because you are overwriting the value of v in every step of the loop. If you want to store every value yo...

plus de 15 ans il y a | 2

Réponse apportée
Need help to plot a function
Hi Pedro, I think you missed some dots in your code, e.g. tau^2 will not work since tau is a vector. You have to use...

plus de 15 ans il y a | 1

Réponse apportée
R2011a release
Hi Royi, in the documentation for 11a you can find these information: <http://www.mathworks.de/help/toolbox/distcomp/rn/bs...

plus de 15 ans il y a | 2

Réponse apportée
Integration help (quad)
Hi Jeffrey, I think you get this error because of the extra dot after sin(theta). You function rfun should look like this: ...

plus de 15 ans il y a | 1

Réponse apportée
Insert and extract variables to and from main structure
Yeah sure it is not a reliable programming technique. But if you dont know the fieldnames during programming process you can't d...

plus de 15 ans il y a | 1

Réponse apportée
Insert and extract variables to and from main structure
Thanks Enrico, if you think this answer is correct, please mark it as accepted. Greeting from the MathWorks technical Sup...

plus de 15 ans il y a | 1

Réponse apportée
Insert and extract variables to and from main structure
Okay, this is going to be tricky now. My code reminds me on the movie inception but here we go: Store.E.a=1; Store.E.b=2...

plus de 15 ans il y a | 1

Réponse apportée
Insert and extract variables to and from main structure
Hopefully I understand this correctly. Consider a given struct C like created in my example above. You can do the oposite thing ...

plus de 15 ans il y a | 1

Réponse apportée
Insert and extract variables to and from main structure
Yes it is. You have to add a ; in the eval command. It should look like this: eval(['C.',tmp(i).name,'=',tmp(i).name,';']); ...

plus de 15 ans il y a | 1

Réponse apportée
getting a wrong solution to a simple linear system using "solve"
I think that MATLAB gues the right values is a little bit luck. Normally you would specify what you want to solve: sol =sol...

plus de 15 ans il y a | 1

Réponse apportée
Insert and extract variables to and from main structure
Hi Enrico, a small (not perfect) example how you can do this is the following: a = 3; b = 4; d.c = 'text'; d.g ...

plus de 15 ans il y a | 1

Réponse apportée
Matlab Optimizer
Hi Sam, I think a good point to start is the Optimization Toolbox User’s Guide: http://www.mathworks.com/help/pdf_doc/opti...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
removing ticks
Hi Hans, now I get it. In this special case you have to deactivate the xticklabels, too. This should works fine: A(1,1:2...

plus de 15 ans il y a | 7

| A accepté

Réponse apportée
removing ticks
Hi Hans, could you please post a working code? Because I am not able to reproduce your problem. Under Win7 64bit and R2009a t...

plus de 15 ans il y a | 1

Réponse apportée
getting a wrong solution to a simple linear system using "solve"
Hi Uri, this is because you are using a wrong syntax for your problem. With the following syntax everything works fine sol =...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
removing ticks
Hi Hans, which MATLAB and Operating System are you using? I ask this because the following code works fine for me in R2010b and...

plus de 15 ans il y a | 1

Réponse apportée
Index exceeds matrix dimensions ??
Hi Ali, please try to run the following code: %% Setup % Define parameters. M = 16; % Size of sign...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
heaviside function in MATLAB R2010b
Are you sure you have the Symbolic Math Toolbox installed? It looks like you don't. Please run the ver command and look if t...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
heaviside function in MATLAB R2010b
Hi, try to run the which command to see if the function is available: >> which -all heaviside The output should look like t...

plus de 15 ans il y a | 1

Réponse apportée
Plot Title
Hi James, I think you are looking for the num2str function. I have written a small example code: a = 1.5; plot(1:10);...

plus de 15 ans il y a | 2