Beantwortet
How to assign multiple figures on same code
first of all the tags do not need# as they are already marked as tags, # are used in sites like facebook, twitter, etc. to not h...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
Model Portability - Troubleshooting Directory Path Error
You probably want to look at the following: pwd %get current working directory addpath %add a path to matlab's list of p...

mehr als 10 Jahre vor | 0

Beantwortet
How can I add all subfolders to my MATLAB path?
if you take a quick gander at the addpath documentation it'll show you Add Folder and Its Subfolders to Search Path Add...

mehr als 10 Jahre vor | 11

Beantwortet
Creating a Matrix by Manipulation
you would index the item like A(1,2) = 10; %A(1,2) says row 1 column 2 of A should = 10

mehr als 10 Jahre vor | 1

Beantwortet
Creating a Matrix that is a manipulation of another matrix
There are lots of ways how about element by element multiplication like: x = magic(4) trans = [ones(4,2) -ones(4,2)] ...

mehr als 10 Jahre vor | 0

Beantwortet
Averaging multiple cells element by element
% my code to create dummy data x = randi(10,5,7); npsoutOrgN = mat2cell(x,5,ones(1,7)); %put all into an array %np...

mehr als 10 Jahre vor | 0

Beantwortet
How to show with a line/arrow the center/one/two standard deviation of the normal distribution plot?
would something like this work? x = .03*randn(10000,1)+.34; [N,X] = hist(x,100); hfig = figure; bar(X,N) hold o...

mehr als 10 Jahre vor | 0

Beantwortet
write an m-file using while loop which calculates the sum of elements within the following vector x=[5 2 -9 10 -1 9 -1] until a number greater than 8 is met? please help i have tried and i am confused on how to do this.
general outline would be x=[5 2 -9 10 -1 9 -1]; while currentsum<=8 currentsum = %what you want to sum up. end

mehr als 10 Jahre vor | 0

Beantwortet
Sorting an array using Loops
Was there an issue with how Cedric edited your code because i do not see how the function is able to get max1 as 5000. specific...

mehr als 10 Jahre vor | 0

Beantwortet
Why isn't three divided by two 1.5?
because it's rounding due to your setting x and y as integers and not double or single precision.

mehr als 10 Jahre vor | 2

Beantwortet
Compare values in a table to a set of criteria
matlab does not do conditionals like that. you'll need to use the logical operands to accomplish this. so if it isn't a ce...

mehr als 10 Jahre vor | 1

Beantwortet
How do I write a for loop for multiple situations?
You do not need loops to determine the N-of a kind. If you follow the assignment you should be looking at the sorted array and ...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
How to do this in GUI ?
so the behavior of the pushbutton_callback() function is to run when the push button is pressed. so you are 99% there. get rid...

mehr als 10 Jahre vor | 1

| akzeptiert

Beantwortet
matlab simplification of code
There is no need to perform the for loop and this problem can be solved through matrix arithmetic. to simplify it lets say ...

mehr als 10 Jahre vor | 1

Beantwortet
How to define a function
check the documentation on functions <http://www.mathworks.com/help/matlab/ref/function.html>. after that it'll look something ...

mehr als 10 Jahre vor | 0

Beantwortet
using publish with a function rather than script
yes it can. follow my example: so i started a function called plotme() function plotme(A,B) figure,plot(A,B) then ...

mehr als 10 Jahre vor | 2

Beantwortet
Sliding neighborhood - how to vectorize?
why not use conv2? signalInBlock2 = zeros(230, 230); tic temp = conv2(noised,ones(32,32),'valid'); signalIn...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
cycling through both linestyle and linecolor
To answer the last question you can write your own plot function as i have below: function hplot = cblindtest(pnts) hplo...

mehr als 10 Jahre vor | 1

Beantwortet
How to change the color and remove values from wind rose?
I think i understand what you're trying to accomplish so you can try something like the example below: %generate some dum...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
List toolboxes currently in use by session
license('inuse') will show the toolboxes checked out

mehr als 10 Jahre vor | 2

Beantwortet
What can I use as a Plus or Minus sign?
s=(-800/(2*.1))+[1 -1]*(sqrt(((800/(.1*2))^2)-(1/(.1*.000001))))

mehr als 10 Jahre vor | 1

| akzeptiert

Beantwortet
Time series code not quite right, thoughts?
are you looking to something more like this? T=10000; %why generate e it 4 times when randn can generate it for you e...

mehr als 10 Jahre vor | 0

Beantwortet
Why does char give me an empty output?
char() converts the values into the 7-bit ASCII characters. use num2str() or the other equivalent functions to convert numbers ...

mehr als 10 Jahre vor | 1

Beantwortet
How to use dlmwrite in a for loop?
matlab is not going to fill in the %d number for you. you should be using something like sprintf to a variable to generate the f...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
How can I plot distribution with shades?
you'd do something like this where you would use fill to generate the ranges of the distribution t = 0:.1:10; x = 2*t.^...

mehr als 10 Jahre vor | 0

Beantwortet
Plotyy making extra lines
Main reason is because you're concatenating the two arrays [x x] and [y2 y3] as they are 1xN each so in the code you're just plo...

mehr als 10 Jahre vor | 0

| akzeptiert

Beantwortet
GUI issue : How to show two images in two axes based on two list boxes
I do not think i understand the problem clearly but first thing comes to mind is that axes do not have a 'string' property. ...

mehr als 10 Jahre vor | 0

Beantwortet
Drawing line between elements with same values in a 2D matrix
clf A = [1 2 3 4 5 6;1 3 5 4 6 9;4 1 3 8 7 5]; y = 2:0.1:2.2; x = 8:13; [X Y] = meshgrid(x,y); [oI]= find(A==1)...

mehr als 10 Jahre vor | 0

Beantwortet
How to plot three Y-axes with same X-axis in matlab
Easiest solution is to browse the file exchange. a quick search provided me with <http://www.mathworks.com/matlabcentral/fileex...

mehr als 10 Jahre vor | 0

Beantwortet
How can I find this six digit number?
Where are you getting stuck? This is a simple linear algebra question (Ax=B) hint use mldivide() or the shortcut \. You have 6...

mehr als 10 Jahre vor | 1

Mehr laden