Feeds
문제를 풀었습니다
Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...
3개월 전
질문
How to count the number of non-nan values for combination of multiple variables
Hello, I would like to count the number of non-nan values in the d column for unique combinations of a, b and c (i.e I want to g...
4개월 전 | 답변 수: 2 | 0
2
답변질문
How to do a cross-multiplication by group in a table
Hi. I am wondering how to do a cross-multiplication (rule of three) by group in a table. More specifically I have an initial tab...
5개월 전 | 답변 수: 1 | 0
1
답변질문
Difficulty using the database function
Hi. I have Matlab 2021b and Matlab 2024a installed and with Matlab 2021b I can easily connect to a database via an ODBC bridge j...
7개월 전 | 답변 수: 1 | 0
1
답변질문
How to remove trailling numbers when using the update function (database toolbox)
Hi, Im using the update function from the database toolboox to update data in an Oracle database conn = database(env, user, pa...
대략 1년 전 | 답변 수: 1 | 0
1
답변질문
Merging cells problem with actxserver
I have an issue with using actxserver to merge cells in Excel. In the script below I expect to merge the cells B1:C1, D1:E1, F1:...
1년 초과 전 | 답변 수: 2 | 0
2
답변질문
In a report, how can you find out the height of table in pixels ?
I am printing multiple tables in a report but I dont know how long each table will be (and some tables are multiple pages long) ...
1년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to save high resolution image of a webmap
I simply want to save a high resolutionof image of the following webmap. I know wmprint exist but it does a terrible job. web...
1년 초과 전 | 답변 수: 0 | 0
0
답변질문
How to find the closest point to a line
Hello, I am having a bit of a hard time finding which point (i.e centroid) is closest to a line formed by the start and end coo...
대략 2년 전 | 답변 수: 2 | 0
2
답변질문
How to count the number of rows per group
Hi, I simply want to count the number of rows per group (for unique combinations of a, b and c). Groups where either a, b, or c ...
대략 2년 전 | 답변 수: 1 | 0
1
답변답변 있음
If-function in tables does not work
If I understand correctly, the cyclist has answered this question: https://www.mathworks.com/matlabcentral/answers/321819-how-to...
If-function in tables does not work
If I understand correctly, the cyclist has answered this question: https://www.mathworks.com/matlabcentral/answers/321819-how-to...
2년 초과 전 | 0
질문
How to assign multiple categories based on the mean of multiple groups
Hi, I want to assign categories based on the mean variable of multiple groups in the table below. For each unique combination ...
2년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to merge two variables together in a table
Hi, I have a quick question : I have an initial table T and I would like to merge the variables deph1 and deph2 into a single ne...
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
How to get rid of an extra space added by getSnapshotImage
Hello, getSnapshotImage seems to be adding an extra space in the annotation of my figures. In the dummy plot below there is no ...
거의 3년 전 | 답변 수: 1 | 0
1
답변답변 있음
How do I get time in input?????
You mean like this ? You can enter time as '23:45' for example prompt = 'What time is it ? '; t = datetime(input(prompt), 'For...
How do I get time in input?????
You mean like this ? You can enter time as '23:45' for example prompt = 'What time is it ? '; t = datetime(input(prompt), 'For...
대략 3년 전 | 0
질문
How to modify the size of images in a report
Hello, I am struggling to add images of the correct size in a report (https://www.mathworks.com/matlabcentral/answers/1563981-h...
대략 3년 전 | 답변 수: 1 | 0
1
답변질문
How to increase the size of figures in Report Generator
Hello, I want to have 2 figures per page in my report but I cant figure out how to maximize the size of my figures so that I am...
대략 3년 전 | 답변 수: 0 | 0
0
답변질문
How to save a figure of a specific size with exportgraphics
Hello, I simply want to export a figure of a specific size (6 x 9 inches) with the function exportgraphics as described here (h...
대략 3년 전 | 답변 수: 1 | 0
1
답변질문
How to conditionally merge multiple variables in a table
Hi, In the table t below I would like to merge the variables var_c, var_d and var_e into a single new variable called new_var. ...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to use sqlwrite
Hi, I am running into some problems with sqlwrite. I am trying to duplicate the example found here (https://www.mathworks.com/h...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to conditionally format a variable with fprintf
Hi, Quick question: a want to contionally format a variable so that there are 2 decimals for all numbers except for 0; 0 should...
3년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
What functions should be moved to basic MATLAB?
Hi Walter, Im tempted to say shaperead from the Mapping Toolbox. Yes, I know shaperead is a big part of the Mapping Toolbox but...
What functions should be moved to basic MATLAB?
Hi Walter, Im tempted to say shaperead from the Mapping Toolbox. Yes, I know shaperead is a big part of the Mapping Toolbox but...
3년 초과 전 | 1
답변 있음
What’s wrong?
Is this what you want ? Works fine. t = 0:1/6000:1/30 v = (4*cos((120*pi*t) + (pi/3))) plot(t,v)
What’s wrong?
Is this what you want ? Works fine. t = 0:1/6000:1/30 v = (4*cos((120*pi*t) + (pi/3))) plot(t,v)
거의 4년 전 | 0
질문
How to subsample a dataset per week
Hi, I would like to subsample a dataset in such a way as to keep only the data that was collected on the first sampled day of t...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
How to transform multiple sets of coordinates in a csv file into a single shapefile
Hi, I was wondering what was the easiest way to transform the coordinates of multiple polygons in a csv file into a single shap...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
How to conditionally merge rows in a table
Hi, I have a quick question - I have the following table T and I would like to merge the rows where the values of the variabl...
거의 4년 전 | 답변 수: 1 | 0
1
답변질문
How to replace leading zeroes by spaces with regexprep
Hi, I have a basic question. I simply need to replace the leading zeroes by empty spaces in table T except for the last zero wh...
4년 초과 전 | 답변 수: 3 | 0
3
답변질문
How to duplicate the number of rows in a table based on frequency
Hi, I have a frequency table like this where N is the number of occurences: id = [1004, 1004, 1004, 1004]'; length = [23, 45,...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Fastest way to replace NaNs by empty cells in a table
Hi, I need to replace the NaNs in the columns a and b by empty cells. The code below works but it is pretty slow. Is there a fa...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to reformat a table
Hi, My problem is very straightforward: i need to transform T1 into T2. What is tricky about this (in my mind anyway) is that s...
4년 초과 전 | 답변 수: 1 | 0