Beantwortet
how to use a parameter name list as input for a function?
Skirt, you were very close. You just need to use a cell array: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function out=try...

mehr als 11 Jahre vor | 0

Beantwortet
Sort Group Data Trends
Anthony, here's a solution relevant to my comment above. Note that there are in fact *4* groups: 7k, *8k*, 11k, and 15k. nu...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
square root of sum of squares on portions of cell arrays - Matlab Noob
out5 = {[0;0],[0;-162],[-54;72]} cellfun(@(vec)hypot(vec)*((-2*double(vec(1)<0))+1),out5) or cellfun(@(vec)sqrt(su...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Comparing strings with and without ' '
Hi Mini, first I'll make some strings myStrings = {'''Word''', 'Word'}; >> myStrings{1} ans = 'Word' >> myStrin...

mehr als 11 Jahre vor | 0

Beantwortet
Pixel position of circle on image
Sangeeta, does this answer your question: center = [25 30]; %XY location of circle center radius = 15; matSize = 50; ...

mehr als 11 Jahre vor | 0

Beantwortet
How to move an object from one plot to another inside a GUI using GUIDE
Vivekram, you can change any handle graphics "Parent" property. Here's a fully working example: function F = tmpfunc() ...

mehr als 11 Jahre vor | 0

| akzeptiert

Frage


Silhouette outline of polygon surface
I'm trying to get the outline of a triangulated 3D surface projected onto the XY plane. Here's an example. First, let's get a ...

mehr als 11 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
writing large 3D .mat file into a .xls file
Salam, Here's some code that will at least get your data into excel in some form. You're right that excel has the <http://off...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Solving a system of equations in matlab
Hi E, There's a main issue that causes your problem here. Firstly, imagine that you had got inside your function _functionfil...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
delete certain elements in a matrix
In a loop? Not really. All at once? Absolutely. DATA = rand(50,5); rowsToDelete = [1,6,11,21,26]; DATA(rowsToDelet...

mehr als 11 Jahre vor | 3

Beantwortet
Experiences with release 2013a
As far as the help docs go, one issue that I had with the 2012b changes was the loss of context once you were reading a page (or...

mehr als 11 Jahre vor | 1

Frage


Experiences with release 2013a
In the spirit of <http://www.mathworks.com/matlabcentral/answers/48070-experiences-with-release-2012b 2012b>: Did you try 201...

mehr als 11 Jahre vor | 5 Antworten | 0

5

Antworten

Beantwortet
Adding a line to a plot without normalized coordinates
You were so close: figure scatter([0 10 20 30 40],[3 5 3 2 9]); hold on plot([0 40],[15 15],'-', 'Color','r') I...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
How can I automatically save and index data from an internet database at a specified interval
MATLAB is reasonably well suited to do all the things you're looking for. Check out, for example, the <http://www.mathworks....

mehr als 11 Jahre vor | 0

Beantwortet
Find unknown from the equation with given value
Hi Sheryl, If you have the Symbolic Maths toolbox, you can do something like: *Step 1*: Set up your equation. Note that you ...

mehr als 11 Jahre vor | 0

Beantwortet
plotting evenly spaced lines across object
Hi Jakub, I think this does exactly what you're looking for. I've commented the code so it's easy to follow. Note that I've u...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
import date from matlab to ms excel in the form 'HH:MM PM' using xlswrite
Hi Jovanie, The trick is to make sure excel receives a date in a format that it recognises as a date, and then let _excel_ ha...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
how to convert cell datatype into uint8?
Hi Sivakumaran, A *cell* datatype is simply a container for _other_ datas. There is a function called *cell2mat* which will u...

mehr als 11 Jahre vor | 0

Beantwortet
How to search for a specific string and only display the sentences that contains it.
Hi Sam, *regexp* is the most flexible way to go: testStrings = {'some text with hello','more with hello','nothing here',...

mehr als 11 Jahre vor | 0

Beantwortet
Spacing in a heading for a table. (fprintf)
Hi Thomas, try this: fprintf('%11s%12s%12s%12s%12s%12s\n', 'AppNumb', 'gender','gpa','exp','lines','(bonus)'); fprintf('...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
How to get the tag name?
To find the tag of axes1, you can just get it directly: Tag = get(handles.axes1,'Tag') However I would expect that the c...

mehr als 11 Jahre vor | 1

Beantwortet
Matlab question for cantilever beam
Hi Caroline, The problem is here: x= 0:0.1:L; U(x)= F./E.*I.*(x.^3-3.*L.*x.^2); I think you simply mean: x= 0...

mehr als 11 Jahre vor | 0

Beantwortet
How Gradient is calcuted
Hi Tinkul, It is probably clearer if you call your variables *z* and *c* different names such as *dx* and *dy*. This is becau...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Solving constrained non linear system using fmincon doesn't work
Hi Pi Pi, Two things. Firstly, your specific error: User supplied objective function must return a scalar value. com...

mehr als 11 Jahre vor | 1

Beantwortet
Adding values in a for loop
Hi Andy, I'm not entirely clear what you mean by "output", but I'll presume that you mean the value assigned to the *g* varia...

mehr als 11 Jahre vor | 2

Beantwortet
interpolating the 2d line to make the new coordinates equi-distant
Hi Payam, try this: pathXY = [0 0; 1 1; 10 2; 12 3] stepLengths = sqrt(sum(diff(pathXY,[],1).^2,2)) stepLengths = [0;...

mehr als 11 Jahre vor | 2

| akzeptiert

Beantwortet
How can I vectorize/LUT this for loop ?
Hi Louis, This one's got a nice solution using *sub2ind* that lets you do the whole thing at once without a loop: img = ...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
How do I store a series of 5*5 arrays into a multidimensional array?
Bob, here's a fix to your loop: Agray=imread('rice.png'); [ar,ac]=size(Agray); v1=5; v2=5; r=ar-v1+1; c=ac-v...

mehr als 11 Jahre vor | 1

| akzeptiert

Beantwortet
How to determine if two cones with vertices at origin, intersect?
Hi again Doc, First thing you can do is check the dot product between the normal vectors of both cones' planes. If the dot pr...

mehr als 11 Jahre vor | 0

| akzeptiert

Beantwortet
Zero-filling matricies but different dimensions
Hi Bran, I think this is what you're trying to do: A = [1 2 3; 4 5 6; 6 7 8; 11 12 13] B = [1 2 3; 4 5 6; 11 12 13] ...

mehr als 11 Jahre vor | 0

| akzeptiert

Mehr laden