답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 11

답변 있음
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

10년 초과 전 | 1

답변 있음
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)] ...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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.

10년 초과 전 | 2

답변 있음
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...

10년 초과 전 | 1

답변 있음
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 ...

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 1

| 수락됨

답변 있음
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 ...

10년 초과 전 | 1

답변 있음
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 ...

10년 초과 전 | 0

답변 있음
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 ...

10년 초과 전 | 2

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

10년 초과 전 | 0

| 수락됨

답변 있음
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...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
List toolboxes currently in use by session
license('inuse') will show the toolboxes checked out

10년 초과 전 | 2

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

10년 초과 전 | 1

| 수락됨

답변 있음
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...

10년 초과 전 | 0

답변 있음
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 ...

10년 초과 전 | 1

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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.^...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

| 수락됨

답변 있음
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. ...

10년 초과 전 | 0

답변 있음
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)...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 0

답변 있음
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...

10년 초과 전 | 1

더 보기