Windows XP and Windows 7

I install matlab on both above tow OS , it works well on XP and not on Windows 7

5 Commenti

debasish
debasish il 27 Giu 2012
which version of matlab and windows 7 are you having??
Jan
Jan il 27 Giu 2012
"It does not work" is too vague for a suggestion about how to fix the problem. Please provide any details.
Mohammed
Mohammed il 27 Giu 2012
I have win 7 ultimate and matlab 2012a
Mohammed
Mohammed il 27 Giu 2012
I run matlab code , part of the script run fine and the rest I got error msg
*********
[R,P,K] = residue(M.b,M.f);
Attempt to reference field of non-structure array.
Error in rfdemo (line 171)
[R,P,K] = residue(M.b,M.f);
*********
I run the same script on other machine (win xp) and same version of matlab 2012a
the script run OK
Jan
Jan il 27 Giu 2012
Ah, well. This error message means, that M is not a struct. Without seeing the code, it is impossible to guess, what the problem is. But you do have the power to use the debugger to step through your code until you find out, why M is not defined as you expect.
Please read: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

Accedi per commentare.

Risposte (4)

Paul Metcalf
Paul Metcalf il 27 Giu 2012

0 voti

I've had no issue running MATLAB on Windows 7.

2 Commenti

debasish
debasish il 27 Giu 2012
nor do anyone out here!!
Walter Roberson
Walter Roberson il 27 Giu 2012
debasish, there are a number of documented problems in running earlier versions of MATLAB on Windows 7.

Accedi per commentare.

Mani
Mani il 27 Giu 2012

0 voti

Run Matlab as Admin. (Rightclick ) -- on icon --> Run As Admin
Jan
Jan il 27 Giu 2012

0 voti

Matlab 2012a is compatible with Windows7 in general.
You hesitate to explain, what "does not work" explicitly means. So I can only guess: When you install the 32-bit Matlab on a 64 bit Windows, the program folder is created in "C:\Program Files (x86)". Some functions will fail due to the spaces in the path. Therefore I've created "C:\ProgramFiles_" in addition and create the 32-bit Matlab there.
Sean de Wolski
Sean de Wolski il 27 Giu 2012
dbstop if error
Then run your script. What is M? I am willing to guess it is not a struct and thus why you are getting that error.
This likely has nothing to do with OS.

1 Commento

Walter Roberson
Walter Roberson il 27 Giu 2012
It could have to do with different files being on the MATLAB path.

Accedi per commentare.

Categorie

Scopri di più su Environment and Settings in Centro assistenza e File Exchange

Tag

Richiesto:

il 27 Giu 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by