Respondida
I want to loop a value into a vector, how do I do this?
You've got the assignment to |F(m)| outside the loop on |m|... ... C = B(:,end) % takes the last elements in the B v...

alrededor de 9 años hace | 0

Respondida
save Matrix immediately?
imagesc(xx,t,malta1t_H.asc') |imagesc| doesn't read a file; it only operates on an image array already in memory. Also y...

alrededor de 9 años hace | 1

Respondida
How to plot a graph of sine and cosine function in command prompt or by function in matlab?
Why would you expect the above to give any output--all you've done is define a function handle and a vector of two points...you'...

alrededor de 9 años hace | 1

Respondida
how to store data result to excel from an equation in matlab for a simulation
_"As We know that whenever we specify xlswrite command it starts writing from cell A1 of the excel sheet."_ Au contraire, "we...

alrededor de 9 años hace | 0

Respondida
Fixing the absolute bar width on 'bar' plot
Well, that's bizarre-looking on the surface will grant...I'm not sure how to fix up the bar widths directly but I can give you a...

alrededor de 9 años hace | 3

| aceptada

Respondida
Generate a Datastore for binary data?
I've not used it much but have read some of the doc...see <http://www.mathworks.com/help/matlab/import_export/what-is-a-datastor...

alrededor de 9 años hace | 1

Respondida
Reading a file, storing data as variables, but unable to access them?
_"...when I run my program, I get 'ans' instead of any variable 't'"_ Because you're calling the function without a LHS into ...

alrededor de 9 años hace | 2

| aceptada

Respondida
How can I format fscanf to read strings of different lengths, some with spaces in them?
Can't always read a mal-formed input file; if the data strings contain embedded blanks they need to be quoted strings. Probab...

alrededor de 9 años hace | 0

Respondida
How to read data from txt between 2 lines with the same symbol?
That's pretty simple to do, actually... fid=fopen('yourfile.txt'); % open the file while ~feof(fid) % begin ...

alrededor de 9 años hace | 1

| aceptada

Respondida
How can I sort my data by within a sorting
doc sortrows Following up on previous note -- given >> x=rand(10,1); y=rand(size(x))-0.5; >> [x y] ans = 0.15...

alrededor de 9 años hace | 0

Respondida
Help with displaying the vowels
Use the string a cell array processing features of Matlab.. test={'Opal','Otis';'Fib','Lupe'}; isvowel=@(s) ismember(low...

alrededor de 9 años hace | 0

Respondida
Subplots: Plots do not have all their properties
Maybe be "more better" ways; I've not much practical experience with |copyobj|, but the following seems to get you where you wan...

alrededor de 9 años hace | 1

| aceptada

Respondida
How to delete zeros from a vector and place it again in that vector?
_"Is there any MATLAB functions available...?"_ Actually, there is for the particular case of removing/recovering zeros -- ...

alrededor de 9 años hace | 2

Respondida
How to delete zeros from a vector and place it again in that vector?
Once you've thrown away the zeros, they're gone -- there's no way of knowing where they were in the original _A_ from _B_ alone....

alrededor de 9 años hace | 2

| aceptada

Respondida
How to correct Reshape error
_"Is there an obvious solution I'm missing?"_ Not necessarily so obvious solution, but an apparent problem... reshape(Gri...

alrededor de 9 años hace | 0

Respondida
reject input if it is a string
From the documentation we find that |input| _"requests user input , ... waits for input from the keyboard, evaluates any express...

alrededor de 9 años hace | 1

Respondida
how to make a contour with time variable on x-axis
If |contourf| isn't yet datetime aware, convert to |datenum| instead which are just a double. Then you'll have to use |datetick...

alrededor de 9 años hace | 0

Respondida
When I make a system call from matlab in Linux, does it use a different thread?
(On reflection, I think my subsequent comment actually answers the question pretty-much in toto so I'll put it here instead --dp...

alrededor de 9 años hace | 0

Respondida
What is missing from MATLAB?
Quite a lot on the graphics side...just a couple to start reminded by the Answer I just gave (for about the umpteenth time) on h...

alrededor de 9 años hace | 0

Respondida
How do i label each bar in bar group with a "string" on top?
... hB=bar(y); % use a meaningful variable for a handle array... hAx=gca; % get a variable for the current...

alrededor de 9 años hace | 7

| aceptada

Respondida
control chart on new data
A control chart plot is just a line plot with specific values...you can add to it just like any other plot by setting |*hold on*...

alrededor de 9 años hace | 1

Respondida
I am trying to approximate the global minimum of a function within a given domain, and the index of that global minimum.
Well, that'll only be as good as the granularity of the points at which you evaluate the function but x=[x0:dx:x1]; [xmi...

alrededor de 9 años hace | 0

Respondida
Function takes too long time to run and Warning in interpolation
First section can be rewritten as ix=any(Rand_dHw<= 0),2)|any(dHw_mu<=0,2)); % find any rows with zeros in either Rand...

alrededor de 9 años hace | 0

Respondida
Run Win32 executable and get status of completion...
I answered this in your question added to the other thread; this confirms the issue is the one I addressed there -- Win32 progra...

alrededor de 9 años hace | 1

Respondida
Calculate average for 0.01 step in first column
I'd already posted this once but there was no Answer connected so I'll try again... Presuming no missing data, use the native...

alrededor de 9 años hace | 4

Respondida
Subtract column from previous column in for loop
Presuming I infer your meaning precisely... >> x=randi(200,4,3) % sample dummy data x = 127 182 ...

alrededor de 9 años hace | 0

| aceptada

Respondida
How does a mex function work ?
The author should have written the help information into the associated m-file that calls the mex function or at least commented...

alrededor de 9 años hace | 0

Respondida
How to make this code for more efficient or run in less amount of time? The code works same a pdist2(A,A), but pdist2(A,A) function takes few seconds only, why is that?
Two things... 1. After the preliminaries are out of the way, |*pdist2*| has the following-- % Call a mex file to compute...

alrededor de 9 años hace | 0

| aceptada

Respondida
Running .exe file from MTLAB using system() and Wait until the program closes
>> help system system Execute system command and return result. [status,result] = system('command') calls upon the op...

alrededor de 9 años hace | 0

Respondida
How to plot live data from arduino on current HH:MM x axis
Create the initial figure and a line handle something like figure hL=plot(t,nan,'datetimetickformat','HH:mm'); hold o...

alrededor de 9 años hace | 0

| aceptada

Cargar más