photo

Giorgos Papakonstantinou


NTUA

Last seen: mehr als 3 Jahre vor |  Aktiv seit 2012

Followers: 0   Following: 0

Nachricht

I have only made this code longer because I have not had the time to make it shorter

Statistik

All
MATLAB Answers

79 Fragen
105 Antworten

Cody

0 Probleme
31 Lösungen

RANG
494
of 302.394

REPUTATION
162

BEITRÄGE
79 Fragen
105 Antworten

ANTWORTZUSTIMMUNG
59.49%

ERHALTENE STIMMEN
38

RANG
 of 21.781

REPUTATION
N/A

DURCHSCHNITTLICHE BEWERTUNG
0.00

BEITRÄGE
0 Dateien

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANG
16.747
of 182.163

BEITRÄGE
0 Probleme
31 Lösungen

PUNKTESTAND
360

ANZAHL DER ABZEICHEN
4

BEITRÄGE
0 Beiträge

BEITRÄGE
0 Öffentlich Kanäle

DURCHSCHNITTLICHE BEWERTUNG

BEITRÄGE
0 Discussions

DURCHSCHNITTLICHE ANZAHL DER LIKES

  • First Review
  • 3 Month Streak
  • Thankful Level 4
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer
  • Promoter
  • Leader
  • Commenter
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Gelöst


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

fast 10 Jahre vor

Gelöst


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

fast 10 Jahre vor

Gelöst


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

fast 10 Jahre vor

Gelöst


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

fast 10 Jahre vor

Gelöst


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

fast 10 Jahre vor

Gelöst


Use R2016b Text Manipulations to Fix These Addresses (Part 1)
We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

fast 10 Jahre vor

Frage


Determine transfer function from block diagram
I am having trouble to define in matlab the transfer function of the following block diagram. <</matlabcentral/answers/upload...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to select a cell from an array when this array is made of functions of a parameter?
You can do A{2} or A{1,2}

mehr als 11 Jahre vor | 0

Beantwortet
I don't get it... Help plotting this on MATLAB?
Annalise I will try to demonstrate how you may plot a piecewise function. In a similar manner you may plot yours. Lets assume...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Character input error message !!
If the |string| you get |from handles.m| is a _char_ class then |str2num| will produce an empty matrix. >> str2num('hello...

mehr als 11 Jahre vor | 0

Beantwortet
how can i change cell array to matrix
You can do the following to find which values are >=-15 : dat= {'A' [12] [-20] [-75] [66] 'B' [9] [-10] [-50] [55] 'C' [15]...

mehr als 11 Jahre vor | 0

Beantwortet
Ceate a vector of state space variable like A=[x(1), x(2), x(3),.....x(21)]
Hallo Ismaeel. There is no need to use loop to do that. Check the |<http://nl.mathworks.com/help/matlab/ref/colon.html colon>| u...

mehr als 11 Jahre vor | 0

Beantwortet
Reverse order in column;flipud ain't giving me that.
Try to put outside the first loop: K = fliplr(I);

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
create a function that is the derivate of a f=@(t) function
Maybe this: fa = @(x)x^5-0.4475*x.^4-3.1*x.^3+3.085*x.^2-0.962*x+0.0943 g = sym(fa); dg = diff(g); df = matlabFu...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Conversion of a matrix into multiple column vectors
x1 = A(:,1).'; x2 = A(:,2).';

mehr als 11 Jahre vor | 2

Beantwortet
Estimate length with out NaN's
If |x| is your vector. YourLength = length(x) - sum(isnan(x))

mehr als 11 Jahre vor | 1

Beantwortet
Choosing specific area of points from xscale in plot
Hallo Tom. One way is to use brush/Select Data tool: <</matlabcentral/answers/uploaded_files/26924/Capture.png>> (ap...

mehr als 11 Jahre vor | 0

Beantwortet
I would like to define a function that allows me to enter a symbolic expression in terms of x, raise that expression to the "n"th degree, then plot that expression from x=[-5,5]
Justin you have to define outside your function what is |x|. This is the reason why Matlab complains about |x|. It does not know...

mehr als 11 Jahre vor | 0

Beantwortet
How to rotate xaxis labels (bar graph)
Read: <http://nl.mathworks.com/matlabcentral/answers/103026-how-can-i-rotate-my-x-axis-tick-labels-and-place-an-x-label-on-my-pl...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
How can i read multiples files from a directory?
Assuming you want to open a few files. Create a cell|filenames|. Then the loop would be like this> filenames = {'file1....

mehr als 11 Jahre vor | 0

Beantwortet
How to put script on pause instead of quitting when encountering error
Ekaterina, as far as I know you, could enclose the part of the code, which tries to establish a connection within a <http://nl.m...

mehr als 11 Jahre vor | 1

Beantwortet
How to put radiobutton in GUI to cycle if?
If we assume the radiobutton handle variable name is |radio| then your |if| statement inside the |pushbutton1_Callback| should b...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Importing Data outputted by FreeFem++
u = [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15]; reshape(permute(u,[2 1]), [], 1) or more compact: u ...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Does changing the axes turn tick marks off?
If you want to remove the ticks from both *x axis* and *y axis* , do this: set(gca,'Xtick',[], 'Ytick', [])

mehr als 11 Jahre vor | 0

Beantwortet
Plotting (1-2*x)*log((1-x)/x)
The problem occurs inside the *log* parenthesis. The syntax that you have used tells Matlab to solve the equation: x = B/A ...

mehr als 11 Jahre vor | 1

Beantwortet
Multiplying even and odd columns separately?
Here is one way: A =rand(100, 50); idx = mod(1:size(A,2), 2) ==1; % logical indexing of the odd numbers the...

mehr als 11 Jahre vor | 1

Beantwortet
Creating a shape with varying arcs?
If I understood correctly you mean a spiral. Here's one way then: turns=5; theta = 0:pi/180:2*pi*turns; r = 2*o...

mehr als 11 Jahre vor | 0

Beantwortet
Solving a formula in Matlab
x = input('Enter the value of x: '); % request user input y = input('Enter the value of y: '); S = input('Enter the ...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
uiparent in Matlab 2013b
These are value/pair arguments. That means you have to write explicitly: hsp = uipanel('Parent', hp)

mehr als 11 Jahre vor | 0

Beantwortet
How do I use the function "uicontrol" ?
The minimum example I can give you is: sld = uicontrol('Style', 'slider',... 'Min',1,'Max',50,'Value',41,... ...

mehr als 11 Jahre vor | 0

| akzeptiert

Mehr laden