Statistik
RANG
255
of 297.016
REPUTATION
355
BEITRÄGE
3 Fragen
71 Antworten
ANTWORTZUSTIMMUNG
33.33%
ERHALTENE STIMMEN
111
RANG
of 20.419
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
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 ...
mehr als 12 Jahre vor | 0
Gelöst
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
mehr als 12 Jahre vor
Gelöst
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 ...
mehr als 12 Jahre vor
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...
mehr als 12 Jahre vor | 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...
mehr als 12 Jahre vor | 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...
mehr als 12 Jahre vor | 2
| akzeptiert
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...
mehr als 12 Jahre vor | 1
| akzeptiert
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...
mehr als 12 Jahre vor | 0
set default properties ERROR
It looks as though you may have a variable named 'set' in your workspace. Is that the case?
mehr als 12 Jahre vor | 1
| akzeptiert
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...
mehr als 12 Jahre vor | 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...
mehr als 12 Jahre vor | 0
| akzeptiert
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...
mehr als 12 Jahre vor | 0
| akzeptiert
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...
mehr als 12 Jahre vor | 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; ...
mehr als 12 Jahre vor | 0
| akzeptiert
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') ...
mehr als 12 Jahre vor | 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...
fast 13 Jahre vor | 0
| akzeptiert
Passing base workspace variables to callback functions
Have you tried using the evalin function, maybe something like: x = evalin('base','var');
fast 13 Jahre vor | 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...
fast 13 Jahre vor | 0
Gelöst
Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...
fast 13 Jahre vor
Gelöst
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 ...
fast 13 Jahre vor
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 ...
fast 13 Jahre vor | 2
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...
fast 13 Jahre vor | 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...
fast 13 Jahre vor | 1
| akzeptiert
Problem with displaying output of executable
If you're compiling it as a 'Windows Standalone Application' switch that to a 'Console Standalone Application'.
fast 13 Jahre vor | 0
| akzeptiert
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...
fast 13 Jahre vor | 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...
fast 13 Jahre vor | 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 =...
fast 13 Jahre vor | 0
| akzeptiert