Answered

How to calculate the average without taking zeros values?

mean(nonzeros(X)) Y=[1 2 4 5 6 7 0 0 0 8 9 0 0 0 0; ... 2 3 4 5 6 7 0 0 0 8 0 0 0 9 0;... 3 4 5 6 7 8 9 0 0 0...

How to calculate the average without taking zeros values?

mean(nonzeros(X)) Y=[1 2 4 5 6 7 0 0 0 8 9 0 0 0 0; ... 2 3 4 5 6 7 0 0 0 8 0 0 0 9 0;... 3 4 5 6 7 8 9 0 0 0...

environ un an ago | 0

Question

How to ignore not serializable variables when saving workspace

Hi. I am collecting data from external equipment which communicates with java. I need to save the workspace but it won't save a...

plus d'un an ago | 2 answers | 0

Answered

Can't save workspace of 3 month calculation - URGENT

So the problem is that there are some variables that are communicating with java. So once it comes to that variable, it stops sa...

Can't save workspace of 3 month calculation - URGENT

So the problem is that there are some variables that are communicating with java. So once it comes to that variable, it stops sa...

plus d'un an ago | 0

Question

How can I resave old figures?

hi everyone, I have an old figure saved in MyFigure.fig format. Now I want to edit/add/remove something from this. So I open th...

plus de 3 ans ago | 0 answers | 0

Question

2014b alpha (transparency) bug

2014b alpha (transparency) doesn't work. Does anyone know a fix for this? thanks alpha(0.5) %does nothing to my bar plot

environ 5 ans ago | 0 answers | 0

Question

linkaxes with different x scales

Hi, I have 2 plots with same y axis but different x axis. But the two x axis are propotional. How do I link x=1 of plot 1 to x=1...

environ 5 ans ago | 3 answers | 0

Answered

How do I remove lines atached to each point in the STEM plot in MATLAB?

there are places easier to use stem than plot stem(1:10,rand(10,1),'LineStyle','none'); %removes the line Other options ...

How do I remove lines atached to each point in the STEM plot in MATLAB?

there are places easier to use stem than plot stem(1:10,rand(10,1),'LineStyle','none'); %removes the line Other options ...

plus de 5 ans ago | 2

Question

saving small data in '-v7.3' format

I am trying to figure out how '-v7.3' changes the saving method. I read in the help that it compresses files larger than 2GB. Is...

presque 6 ans ago | 0 answers | 0

Question

Vertical Line plot - change properties together

Hi matlab comunity, I have a plot with 100 lines (using line command). Now, I want to change the color, line style and line wid...

environ 6 ans ago | 2 answers | 0

Question

Script displays every line while running

I am using 2012a version. When I run a script from F5 or play button, it writes every line on the command window. How do I make...

environ 6 ans ago | 1 answer | 0

Answered

Set title and axis font type, scale and size

add ,'FontSize',22) to the end example xlabel('radius of snowflakes (pixels)','FontSize',22);

Set title and axis font type, scale and size

add ,'FontSize',22) to the end example xlabel('radius of snowflakes (pixels)','FontSize',22);

environ 7 ans ago | 0

Question

How do I find slack variables in SVM?/ Distance to the boundary?

Hi, I used "svmtrain" to train the algorithm: svmStruct=svmtrain(xdata,group); I used "svmclassify" to classify. My data is...

environ 7 ans ago | 2 answers | 0

Question

How to input a 3D matrix to SVMtrain? (2class problem)

Hi. I have a 3D matrix Training (4x12x7) with first dimension being the number of samples. Group gives the labels +1 or -1. I g...

environ 7 ans ago | 1 answer | 0

Answered

How to extract Numbers from a textfile

Does this help http://www.mathworks.com/help/matlab/ref/importdata.html

How to extract Numbers from a textfile

Does this help http://www.mathworks.com/help/matlab/ref/importdata.html

plus de 7 ans ago | 0

Question

line plot of events with value

I want to plot TEST values (amplitude) against the given time in TEST_TS. Then I want to plot vertical lines at given times of ...

plus de 7 ans ago | 0 answers | 0

Question

Coeff & constants of a symbolic equation

syms a b c exp=[-a-2*b-3*c+2, 4*b-c, -5*a+3] I need the coefficient matrix in the form % Coef_matrix=[ -1, -2, -3, ...

plus de 7 ans ago | 1 answer | 0

Question

Extracting coeffients and constants from a symbolic expression

Hi. im rather new to symbolic toolbox. Following is my code. clear all; close all; clc; N=3; alphavec = sym('alph...

plus de 7 ans ago | 0 answers | 0

Question

Get coeffients of symbolic expression

I have a set of equations (derv_alpha) that I have arrived at by differentiating an expression and setting it to zero. N=3;...

plus de 7 ans ago | 1 answer | 0

Question

Solving Symbolic Equations and maximizing a function

Sorry, given that this is too long and answer to each step gives a number of solutions to the next step, I will post the problem...

plus de 7 ans ago | 1 answer | 0

Question

Rearrange Variables in an equation that are changing everytime

I want to get one variable in terms of the other variables in the equation. For example syms a b eqn = ('a + 2*b = 1'...

plus de 7 ans ago | 1 answer | 0

Question

Rearrange Variables in an equation

I declare the variables using sym or syms then i have an equation a+2*b=1; I want MATLAB to give me a=1-2*b; or alternative...

plus de 7 ans ago | 1 answer | 1

Answered

MATLAB with JAVA

I tried this and I get the following error in matlab. Any idea why? thanks. ??? Undefined function or variable 'SimpleJavaSigna...

MATLAB with JAVA

I tried this and I get the following error in matlab. Any idea why? thanks. ??? Undefined function or variable 'SimpleJavaSigna...

plus de 8 ans ago | 0

Question

python to MATLAB

Hi, I am using a program called NENGO (http://nengo.ca) (open access) which codes stuff in python. I want to run the python file...

plus de 8 ans ago | 3 answers | 0