Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 11

Réponse apportée
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

plus de 10 ans il y a | 1

Réponse apportée
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)] ...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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.

plus de 10 ans il y a | 2

Réponse apportée
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...

plus de 10 ans il y a | 1

Réponse apportée
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 ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 10 ans il y a | 1

Réponse apportée
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 ...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 2

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

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 1

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
List toolboxes currently in use by session
license('inuse') will show the toolboxes checked out

plus de 10 ans il y a | 2

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

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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 ...

plus de 10 ans il y a | 1

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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.^...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
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. ...

plus de 10 ans il y a | 0

Réponse apportée
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)...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 0

Réponse apportée
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...

plus de 10 ans il y a | 1

Charger plus