Risposto
How to create a loop calcualtion?
Probably something like this.. num_values=10; % total values first_val=2; output=zeros(1,num_values); %preal...

oltre 13 anni fa | 4

Risposto
How to learn neural networks ?
here is a complete course online: <http://www.willamette.edu/~gorr/classes/cs449/intro.html> Then there are books like: In...

oltre 13 anni fa | 0

Risposto
How do I get Matlab to stop formating my numbers?
You can set the default format through the GUI on Windows: File > Preferences > Command Window > Numeric format On MAC: M...

oltre 13 anni fa | 0

| accettato

Risposto
putting the data inside the correct x values in hist plot
y=[3,5]; x=1:6; hist(y+0.5,x+0.5)

oltre 13 anni fa | 0

| accettato

Risposto
Find a Maximum in a Matrix
There probably is a more elegant solution but this should work a=rand(40,10); %some random 40x10 data for i=1:length(a...

oltre 13 anni fa | 0

| accettato

Risposto
How to run automatically an .m code everyday in a specified time
Since you are on a mac you need to setup a cron job to run daily. <http://hints.macworld.com/article.php?story=20010207001637...

oltre 13 anni fa | 0

Risposto
Figure Visibility and Save
a=1:4; f = figure('visible','off'); plot(a) saveas(f,'newout','fig') Now to reopen the figure % to ...

oltre 13 anni fa | 4

| accettato

Risposto
I'm using MATLAB 2008, and I have looked at some tutorials online about a Butterworth filter. Does MATLAB 2008 have this function?
The Butterworth IIR filter design using specification object function 'butter' is not part of MATLAB core but the Signal proces...

oltre 13 anni fa | 0

Risposto
Create Figure Without Displaying it
Something like this? a=1:4; f = figure('visible','off'); plot(a) saveas(f,'newout','fig') Now to reopen...

oltre 13 anni fa | 12

Risposto
To call a function results in an error (fzero)
You need to define elev and h in the function you are calling initally. you 'h' value comes from the funw function which will...

oltre 13 anni fa | 0

| accettato

Risposto
Reading multiple images from a folder in MATLAB Directory
Your error states that Error using imread (line 372) File "polymerc.jpg" does not exist. Even though the image *'polym...

oltre 13 anni fa | 0

Risposto
my loop dint work as i want
for ii=1:3 for jj=1:3 a(ii,jj)=randi(10); end end x=reshape(a',1,[]) or x=randi(10,1,9)

oltre 13 anni fa | 1

| accettato

Risposto
Merging multiple subplots into a mosaic
Something like this: just change the plot command with what you wan to plot.. % Create subplot subplot1 = subplot(...

oltre 13 anni fa | 0

Risposto
erasing all the rows that begin with NaN
If A is your input cell matrix out=cellfun(@isnan,A(:,1),'UniformOutput',false) count=cellfun(@(x)any(x==1),out); A(~...

oltre 13 anni fa | 0

Risposto
drow a image only by a matrix
Maybe imshow will help eg: c=rand(300,400); % generate random matrix data imshow(c)

oltre 13 anni fa | 1

| accettato

Domanda


MATLAB consuming Memory on MAC
The latest R2012a consumes Real memory on the MAC even if it is not doing anything and just left open. Right now my MATLAB is u...

oltre 13 anni fa | 0 risposte | 0

0

risposte

Risposto
matlab file for ubuntu as excutable program
MATLAB Compiler™ lets you share your MATLAB® application as an executable or a shared library. Executables and libraries created...

oltre 13 anni fa | 0

| accettato

Risposto
more efficient way of coding a series of string variables which contain a fix subset of strings
IS this what you need? kk={'di' 'rt' 'ew' }; name={'Aust' 'Bel' 'Est' 'Fr'}; for ii=1:length(name) l=strca...

oltre 13 anni fa | 0

| accettato

Risposto
element by element sum with two arrays
Is this how you want it.. A1=[1:4]; B1=[5:8]; a=2; b=2; c=(A1-a.*(B1-b)).^2 % just to show the element wi...

oltre 13 anni fa | 0

Risposto
How to save one of the variable in workspace in .mat format?
a=rand(50,110); % create random data save('output.mat','a') % save variable in the output.mat file check to s...

oltre 13 anni fa | 4

Risposto
String starting with ' and ending with '
Here is my function file function [A,B]=readfunction(file) file_name=file % donot need this just to show it goe...

oltre 13 anni fa | 0

Risposto
for loop doesn't seem to loop
use ii instead of i since i is built into matlab for complex numbers for ii=1:8760 ii % to show which loop you are in ...

oltre 13 anni fa | 0

Risposto
problem in image compression
Please refer the following thread on how to ask a question and get a fast answer <http://www.mathworks.com/matlabcentral/answe...

oltre 13 anni fa | 0

Risposto
Adding elements of 3D matrices
a(:,:,1)=[1 2 3;4 5 6;7 8 9]; a(:,:,2)=[1 2 3;4 5 6;7 8 9]; a(:,:,3)=[1 2 3;4 5 6;7 8 9]; b=a(:,:,1)+a(:,:,2)...

oltre 13 anni fa | 0

Risposto
Replacing a row with another one
is this what you want a={'1' '2' '3';'4' '5' '6';'7' '8' '9'; 'a' 'b' 'c'; 'd' 'e' 'f'; 'g' 'h' 'i'} new={'1' '2' '3'} ...

oltre 13 anni fa | 13

| accettato

Risposto
Break in the axis
Couple of file exchange contributions Breakaxis <http://www.mathworks.com/matlabcentral/fileexchange/3668-breakaxis> ...

oltre 13 anni fa | 2

| accettato

Risposto
Quick NAN Question HELP!
use isnan A = [1 2 3 1 nan]; ~(isnan(A)) ans = 1 1 1 1 0

oltre 13 anni fa | 0

| accettato

Risposto
subplot within a subplot
time = 1:168; RawData = cos((2*pi)/12*time)+randn(size(time)); Data = cell(1,5); for i = 1:3; Data1{i} = RawDa...

oltre 13 anni fa | 0

Risposto
Pause the execution of script
maybe uiwait can help. doc uiwait

oltre 13 anni fa | 0

Domanda


Error libXft.2.dylib on MAC
when I try to run an X based program out of MATLAB on the MAC I ge thte following error. ! ~/Desktop/afniIntel_64/3dmaskave...

oltre 13 anni fa | 2 risposte | 0

2

risposte

Carica altro