Kevin Holst - MATLAB Central
photo

Kevin Holst


US Air Force

2012 年からアクティブ

Followers: 0   Following: 0

統計

All
MATLAB AnswersCodyZoom OutFrom 02/12 to 03/25Use left and right arrows to move selectionFrom 02/12Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%
MATLAB Answers

3 質問
71 回答

Cody

0 問題
71 解答

ランク
255
of 297,648

評判
355

コントリビューション
3 質問
71 回答

回答採用率
33.33%

獲得投票数
111

ランク
 of 20,460

評判
N/A

平均評価
0.00

コントリビューション
0 ファイル

ダウンロード
0

ALL TIME ダウンロード
0

ランク
8,292
of 159,301

コントリビューション
0 問題
71 解答

スコア
720

バッジ数
2

コントリビューション
0 投稿

コントリビューション
0 パブリック チャネル

平均評価

コントリビューション
0 ハイライト

平均いいねの数

  • First Review
  • 6 Month Streak
  • Thankful Level 1
  • Knowledgeable Level 4
  • First Answer
  • Commenter
  • Solver

バッジを表示

Feeds

表示方法

回答済み
How can I change contents of a string?
I'd say do something like this: names = strrep({data{:,1}},'/','-'); That assumes that all of the names are only in the ...

12年以上 前 | 0

解決済み


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

12年以上 前

解決済み


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

12年以上 前

回答済み
Calculate difference between two times
since you're getting this from a data file I'd suggest something like this: fid = fopen('data.txt'); data = textscan(fid...

12年以上 前 | 0

回答済み
Loop Principal Component Analysis
I'd suggest looking at the help page a little more for PCA: http://www.mathworks.com/help/toolbox/stats/princomp.html "COE...

12年以上 前 | 0

回答済み
Saving structs
If you're wanting to save the structure as a structure, don't put in the -struct flag. That saves all of the fieldnames as their...

12年以上 前 | 2

| 採用済み

回答済み
breaking a column of strings in two different columns
It appears that you can't really do matrix operations on cell arrays like: mycell{:,2} = mycell{:,1}(3:end); So here's w...

13年弱 前 | 1

| 採用済み

回答済み
Writing a matrix as column vectors
If Y is a workspace variable that is an m x n matrix, then you can extract the column vectors by: y1 = Y(:,1); etc. Is that...

13年弱 前 | 0

回答済み
set default properties ERROR
It looks as though you may have a variable named 'set' in your workspace. Is that the case?

13年弱 前 | 1

| 採用済み

回答済み
surf plot behaves strange!
Surf attaches a color to a face based on one point on that face, and each face will be created by 4 points, so that color may no...

13年弱 前 | 0

回答済み
GRIDDATA suitability for interpolating from one mesh to another
griddata (in this case griddata3) is going to be removed in a future release of Matlab. Use TriScatteredInterp instead. I've use...

13年弱 前 | 0

| 採用済み

回答済み
How to create random vectors of the same lengths?
from the documentation: Examples Generate values from the uniform distribution on the interval [a, b]. r = a + (b-a).*ra...

13年弱 前 | 0

| 採用済み

回答済み
for loop
You can't call or write to a variable like that in a loop, unfortunately. My suggestion would be to have a structure that contai...

13年弱 前 | 0

回答済み
Plot points with unknown column numbers
Here's the fix, sorry it took a while. Got distracted ;) figure(2) names = 1:1:rx; for i =1:1:rx name = i; ...

13年弱 前 | 0

| 採用済み

回答済み
Plot points with unknown column numbers
did you turn hold back off? figure(2) names = 1:1:rx; for i =1:1:rx name = i; plot (fx,fy,'bo') ...

13年弱 前 | 0

回答済み
geting value as Inf
Here's what I think your code should look like in order to run properly: M=100; r=0.8; alpha=0.45; beta=0.75; g...

13年弱 前 | 0

| 採用済み

回答済み
Passing base workspace variables to callback functions
Have you tried using the evalin function, maybe something like: x = evalin('base','var');

13年弱 前 | 1

回答済み
geting value as Inf
I actually answered your problem in your previous problem. The error is in your calculations for c, p, and specifically a. These...

13年弱 前 | 0

回答済み
Rows
column1 = min(mat,[],2);

13年弱 前 | 1

解決済み


Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...

13年弱 前

解決済み


Count from 0 to N^M in base N.
Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

13年弱 前

解決済み


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

13年弱 前

回答済み
How can i get image from other GUI in a project - i can not use global variable
I'm assuming that the problem is you're unable to use the information you acquired from GUI2. Globals may work, but they're not ...

13年弱 前 | 2

解決済み


pressure to dB?
given x ratio of pressure, find corresponding y dB

13年弱 前

回答済み
need help optimizing this code...
I don't think that will work actually. Try this, it's a little convoluted, but I think it's correct: % this assumes w and s...

13年弱 前 | 0

回答済み
color-coding a 2D plot
unfortunately shading interp doesn't seem to work on contourf so here's an inelegant solution to your problem. [x,y] = mesh...

13年弱 前 | 1

| 採用済み

回答済み
Problem with displaying output of executable
If you're compiling it as a 'Windows Standalone Application' switch that to a 'Console Standalone Application'.

13年弱 前 | 0

| 採用済み

回答済み
color-coding a 2D plot
how about: [x,y] = meshgrid(-10:0.1:10,-10:0.1:10); % just to get some x and y values z = sqrt(x.^2 + y.^2); contour...

13年弱 前 | 0

回答済み
Add label to TXT file
you could just add a simple fopen command prior to your dlmwrite command: fid = fopen('c:\data.txt','w'); fprintf(fid,'H...

13年弱 前 | 0

回答済み
Change position of numbers on x axes in surface plot
Perhaps something like this would work for you? grid off %this prevents the addition of gridlines at half spacing ha =...

13年弱 前 | 0

| 採用済み

さらに読み込む