photo

Fifteen12


Last seen: 10 mesi fa Attivo dal 2022

Followers: 0   Following: 0

Just another grad student trying to figure out just about everything

Programming Languages:
Python, C++, C, Java, MATLAB, Arduino
Spoken Languages:
English

Statistica

MATLAB Answers

1 Domanda
28 Risposte

RANK
1.453
of 300.744

REPUTAZIONE
48

CONTRIBUTI
1 Domanda
28 Risposte

ACCETTAZIONE DELLE RISPOSTE
100.0%

VOTI RICEVUTI
7

RANK
 of 21.054

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK

of 170.597

CONTRIBUTI
0 Problemi
0 Soluzioni

PUNTEGGIO
0

NUMERO DI BADGE
0

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

  • 3 Month Streak
  • Knowledgeable Level 2
  • Thankful Level 1
  • First Answer

Visualizza badge

Feeds

Visto da

Risposto
the global stiffness of two 4x4 matrices of truss
To add the matrices together, just arrange them by indices. % Dummy values for k1 and k2 k1 = ones(4,4); k2 = ones(4,4) * 2;...

circa 2 anni fa | 1

| accettato

Risposto
Identifying regions in matrix rows
I've also put some work into this, but I'm unclear with what you want as your output, so I've got it to a good stopping place an...

circa 2 anni fa | 0

Risposto
How to use isoutlier based in a part of the data?
Your question is a little complex, as the definition of an outlier is not very well defined. For instance, in your vector, the s...

quasi 3 anni fa | 1

Risposto
How to set a loop for calculate the distance between a certain location and a lot of data in csv.file using latitude and longtitude?
You'll need to import the CSV file. You can see this answer for more information: https://www.mathworks.com/matlabcentral/answer...

quasi 3 anni fa | 0

Risposto
How can I create for loop on contourf and save plots somewhere?
for i = 1:width(data) I = scatteredInterpolant(data(:,[1 2]),data(:,i)); [lat,lon] = meshgrid(unique(data(:,1)),unique...

quasi 3 anni fa | 0

Risposto
how to place two images on canvas by a reference vector to relate their relative distance, one image is fixed
This code does a sloppy job of showing relative placement using the coordinate placement methods discussed in the comments. It d...

quasi 3 anni fa | 1

Risposto
How can I increase the size of matrices in cell arrays with each iteration of a loop?
This code gives two solutions, one that can be implemented after your original iteration (it just harvests the values and puts t...

quasi 3 anni fa | 0

Risposto
How to shift experimental data (not a function) in a loglog plot?
I believe you have to do it point by point. Since a 1 unit increase is equivalen to 10x the value, if you wanted to shift upward...

quasi 3 anni fa | 1

Risposto
Applying ode45 by giving input by different formula(collocation points)?
You can read more about specifying specific solution points for ode45 at this link (highlighted). In this case, you want to solv...

quasi 3 anni fa | 0

| accettato

Risposto
Invalid use of operator
As Rik mentioned, this is not the correct language. MATLAB (like other programming environments/languages) has a strict syntax t...

quasi 3 anni fa | 1

| accettato

Risposto
How do I cut the columns in a cell of a cell array according to values in a numerical array?
I've made this a little long in order to improve legibility. Hope this works! % Make sample data foo = zeros(100, 2); bar = z...

circa 3 anni fa | 0

Risposto
2D Surface Random Number Plot
The best way to do this is to use sequential indices, rather than row, column. Then you're just keeping track of a single number...

circa 3 anni fa | 1

Risposto
Need help with regexpi expression for multiple variants of the same phrase
I think you want to look at making regular expressions. Try this: A=isempty(regexpi(data,'(slow cadence|slow stepping)')); You...

circa 3 anni fa | 0

Risposto
I'm writing a code to find the intersection points of two circles.
You can find the documentation for assert here: https://www.mathworks.com/help/sltest/ref/assert.html Assert stops your simulat...

circa 3 anni fa | 0

Risposto
map of outline robot
For animation techniques to make the robot move, you might want to check this out: https://www.mathworks.com/help/matlab/creatin...

circa 3 anni fa | 0

| accettato

Risposto
why do I receive error (Index in position 2 exceeds array bounds. Index must not exceed 1.) when I put different sizes like (2x2)
The error your getting is raised when you try to access part of an array that isn't declared. For example: C = ['a', 'b', 'c'];...

circa 3 anni fa | 0

Risposto
Find random values that match a specific criteria
Broken down: speed = randi(80, 10, 1); m = median(speed); pool = speed(speed > median(speed)); len = length(pool); final_sp...

circa 3 anni fa | 0

| accettato

Risposto
Write a Matlab script that accepts the file “FilteredEvidence.wav” and performs the signal processing operations
You use a variable l in your code, but I don't see it defined (line 6). Make sure you set l equal to some value earlier in your ...

circa 3 anni fa | 0

| accettato

Risposto
How to write code for battle ship
I'm guessing you want a list of indices where your ships are located. This list would have as many entries as the total sum of a...

circa 3 anni fa | 0

Risposto
using less than operator and combination of if and for statement
Your for loop is using a conditional as its input. In MATLAB you need to specify a list. Try: for DiameterOfDisc = 1:102

circa 3 anni fa | 0

Risposto
What do the codes in line 9 and 10 do in the program?
This is using logical indexing to filter out specific numbers. This code is selecting all the indices in y1 that correspond to t...

circa 3 anni fa | 0

Risposto
Finite Element: Filling nxm matrix by extracting values from another nx1 matrix
From your question, V is mxm and W is nx1. Assuming that's true going forward: n = 16; m = 4; offset = 1; W = randi(10, [n, ...

circa 3 anni fa | 0

Risposto
Plot binary sequence of type char (MATLAB)
seq = randi(2, [1, 20]) - 1; y = seq(1); x = 0; for i = 1:length(seq)-1 y(end+1) = seq(i); x(end+1) = i; if se...

circa 3 anni fa | 0

Risposto
Why do I get "Array indices must be positive integers or logical values" error when using "angle" function?
Without seeing your code it's impossible to answer your question, but try outputing all your variables to the terminal, it's eas...

circa 3 anni fa | 1

Risposto
I need to reproduce the paper result
I'm not sure what the difference between x_a and x_a,m is, but maybe this would work: x = [1, 1, 1, 1, 1, 0]; m = 4; t = 6;...

circa 3 anni fa | 0

Risposto
How do I combine two cell arrays to form pairs that I can later calculate the distances between; one array contains my X Coordinates and the other contains my Y Coordinates.
Your question doesn't use cell arrays (those are for holding objects with arbitrary type), but if in your actual code you are us...

circa 3 anni fa | 0

Risposto
Subtract two values of an array and multiply them by a constant
If you put everything into an array (rather than a cell array) you can do logial indexing: rng(1); constant = 2; minpk = [ran...

circa 3 anni fa | 0

| accettato

Domanda


Genetic Algorithm not returning best found solution
TL;DR: ga is returning a random solution and cost (Fval) for my given problem, even when there are better feasible solutions in ...

circa 3 anni fa | 2 risposte | 0

2

risposte

Risposto
How do I delete a group of rows when a condition is met in one?
Simple but long answer using an iterator: Edits: Changed code to catch moving indices as data is resized and expand removal r...

oltre 3 anni fa | 0