Community Profile

photo

Sindar


Last seen: Today

University of Colorado Boulder

242 total contributions since 2018

Contact

Sindar's Badges

  • 6 Month Streak
  • Revival Level 2
  • Introduction to MATLAB Master
  • Community Group Solver
  • Solver
  • Knowledgeable Level 3
  • First Answer

View details...

Contributions in
View by

Answered
"Plot" image with size, position and rotation
see this question: Plot a figure in which there is an image that moves and rotates

ungefär 3 timmar ago | 0

Answered
Loop to separate rows in one matrix and delete elements in that matrix based on another matrix
% find indices where z_probs<0.5 idx = (z_probs(:,:,1)<0.5); % "remove" those values in b_loc by setting them to NaN b_loc(id...

ungefär 3 timmar ago | 0

Answered
need help for transfer Whlile loop from For loop
First issue: for loop ends when error<tol while loop continues when error<tol

ungefär 3 timmar ago | 0

Answered
Plotting part of an array
simplest: xlim([0 0.2])

en dag ago | 0

Answered
Rotate Spherical Coordinates to find new Vector Magnitude
It sounds like the goal is to find the projection of the vector along the direction defined by theta=100, phi=150. If this is th...

2 dagar ago | 0

| accepted

Answered
Move colorbar location to the east in tiled layout figure
does this work: cb = colorbar; cb.Layout.Tile = 'east'; (from the colorbar documentation)

2 dagar ago | 0

Answered
Find indicies of k smallest matrix elements
[~,idx] = mink(A,2);

2 dagar ago | 0

Answered
Finding 4 closest values to a value in an array
use mink [~,idx] = mink(abs(data-find_point),5); data(idx)

2 dagar ago | 0

| accepted

Answered
How to get Y-values from X-values?
if you just want the Y value for the nearest point: [~,idx] = min(abs(X-certainX)); certainY = Y(idx); I don't see quite th...

2 dagar ago | 0

| accepted

Answered
How to increase fontsize of matlab IDE?
there is a workaround here that probably still works: https://www.mathworks.com/matlabcentral/answers/233543-how-to-change-the-...

2 dagar ago | 0

Answered
Can you plot polarplots so that theta zero location is at any arbitrary angle or are top left bottom right the only options?
something like this: top_angle = 24; % get current labels tt = thetaticks; % rotate angles so top_angle takes place of 90 t...

2 dagar ago | 0

Answered
How to plot many curves on a x-y-x axis system
sounds like plot3 is what you want, though I'll warn you that getting readable figures out is more an art than a science

2 dagar ago | 0

Answered
How do I display the first 20 numbers of the Fibonacci sequence?
you need to define the first two numbers manually, then start on the third f(1) = 0; f(2) = 1; for a=3:20 ... Also, it's un...

3 dagar ago | 0

Answered
Convert a non uniform cell array of cell arrays to matrix
(see comments on question for details not related to the title question) A1 = cell2mat(runData_struc{1}); A2 = cell2mat(runDat...

6 dagar ago | 0

| accepted

Answered
Preallocating a variable that changes size every for loop iterations.
It's just a code suggestion, you can safely ignore it.

6 dagar ago | 0

Answered
Saying Else is invalid syntax
you have two else's for the same if. Select it all and hit CTRL-i to smart indent to see: function [d1,d2,d] = dotangle(u,v) m...

6 dagar ago | 0

Answered
Histogram with many data
Use tall arrays: https://www.mathworks.com/help/matlab/import_export/tall-arrays.html

6 dagar ago | 0

Answered
Data Cleansing in Tables
test_rejoined = outerjoin(test(:,[1 3 4]),test(:,[2 5]),'LeftKeys','id2','RightKeys','id','MergeKeys',true); separate table int...

6 dagar ago | 0

| accepted

Answered
Fitting and smoothing the noisy curve
check out smoothdata and this guide

7 dagar ago | 0

| accepted

Answered
Row unity in matrix
P_norm = P./sum(P,2);

7 dagar ago | 0

| accepted

Answered
Hi, I am asking the user for input and the input should be either "AA" "Aa" or "aa". How can I validate the input using a while loop? I don't think my code works.Thanks!
You're requiring that it be all valid entries simultaneously parentOneA = input("Enter Parent 1's A Trait: ") % Error checking...

7 dagar ago | 0

Answered
Im putting in my equations wrong and i need help
should that be T1? also, replace 25 hardcoding with v0 (and 30 with T1) d1= (v0.*cosd(T2)/g).*((v0.*sind(T2))+sqrt((v0.*sind(T2...

7 dagar ago | 0

Answered
sub2ind gives error: Error using sub2ind (line 73) Out of range subscript.
sim_i_r was valid indices (integers greater than zero), but you changed it to invalid ones (zeros, decimals, negatives). Matlab ...

7 dagar ago | 0

| accepted

Answered
Index daily values in TT over many years to determine mean
This will create a table with the average for each day of the year (1-366). 'dayofmonth' might be preferable for just July data ...

7 dagar ago | 0

| accepted

Answered
While starting Matlab icon on desktop, it is throwing error matlab.exe is moved or deleted.
delete the Matlab icon on your desktop type "Matlab" into your Start Menu search The top result should be the Matlab app/progr...

10 dagar ago | 0

Answered
Plot bar chart with log scale on y axis with different base
% set whatever base you want (incl. decimals) mybase = 2; % get current limits yl = ylim(); % convert to log-mybase scale y...

10 dagar ago | 0

Answered
What frustrates you about MATLAB? #2
Livescript complaints First off, they've come a long way since I tried them on release. But, there are still some issues: Drop...

12 dagar ago | 1

Answered
How to store a matrix, A, in variable X, where X is also carrying a counter "i"
Simple way: add a third dimension, "pages": X(:,:,i) = A; But, if you only need the last iteration, it's better to store jus...

15 dagar ago | 0

Answered
Permutations of array retaining sub-array groups together
I believe the best way to describe your arrays-with-subgroups is using cell arrays: my_array = {1 [2 3] 4} my_array = {...

18 dagar ago | 1

Answered
Does MATLAB have functionality similar to Mathematica's Import function to import html tables?
check out htmlTableToCell on the file exchange, followed by cell2table

18 dagar ago | 0

| accepted

Load more