photo

Joel Lynch


Last seen: 24 jours il y a Actif depuis 2021

Followers: 0   Following: 0

Message

Programming Languages:
MATLAB
Spoken Languages:
English
Pronouns:
He/him

Statistiques

All
  • Thankful Level 2
  • Knowledgeable Level 3
  • MATLAB Mini Hack Participant
  • Personal Best Downloads Level 2
  • Thankful Level 1
  • Knowledgeable Level 2
  • First Answer
  • First Review
  • GitHub Submissions Level 2
  • Explorer
  • First Submission

Afficher les badges

Feeds

Afficher par

Question


Inconsistent results for symbolic integration of >2 cosine factors
When I integrate the product of two cosine functions with integer arguments, I get an answer that appears correct. When I add a ...

9 mois il y a | 1 réponse | 0

0

réponse

Question


Can the default behavior of selected annotations be changed to avoid unwanted movement?
A common occurence in Figure manipulation is selecting an object (e.g. arrow, textbox, etc) for editting in the property inspect...

plus d'un an il y a | 1 réponse | 0

0

réponse

Question


Without resorting to FEX/MEX, can the overhead of repeated calls to sparse() be avoided with operations on I, J, V directly?
I have a time-marching problem bottlenecked by matrix multiplication , where the sparse matrix is the sum of many time-independ...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
fmincon/multistart won't debug/display errors in OutputFcn
I figured out the issue, 'OutputFcn' must be added in Multistart, not fmincon. This also means using different syntax for the ca...

plus de 2 ans il y a | 0

| A accepté

Question


fmincon/multistart won't debug/display errors in OutputFcn
If "x=b" is uncommented, the code still runs and does not break on error or display the line number. This means debugging a mor...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Question


Is there a better way to initialize the DataTipTemplate field in primitive objects?
Problem: Creating a Chart Object as in Plot() initializes a DataTipTemplate field in the resulting handle. p = plot(0,0); p...

environ 3 ans il y a | 1 réponse | 1

1

réponse

Chaîne


mychannel
test

environ 3 ans il y a

Question


Why do logical indices implicitly reshape? Is there a workaround?
I've encountered this several times, and it always bothers me. Say for example I want to sum each row of matrix A, for values le...

plus de 3 ans il y a | 1 réponse | 0

1

réponse

Question


When using "Pause on Warning/Error," is there a way to avoid breaking into built-in functions?
For example, a bad set of data when calling "fit" breaks into a function called "curvefit.attention/Warning/throw": Warning: Eq...

plus de 3 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
Box Plots for Vectors of Varying Length
The proximate error is that the symbols around the year-range string ‘1931-1960’ are not apostrophes, so MATLAB doesn't know w...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Mesh Grid of a 3d array
So this may be due to confusion about how mesh() works. Mesh produces a 2D surface in a 3D volume, with the Z-axis being the val...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Run "if" logic on a row
The trick is to recognize that you can use & / | (and/or) to chain multiple logical operations together. In this case, you can g...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Solve the generalized form of the Poisson equation
I don't get an error when running your code with MATLAB version 2019b, but the bigger problem you have is that your method will ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to plot a matrix within a matrix?
In terms of organizing the data, the simplest approach is to create two matricies for stiffness and deflection that have two dim...

plus de 3 ans il y a | 1

| A accepté

A soumis


ternary_plots
MATLAB package for creating ternary plots. Based loosely on 7210-ternary-plots by Ulrich Theune.

plus de 3 ans il y a | 38 téléchargements |

Thumbnail

Réponse apportée
set xticks by calculation but also force 0 to be displayed
set(gca,’XTick’,array_of_values)

plus de 3 ans il y a | 0

Réponse apportée
Function for telling if a function is unique and how many solutions it has.
".p" files are purposefully obfuscated, so you cannot copy the code, suggesting your instructor does not want you to use someone...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Why do I get 'Out of Memory' error?
Out of memory is exactly what it sounds like: your program is trying to hold more data on system memory than is available. The c...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
I need help with creating bounded logarithmic plot
Assuming you meant to have , then t = linspace(0,2*pi); x = exp(-t); % if constant, then x(1:numel(t))=exp(-1); y = t; plo...

plus de 3 ans il y a | 0

Réponse apportée
How to find the zero crossing in x and time data sets?
idx = find( f(2:end).*f(1:end-1)<0 ) Will return the left-hand indicies of cross-over points. To get the exact X-values where ...

plus de 3 ans il y a | 0

Réponse apportée
how to form a two-column array for a given but dimmension-unknown array?
You can make a row vector of any N dimensional matrix by linearizing, for example A( 1:numel(A), 1 ) = A(:); .Thus, you can a...

plus de 3 ans il y a | 0

Réponse apportée
Conditional Scatter plotting based on third data set
Assuming columns with 1's will only have 1's, and columns with 2's and 3's will never have 1's, then it is as simple as taking t...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to take 1 row on table 1 and compute it against every row of table 2 and do this for each row in table 1
Assuming the data is read into two variables, d1(1:N1,1:3) and d2(1:N2,1:3) by d1 = xlsread('Matlab Help.xlsx','Random','B2:D31...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Using trapz just for positive areas
You need to use more fine-grid X data in polyval to get test points at y=0. xA_fine = linspace(xA(1),xA(end),100); fA_fine = ...

plus de 3 ans il y a | 1

Réponse apportée
Continue after .exe finishes
You can use system() function to pass the command (as a string) without the "!" symbol. If using unix OS, you can pipe (with the...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
stacked plot x axis change in 2015 matlab version
bar(Y(:,1),Y(:,2:end))

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Find the input values of a function within an output range.
If you cannot solve algebraically (no closed form solution), then fzero is the best bet. Something like this: % example y range...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
how to fix this error 'Index in position 2 exceeds array bounds.'?
The proximate reason for the error is that "Popbest" is empty, and so acessing the first column by Popbest(:,1) throws an error....

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to show two axis on a plot only where i want them
You can get the handles for the left and right axes with yyaxis. yyaxis left; % Sets the current y-axis left left_ax = gca; ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I plot the maximum values of the double matrix ?
Max() has an optional third argument that determines the index along which to take the maximum. So for a 10x20 matrix A, A_max...

plus de 3 ans il y a | 1

| A accepté

Charger plus