Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 11

Respondida
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

más de 10 años hace | 1

Respondida
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)] ...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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.

más de 10 años hace | 2

Respondida
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...

más de 10 años hace | 1

Respondida
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 ...

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 1

| aceptada

Respondida
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 ...

más de 10 años hace | 1

Respondida
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 ...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 2

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

más de 10 años hace | 0

| aceptada

Respondida
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...

más de 10 años hace | 1

Respondida
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...

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 2

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

más de 10 años hace | 1

| aceptada

Respondida
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...

más de 10 años hace | 0

Respondida
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 ...

más de 10 años hace | 1

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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.^...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

| aceptada

Respondida
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. ...

más de 10 años hace | 0

Respondida
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)...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 0

Respondida
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...

más de 10 años hace | 1

Cargar más