why can't i extract feature and save it to .mat file ??
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
can anyone point out the mistakes that i have make ? i'm using R2012a
2 Kommentare
Stephen23
am 5 Okt. 2015
Bearbeitet: Stephen23
am 5 Okt. 2015
We do not have your data and we cannot run your code.
Rather than making us guess what happens when your code is run, it helps us if you actually tell us this information. This is because our mind-reading abilities are rather limited: we cannot read your computer screen, so we don't magically know what your code does.
Do you get any error or warning messages? If it runs, what is happening that you do not expect to? How are you checking the output? What do you want it to do?
Antworten (1)
Walter Roberson
am 5 Okt. 2015
No. However if you were to convert your code to use fullfile instead of constructing filenames as strings, and if you were to use Smart Indent on your code and post the results, then there is more of a chance that someone could understand your code well enough to find a mistake.
... Just like I wrote before and you deleted the question and reposted it without making improvements
2 Kommentare
Stephen23
am 5 Okt. 2015
Bearbeitet: Stephen23
am 5 Okt. 2015
Indented code is easier to follow and understand. Compare indented code:
N = 3;
for k = 1:N
X = k^N;
print(X)
end
print(k)
against code without indentation (like your code):
N = 3;
for k = 1:N
X = k^N;
print(X)
end
print(k)
You can see that the indented code makes it easier to follow which parts of the code are inside the loop, and which parts are not inside the loop.
By default the MATLAB Editor indents the code inside of loops, for operations, switch operations, nested functions, and some other operations. You normally don't have to do anything to use this feature, as it is turned on by default. However manual deletion of those indents is still possible, but should be avoided.
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!