Questions tagged [matlab]

Programming questions about MATLAB are off topic and should be asked on Stack Overflow.

MATLAB is a high-level language and interactive programming environment developed by MathWorks. It is the foundation for a number of other tools, including Simulink and various toolboxes that extend the core capabilities.

Programming questions about MATLAB are off topic and should be asked on Stack Overflow.

MATLAB is a high-level language and interactive programming environment developed by MathWorks. It is the foundation for a number of other tools, including Simulink and various toolboxes that extend the core capabilities.

Some informative links that show up quite often in answers:

256 questions
3
votes
1 answer

is it possible to install matlab on an external hdd and use it with any computer?

I'm looking for a portable solution to using matlab on any computer.I tried to install matlab on the hdd and found that it wouldn't work on other computers. What can I do to make it work? Is it even possible?
mugetsu
  • 471
3
votes
1 answer

Is there a way to hide the backup files in the "Current Folder" pane in MATLAB?

MATLAB automatically generates backup files. For example, if I have a file called "simulation.m", after some editing MATLAB automatically generates a file called "simulation.m~" in the same folder. While it is a nice feature, I don't want to see…
ceiling cat
  • 4,477
2
votes
1 answer

webMathematica is to Mathematica as _________ is to Matlab

webMathematica lets you put Mathematica tools on the web easily. What is the Matlab equivalent?
user1413
  • 4,404
2
votes
2 answers

Converting accelerometer reading from Hex to Decimal

I have a accelerometer generated hex file with a time stamp, it has acceleration data from three axes. The data looks like this: C1 EB C1 F9 C1 C6 12:57:39.046: 41 F0 81 FA 41 C6 12:57:39.062: 01 F7 C1 FA 81 C6 12:57:39.078: I need to…
Dilip
  • 21
2
votes
2 answers

which matlab version should i use with windows7?

which matlab version should i use with windows7?
chee
2
votes
1 answer

Change the file from .mat to .txt

How can I convert a .mat file into a .txt file with all the headers? I do not know how many fields are present. How do I export this data? I have MATLAB. I tried in MATLAB: load('test_data.mat'); save('test_data.txt', '-ascii'); It did not work.
Paul
1
vote
1 answer

Is it possible to save a dynamic path to Matlab search path or pathdef.m?

I want to add a path like getenv('userprofile'),'\Dropbox\Matlab\example1' to the Matlab pathdef.m file. The system variable %userprofile% will change from computer to computer. Adding the phrase to pathdef.m will not work though. Is there a way to…
Argyll
  • 616
1
vote
1 answer

Can I install Matlab on my external HDD drive?

I am running Win 7 on my laptop. My hard drive is very small 128 G, and I haven't storage enough to install Matlab on local partition. Can I install Matlab on my external hard and use it without any problems? Thanks
1
vote
2 answers

Summing a row excluding its minimum value

I need some help please. Let's say I have a matrix: 4 5 6 6 a= 2 7 9 1 9 0 4 5 I want to find the sum of row 2, without including the minimum value of row 2 (that's 1), I have tried this: sum(a(2,:)~=1) but it does not work. Can someone…
pete
  • 11
1
vote
1 answer

'ttest' function not working in Matlab

When I am using this statement in Matlab in my computer then its giving error as follow: [h,p,ci]=ttest(randn(100,1),0.1) Error: ??? Error using ==> nanmean Too many input arguments. Error in ==> ttest at 104 xmean = nanmean(x,dim); However if…
user42307
1
vote
0 answers

Matlab refuses to compute a limit

I have some function handle which has a variable input x, along with some parameters. I am trying to compute the limit when x goes to zero from above of that function, for different values of the parameters, so for given a, b and c, I…
1
vote
1 answer

computing groebner basis in Matlab

I am completely new in Matlab and want to compute groebner basis of some polynomials. I just wrote the following code in a new window in Matlab but it says gbasis is undefined! syms x1 x2 x3 x4 p = [x1^2-x1, x2^2-x2, x3^2-x3, x4^2-x4,x1+x3-1,…
GhD
  • 111
1
vote
2 answers

To draw x-axis and y-axis, both through origin (MATLAB)

In the following MATLAB plot, I want to draw x-axis and y-axis, both through origin. What would be the easiest code? x = linspace(-2*pi,2*pi,100); y1 = sin(x); y2 = cos(x); figure plot(x,y1,x,y2)
1
vote
0 answers

How to plot an ellipsoid in MATLAB knowing eigenvalues and eigenvectors?

Using [V,D]=eig(Pmatrix) I get V= 0.7107 0.6581 -0.2486 -0.6849 0.7280 -0.0306 -0.1608 -0.1920 -0.9681 D= 103.2955 0 0 0 127.9054 0 0 0 135.6728 where, as I understand…
Armadillo
  • 133
1
vote
1 answer

Matlab ploting in one figure from function

I wrote a function that plot a function y(t) using 4 input argument. function plot_me_n1(A,B,m1,m2) t = linspace(0,10,10/0.01); y=A*exp(-m1*t) - B*exp(-m2*t); plot(t,y,'color',rand(1,4)); title('equation', 'fontsize',…
ZeroVash
  • 111
1
2 3 4