photo

Kirby Fears


2015년부터 활동

Followers: 0   Following: 0

메시지

통계학

All
  • Pro
  • First Review
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer
  • CUP Challenge Master
  • Solver

배지 보기

Feeds

보기 기준

답변 있음
Obtain every possible combination in array
Here's a brute force generation of all combinations. Memory usage is more of a bottleneck than processing time, so I wrote it wi...

대략 7년 전 | 0

답변 있음
Array manipulation: Suppose you have an array.How to take windows with overlapping along column and repeat to next doing same
Indexing and stacking as shown below will work for your example. Does this work for your real use case also? a = [1 2 3 4 5;...

7년 초과 전 | 0

| 수락됨

답변 있음
Using strcmp on multiple strings to get a logical array
There's really nothing wrong with a for loop in this case. However, cellfun is probably what you're looking for: Event = {'a...

7년 초과 전 | 3

| 수락됨

답변 있음
performance when copying data from object array to cell
Darim, Since you are not pre-allocating the *data* cell, Matlab is probably expanding the size of *data* iteratively. With pr...

7년 초과 전 | 0

| 수락됨

답변 있음
Re-synchronizing TEXTSCAN
dpb, I made a generalized solution to this problem some time ago for the constant questions about parsing delimited text file...

7년 초과 전 | 0

답변 있음
How do I play sound when a key is pressed
Michael, This article describes how to record and play sound. https://www.mathworks.com/help/matlab/import_export/record-...

7년 초과 전 | 0

| 수락됨

답변 있음
How to have MATLAB 2016 Legend without box and as transparent?
SL, Check out the Matlab documentation on the legend function. Special arguments can be passed in as name value pairs when cr...

7년 초과 전 | 0

답변 있음
How to round a result to two decimal places
Mo'men, Check out the round function. r_rounded = round(r,2); % rounds to 2 decimal places Hope this helps.

7년 초과 전 | 22

답변 있음
How to save an image using imwrite with a filename from a variable
Hi Nalini, You can combine string values using square brackets. The syntax for imwrite using your variable names is as follow...

7년 초과 전 | 3

| 수락됨

답변 있음
Write a function called mystaff that takes one input matrix called S. S is an n-by-m matrix whose elements are salaries. Salaries.xlsx Doesn't return a value How do I use my function to find average salary of principe: principle >= 140000.
Khalid, I suspect you are pressing the "Run" button with your function file open. Your function needs to return the final...

7년 초과 전 | 0

답변 있음
How can I change the number of MinorTicks between MajorTicks?
Hi Geovana, I think your questions is answered here: <https://www.mathworks.com/matlabcentral/answers/102945-how-can-i-speci...

7년 초과 전 | 0

답변 있음
Extract matrix subset based on latitude and longitude
Janet, These conditions are contradictory: all_time(:,1)<27.5 & all_time(:,1)>28.0 None of your values could be below...

7년 초과 전 | 0

답변 있음
Storing and accessing large amounts of time-based data
Hi Ben, You have discussed your ideas and questions regarding the Matlab data structures that allow for easy access and manip...

7년 초과 전 | 2

답변 있음
Sum of array items into another array
Assuming data is a struct with fields speed1, speed2, etc. sumArray = structfun(@sum,data);

거의 8년 전 | 3

| 수락됨

답변 있음
Error when running deployed stand-alone application that uses mex files for c++ code
That error is thrown because the <http://www.mathworks.com/help/matlab/ref/mex.html mex> command attempts to compile a c++ file ...

거의 8년 전 | 1

| 수락됨

답변 있음
Convert a table column of mixed data type to one data type
Jennifer, Here's an example using a cell mixed type cell array "Var1" in table "t". You should be able to solve your problem ...

대략 8년 전 | 0

답변 있음
"Standalone Named User” license question
Speak to Mathworks support regarding the standalone named user license. They can convert it to a network named user license, whi...

대략 8년 전 | 1

| 수락됨

답변 있음
How to plot/use numerous values in single cell?
Brian, This example should be a good starting point. % Setting up some test data x = rand(40,3); data = cell(3,800...

대략 8년 전 | 0

| 수락됨

답변 있음
How do I make a MATLAB created table properly appear in EXCEL?
Brad, Each row of Make is a collection of strings that cannot be concatenated automagically. You can concatenate the strin...

대략 8년 전 | 1

| 수락됨

답변 있음
How to save table in workspace as txt/.m file in matlab ?
You can use *writetable* to write to a text file. writetable(data,'outputfile.txt'); If you really need this to be a .m ...

대략 8년 전 | 0

답변 있음
Fastest Way of Opening and Reading .csv Files (Currently using xlsread)
Thankfully, you don't need to interact with Excel to read csv files. You can use <http://www.mathworks.com/help/matlab/ref/texts...

대략 8년 전 | 2

| 수락됨

답변 있음
Interleaving columns of two cell arrays
Here's a function I wrote for you. It contains a subfunction to create the interleaving index. Save this to interleaveCells.m an...

대략 8년 전 | 0

| 수락됨

답변 있음
modify all vectors in workspace
Joel, I will preface this by saying you really shouldn't have variables floating around your workspace without knowing their ...

대략 8년 전 | 0

답변 있음
Different correlation results using matrix with NaN values
Falco, The documentation for corrcoef indicates that 'complete' is the 'rows' value corresponding to your first calculation. ...

대략 8년 전 | 0

답변 있음
write cell array of strings in text file
filePh = fopen('features.txt','w'); fprintf(filePh,'%s\n',Strings{:}); fclose(filePh);

대략 8년 전 | 8

| 수락됨

답변 있음
save cell array of strings and doubles to excel file
You can write cells directly to the file. If you're using xlswrite, you should specify a target file with an .xls or .xlsx exten...

대략 8년 전 | 3

| 수락됨

답변 있음
Plotting vectors that connect
Brennan, Have you tried using <http://www.mathworks.com/help/matlab/ref/quiver.html quiver>? V = [0 2.0840 -8.6160 -0.58...

대략 8년 전 | 0

답변 있음
I cannot get my code to output the letter grade as an array. Please help?
You can use a character array to store the letter grades for each score in order. % Here are some grades scores = [82,...

대략 8년 전 | 0

답변 있음
I want to make several matrices from variables taken from user in a loop while performing some operation on them. I have attached a simplified code for my problem. So I want matrices from 1 to k but it is not working. Guide plz
Try this out. maxLoops = 10; % set this value matrixCollection = cell(maxLoops,1); % Initialize matrix collection for...

대략 8년 전 | 0

| 수락됨

답변 있음
How to write in a file, a random string from a cell ?
Joel, As the error indicates, fprintf() does not accept cell inputs. The conn variable is a 1x1 cell while the other inputs a...

대략 8년 전 | 1

| 수락됨

더 보기