提问


maximizing a function of 2 variables where coefficients are given by parameters
I have a function of two variables x and y where coefficients are given by paramter a and b. I want to take FOC of this function...

5 years 前 | 2 个回答 | 0

2

个回答

提问


Discretizing the probability distribution
I have a probability distribution f on [0,1]. I want to discretize f on (0,0.1,0.2,...1). I see "What you could do instead, in ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


How can one create this matrix, part 3
In the previous post, I have learned how to create a matrix of the form 0 0 0 0 0 0.1 0 0 0.2 0 0 0.3 0 0 0.4 0 0 0.5 0 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


"Function MEMORY is not available on this platform."
I followed https://stackoverflow.com/questions/7328044/matrix-size-limitation-in-matlab#:~:text=%3E%20memory%20Maximum%20possi...

5 years 前 | 1 个回答 | 0

1

个回答

提问


is it possible to recover Livescript after the crash?
I was working on a calculation on Livescript. Livescript crashed and matlab closed I re-opened Matlab but Livescript is gone. ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


How can one do this calculation? Part 2
I want to extend Part 1 calculation: Now consider grid=1:1:5 for the first column and consider a matrix A 1 1 10 3 1 1 10 8 ...

5 years 前 | 0 个回答 | 0

0

个回答

提问


Finding the max of column 2 and column 3
I have a matrix like 1 3 4 1 2 6 1 1 5 1 4 3 What I would like to do is to, for each row, take a max of column 2 and ...

5 years 前 | 2 个回答 | 0

2

个回答

提问


How can one create this matrix, part 2
In the previous post, I have learned that [X, Y] = meshgrid(0:.1:0.5); [X(:), Y(:)] will create a matrix 0 0 0 0.1 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


How can one do this calculation?
In a previous post, I have created a matrix 1 1 1 2 1 3 1 4 1 5 2 1 2 2 2 3 2 4 2 5 For each 2D grid point I calculat...

5 years 前 | 4 个回答 | 0

4

个回答

提问


How can one create this matrix?
I want to create a matrix like 1 1 1 2 1 3 1 4 1 5 2 1 2 2 2 3 .. That is, I start from grids=1:1:5 and I want to ...

5 years 前 | 2 个回答 | 0

2

个回答

提问


ImportError: Matlab Engine Not Installed
First, I have tried to use Livescript on good intentions. Second, but Livescript does not have code folding capability. Thir...

5 years 前 | 1 个回答 | 0

1

个回答

提问


"Warning: Name is nonexistent or not a directory"
First, I got a message in matlab command line that says "your license will expire in .. days" Second, I followed the steps at ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


code folding in Livescript
I would like to know whether there is any progress on code folding in Livescript https://www.mathworks.com/matlabcentral/answ...

5 years 前 | 0 个回答 | 3

0

个回答

提问


install the Python engine error message
I go the following error message. What to do? >> cd (fullfile(matlabroot,'extern','engines','python')) >> system('python setu...

5 years 前 | 1 个回答 | 0

1

个回答

提问


plot for a part of x
I have a plot for the date from 2001 to 2020. I now just want to plot for the data between 2019 and 2020. What will be a simpler...

5 years 前 | 1 个回答 | 0

1

个回答

提问


how can one set the default size of font for plot?
I understand that set(gca, 'FontSize', 6.0); will set the default size of a plot. But I have let me say 10 plots in this Lives...

5 years 前 | 1 个回答 | 0

1

个回答

提问


how to save file with the given size
I want to save a plot using exportgraphics (or others) with the given size of let me say 4*2.25 inch. https://www.mathworks.co...

5 years 前 | 1 个回答 | 0

1

个回答

提问


How can one display fitting equations (with t stat and R^2) on a scatter plot
I use scatter(x,y) for a scatter plot. Then I run fitlm(x,y) Then I want to display the result of regression equations, t-s...

5 years 前 | 1 个回答 | 0

1

个回答

提问


How to program plots with models starting with table
https://www.mathworks.com/help/stats/linearmodel.plot.html provides a code example with loading dataset load carsmall Year =...

5 years 前 | 0 个回答 | 0

0

个回答

提问


how to remove a row that contains inf from a table
https://www.mathworks.com/help/matlab/ref/rmmissing.html does not remove inf (I think they should put options to include inf). ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


lsline error message and how to deal with it
I try to use lsline in scatter plot. The scattor plot works fine. But for lsline I got an error message "Warning: No allowed li...

5 years 前 | 1 个回答 | 0

1

个回答

提问


retime: apply different method for different columns
I have a timetable with column 2 temperature and column 3 rainfall. I want to apply mean for column 2 and variance for column 3....

5 years 前 | 1 个回答 | 1

1

个回答

提问


replace [ ] in an array with 0's
https://www.mathworks.com/matlabcentral/answers/112403-how-do-i-replace-in-an-array-with-0-s talks about replace [] with 0's fo...

5 years 前 | 3 个回答 | 0

3

个回答

提问


can one define a function handle in Livescript?
Can one define a function handle in Livescript? How will it work? cf.. https://www.mathworks.com/matlabcentral/answers/501199-...

5 years 前 | 1 个回答 | 0

1

个回答

提问


'retime' with multiple methods?
'retime' uses a method to aggregate data TT3 = retime(TT,'hourly','mean') Is it possible to use two methods to calculate mea...

5 years 前 | 1 个回答 | 1

1

个回答

提问


what are the differences between regress and fitlm?
What are the differences between regress and fitlm?

5 years 前 | 0 个回答 | 0

0

个回答

提问


how can one set default fonts for plots?
I tried set(groot,'defaultFontName','Times New Roman') but got Error using matlab.ui.Root/set fontname is an invalid class n...

5 years 前 | 1 个回答 | 0

1

个回答

已回答
calculate average only for one group
https://www.mathworks.com/matlabcentral/answers/366254-how-do-i-extract-certain-data-from-a-table

5 years 前 | 0

提问


calculate average only for one group
I have a table T YYYY Name Location Income ----------------- 2020 A E 300K 2020 B W 250K 2020 C E 400K 2020 D W 300K Then...

5 years 前 | 2 个回答 | 0

2

个回答

提问


take averages of obvervations for each month
suppose I have a table S date income ---------------------------- 1/1/2020 100 1/2/2020 20 I want to cr...

5 years 前 | 1 个回答 | 0

1

个回答

加载更多