photo

Kevin Holst


US Air Force

Actif depuis 2012

Followers: 0   Following: 0

Message

Statistiques

All
MATLAB Answers

3 Questions
71 Réponses

Cody

0 Problèmes
71 Solutions

RANG
257
of 300 791

RÉPUTATION
355

CONTRIBUTIONS
3 Questions
71 Réponses

ACCEPTATION DE VOS RÉPONSES
33.33%

VOTES REÇUS
111

RANG
 of 21 091

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG
9 524
of 171 108

CONTRIBUTIONS
0 Problèmes
71 Solutions

SCORE
720

NOMBRE DE BADGES
2

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

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

Afficher les badges

Feeds

Afficher par

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

plus de 13 ans il y a | 0

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

plus de 13 ans il y a | 0

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

plus de 13 ans il y a | 0

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

plus de 13 ans il y a | 2

| A accepté

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

plus de 13 ans il y a | 1

| A accepté

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

plus de 13 ans il y a | 0

Réponse apportée
set default properties ERROR
It looks as though you may have a variable named 'set' in your workspace. Is that the case?

plus de 13 ans il y a | 1

| A accepté

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

plus de 13 ans il y a | 0

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

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 0

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

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 0

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

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Passing base workspace variables to callback functions
Have you tried using the evalin function, maybe something like: x = evalin('base','var');

plus de 13 ans il y a | 1

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

plus de 13 ans il y a | 0

Réponse apportée
Rows
column1 = min(mat,[],2);

plus de 13 ans il y a | 1

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

plus de 13 ans il y a | 2

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

presque 14 ans il y a | 0

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

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Problem with displaying output of executable
If you're compiling it as a 'Windows Standalone Application' switch that to a 'Console Standalone Application'.

presque 14 ans il y a | 0

| A accepté

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

presque 14 ans il y a | 0

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

presque 14 ans il y a | 0

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

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Call variables in for loop
To do this like you're attempting requires the use of the eval function, but be very careful in its use. Google 'eval matlab' fo...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Measuring and Changing
if p1 and p2 are 2 element vectors: 1: d1 = sqrt(sum((p1-p2).^2)); 2: No explanation should be required. 3: d...

presque 14 ans il y a | 0

Réponse apportée
Projectile connected by springs model
This is probably the 3rd or 4th submission of this same exact problem. Please review the question guide: <http://www.mathwork...

presque 14 ans il y a | 0

Réponse apportée
To solve double integral
try using quad2d: <http://www.mathworks.com/help/techdoc/ref/quad2d.html>

presque 14 ans il y a | 0

Question


plot data in from structure of data points with limits
I have a structure of datapoints, each of which is a structure of variables. I have created a simple function that will do a sca...

presque 14 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
Numerical Inputs to Solve and Using the Output value
The problem may be that you're expecting a single value, but solve will return 2 values because it's actually quadratic. What...

presque 14 ans il y a | 0

Charger plus