![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/3994685.jpg)
Chris McComb
Followers: 0 Following: 0
www.cmccomb.com
sites.psu.edu/hsdl
Feeds
已回答
Is there a mathwork about tensegrity structure?
You might want to start <http://www.markschenk.com/tensegrity/files.html here> .
Is there a mathwork about tensegrity structure?
You might want to start <http://www.markschenk.com/tensegrity/files.html here> .
9 years 前 | 1
| 已接受
已回答
loop for extracting columns of a matrix
If you have a matrix, M, you can access column i (as a vector) by using M(:, i). (The colon indicates 'every row')
loop for extracting columns of a matrix
If you have a matrix, M, you can access column i (as a vector) by using M(:, i). (The colon indicates 'every row')
9 years 前 | 0
已回答
Remove intercept with "regress"
I think that all you need to do is remove the first column from your second argument (i.e. the column of 1's). [b17, bint1...
Remove intercept with "regress"
I think that all you need to do is remove the first column from your second argument (i.e. the column of 1's). [b17, bint1...
9 years 前 | 0
已回答
Replacing elements in matrix columns
You can do the replacement using logical indexing. The replacement for 34 --> 1 would be as follows: for i=2:3 idx = (...
Replacing elements in matrix columns
You can do the replacement using logical indexing. The replacement for 34 --> 1 would be as follows: for i=2:3 idx = (...
9 years 前 | 0
已回答
can i change the x axis without changing the plot? So i have a array with 10000 numbers in it, i want to plot thoes 10000 numbers in time, like 0-10sec insted of 0-10000.
You just need to supply a vector of x values. Something like x = linspace(0, 10, length(buf)); Then, just plot as ...
can i change the x axis without changing the plot? So i have a array with 10000 numbers in it, i want to plot thoes 10000 numbers in time, like 0-10sec insted of 0-10000.
You just need to supply a vector of x values. Something like x = linspace(0, 10, length(buf)); Then, just plot as ...
9 years 前 | 0
| 已接受
已回答
Can anyone explain from the third line till the end of below code..??
The third line from the end contains only the word 'else'. This is typical syntax for the if control structure. In the example, ...
Can anyone explain from the third line till the end of below code..??
The third line from the end contains only the word 'else'. This is typical syntax for the if control structure. In the example, ...
9 years 前 | 0
已回答
Creating Multiple Windowed Plots
You can use the command figure() to open a new window to plot in.
Creating Multiple Windowed Plots
You can use the command figure() to open a new window to plot in.
9 years 前 | 0
| 已接受
已回答
save txt file in loop
You could do something like this using the dlmwrite function: for i=1:1:50 dlmwrite(sprintf('%d.txt', i), magic(i));...
save txt file in loop
You could do something like this using the dlmwrite function: for i=1:1:50 dlmwrite(sprintf('%d.txt', i), magic(i));...
9 years 前 | 0
已回答
How do I change the resolution of an image produced by imagesc?
To use imresize, you first read the image in: a = imread('image.jpg'); Then, you apply imresize as follows (for example ...
How do I change the resolution of an image produced by imagesc?
To use imresize, you first read the image in: a = imread('image.jpg'); Then, you apply imresize as follows (for example ...
9 years 前 | 0
已回答
How to draw smooth balls (spheres) and sticks (cylinders) around my XYZ points.
This should do what you're looking for regarding the spheres (but see my above comment for cylinders). % Parameters SPHE...
How to draw smooth balls (spheres) and sticks (cylinders) around my XYZ points.
This should do what you're looking for regarding the spheres (but see my above comment for cylinders). % Parameters SPHE...
9 years 前 | 1
已回答
finding slope of a curve at some specific points
You might want to start by looking at MATLAB's gradient function. You could also use simple finite difference formulas, like: ...
finding slope of a curve at some specific points
You might want to start by looking at MATLAB's gradient function. You could also use simple finite difference formulas, like: ...
9 years 前 | 1
已回答
Fast interp1 with 'spline'
Are you calling interp1 with a vector or lookup points? If not, doing so could give you a significant speed-up.
Fast interp1 with 'spline'
Are you calling interp1 with a vector or lookup points? If not, doing so could give you a significant speed-up.
9 years 前 | 0
已回答
Data vectors with different time intervals
You should interpolate the temperature data. You can do this using a variety of methods, which you can find <http://www.mathwork...
Data vectors with different time intervals
You should interpolate the temperature data. You can do this using a variety of methods, which you can find <http://www.mathwork...
9 years 前 | 0
已回答
How significantly does the platform Matlab is run on affect numerical precision?
This difference could be a result of slightly different <http://www.netlib.org/blas/ BLAS> implementations. <http://www.mathw...
How significantly does the platform Matlab is run on affect numerical precision?
This difference could be a result of slightly different <http://www.netlib.org/blas/ BLAS> implementations. <http://www.mathw...
9 years 前 | 0
已回答
3D mesh/surf plot puzzle
You should try using the bar3 function, as follows: bar3(img, 1.0) The 1.0 sets the width to unity, so that the bars a...
3D mesh/surf plot puzzle
You should try using the bar3 function, as follows: bar3(img, 1.0) The 1.0 sets the width to unity, so that the bars a...
9 years 前 | 1
| 已接受
已回答
Displaying the order of objects on an axis
You're having this problem because the rectangle command draws the object in the xy plane, with z=0. Therefore, since I'm guessi...
Displaying the order of objects on an axis
You're having this problem because the rectangle command draws the object in the xy plane, with z=0. Therefore, since I'm guessi...
9 years 前 | 0
| 已接受
已回答
non-linear optimization over a frequency bandwidth
I think you can do exactly what you said: maximize the average voltage output. Use fmincon, but write an objective function t...
non-linear optimization over a frequency bandwidth
I think you can do exactly what you said: maximize the average voltage output. Use fmincon, but write an objective function t...
9 years 前 | 0
已回答
Is numeric gradient estimation well-posed
It will depend a great deal on the characteristics of your function. If your function is smooth, then you can generally expect g...
Is numeric gradient estimation well-posed
It will depend a great deal on the characteristics of your function. If your function is smooth, then you can generally expect g...
9 years 前 | 0
已回答
How can I set transparency in 2D plot?
I don't think there's a way to make markers transparent. However, you could plot each data point as a small circle (using patch)...
How can I set transparency in 2D plot?
I don't think there's a way to make markers transparent. However, you could plot each data point as a small circle (using patch)...
9 years 前 | 2
| 已接受
已回答
Creating a blank canvas in Matlab
I think that you should probably approach this using the patch command. This will allow you to specify circles with your desired...
Creating a blank canvas in Matlab
I think that you should probably approach this using the patch command. This will allow you to specify circles with your desired...
9 years 前 | 1
已回答
Matlab: Can anyone explains this geometry file
The snippet that you want to focus on is part of a switch statement. The variable nargin is a integer that tells you how many ar...
Matlab: Can anyone explains this geometry file
The snippet that you want to focus on is part of a switch statement. The variable nargin is a integer that tells you how many ar...
9 years 前 | 0
| 已接受