Emanuele Joy
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
Summing the diagonal of a matrix "the other way"?
I don't know if I'm wording it correctly, but I'm trying to sum the diagonal of a matrix the other "direction" than the diag(A) ...
6 years 前 | 1 个回答 | 0
1
个回答提问
Filling results from for loop into an array/matrix?
I have this function that computes the coefficients of a polynomial of a certain degree: n = input('Degree of polynomial: '...
6 years 前 | 1 个回答 | 0
1
个回答提问
Finding coefficients from factorized polynomial?
I have a simple factorized polynomial z = (x+y)^n and I'm trying to find the coefficients for any "n", so I wrote the following ...
6 years 前 | 1 个回答 | 0
1
个回答提问
How to assign values in an identity matrix?
Simple question, but say I have a 3x3 identity matrix: I = eye(3) I = 1 0 0 0 1 0 0 ...
6 years 前 | 1 个回答 | 0
1
个回答提问
Finding equation parameters from data set?
I have a data set of x and y: x = [2.0, 2.5, 3.0, 3.5, 6.0, 6.1, 8.5, 8.6, 9.9, 10.0]; y = [0.001, 0.006, 0.032, 0.180, 1E...
6 years 前 | 1 个回答 | 0
1
个回答提问
Changing function file to get the k-th element of 1st row of a .txt file and adding another parameter?
I have a function that reads in a .txt file of candy names, cost, amount, and the total number of candy types. What I want to do...
6 years 前 | 0 个回答 | 0
0
个回答提问
Quick Question: Writing equation with mod function
I'm trying to interpret this equation: z = (x + y) % 26 to MATLAB formatting. The % is modulus division, so I know I'm suppos...
6 years 前 | 1 个回答 | 0
1
个回答提问
Reading .csv with dlmread? (I'm doing something wrong)
I'm trying to read this CSV file, attached below. I tried: x = dlmread('tse2001to2020.csv',',',2,1) Because I'm trying to...
6 years 前 | 1 个回答 | 0
1
个回答提问
Opening different files in for loop with dlmread?
I'm trying to open .txt files caesar1, caesar2, and caesar3 in a for loop. for k = 1:3 N = string([1,2,3]); caesa...
6 years 前 | 1 个回答 | 0
1
个回答提问
Function file that removes a character in a string?
So I'm tasked to make a function file that removes a dash (-) from a string, and I'm not allowed to use strrep for some reason (...
6 years 前 | 2 个回答 | 0
2
个回答提问
How to create function file that makes replacements to a string?
Like, if I have a string = 'Bobs-Burgers', and I want to make a function file to remove the dash to yield 'BobsBurgers', how do ...
6 years 前 | 2 个回答 | 0
2
个回答提问
Using dlmwrite to save data?
My dlmwrite function seems to not be able to run. To my understanding, dlmwrite is used to write a new .txt file containing the ...
6 years 前 | 1 个回答 | 0
1
个回答提问
How to split a matrix in two halves?
For example, if I have matrix: A = [5, 9, 25, 2, 21, 36]; and I want matrices: B = [5, 9, 25]; C = [2, 21, 36]; What ...
6 years 前 | 1 个回答 | 0
1
个回答已回答
Evaluating polynomial at a certain x point to find y?
You're golden. I keep forgetting when to use the interp1 function. Thank you so much!
Evaluating polynomial at a certain x point to find y?
You're golden. I keep forgetting when to use the interp1 function. Thank you so much!
6 years 前 | 0
提问
Evaluating polynomial at a certain x point to find y?
Hi all, so I have a script that evaluates the 1st through 4th degree polynomials of a given dataset of volume of liquid vs vol. ...
6 years 前 | 3 个回答 | 0
3
个回答提问
How to wrap for loop around function commands and fplot?
So I'm writing a script that fits a polynomial and plots a given a set of data and I figured out how to do it for a chosen degre...
6 years 前 | 1 个回答 | 0