Answered
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'...

15 years ago | 2

Answered
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',...

15 years ago | 1

| accepted

Answered
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...

15 years ago | 2

| accepted

Answered
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...

15 years ago | 1

| accepted

Answered
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, ...

15 years ago | 1

Answered
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...

15 years ago | 2

Answered
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...

15 years ago | 1

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

15 years ago | 2

Answered
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: ...

15 years ago | 1

Answered
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...

15 years ago | 1

Answered
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...

15 years ago | 1

Answered
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...

15 years ago | 1

Answered
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 ...

15 years ago | 1

Answered
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,';']); ...

15 years ago | 1

Answered
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...

15 years ago | 1

Answered
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 ...

15 years ago | 1

Answered
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...

15 years ago | 1

| accepted

Answered
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...

15 years ago | 7

| accepted

Answered
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...

15 years ago | 1

Answered
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 =...

15 years ago | 1

| accepted

Answered
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...

15 years ago | 1

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

15 years ago | 1

| accepted

Answered
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...

15 years ago | 1

| accepted

Answered
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...

15 years ago | 1

Answered
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);...

15 years ago | 2