已回答
How to extract rows which contains specific values in each row, then automatically repeat the process for a range.
Without direct access to your data I cannot give you a perfect solution to your data, so what I put here will likely take some f...

6 years 前 | 0

已回答
Moving NaN elements from the last columns to the first column, iteratively
Do you want your numeric values in ascending order? If so you should be able to do the following: A = sort(A,2,'MissingPlacemen...

6 years 前 | 0

已回答
Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in pid_optimized1 (line 17) solution(K,:) = [K a m ts];
You are recieving the error because you are trying to use K as an index value, but K is not always a positive integer. for K =3...

6 years 前 | 0

已回答
How get values from ch
As far as I can tell the easiest way to do what you're asking would be something like the following: price = str2num(regexp(str...

6 years 前 | 0

| 已接受

已回答
Index exceeds the number of array elements (4)
The error is occuring because sym_table is a 1x4 complex double array, but in the particular line you are attempting to call ele...

6 years 前 | 1

已回答
Can anyone write a mathlab program for this question
Yes. I can write a Matlab program to solve that problem. Try this.

6 years 前 | 0

已回答
combin 4 three dimential matrices in one matrix
You cannot directly combine a 5x3x10 and a 2x2x10 matrix into a 7x5x10 matrix within Matlab because the direct combination of ma...

6 years 前 | 2

| 已接受

已回答
Add a column in a CSV file
The best way to do this is to read the entire file in with csvread, add your column to the matrix, and then reprint the file wit...

6 years 前 | 0

| 已接受

已回答
Read specific data columns from a text file based on header name requested by user
I started to work on this, and realized that with my knowledge the code was going to be pretty ugly. If anybody knows a way to c...

6 years 前 | 1

已回答
How do I split a text file at specified points?
% Load the file file = fileread('mytextfile.txt'); % Split the data at $ data = regexp(file,'.logE','split'); You may end ...

6 years 前 | 0

| 已接受

已回答
Matlab using regexp function i want to parse string and data
There are a few things I notice here. 1) I have edited your patterns so they should capture what you're looking for. 2) It see...

6 years 前 | 0

| 已接受

已回答
coupling of coorresponding sheets of excel files
There are two ways of doing this. You can either use xlsread and load each set of data into matlab one sheet at a time, or you c...

6 years 前 | 0

| 已接受

已回答
Plots in excel sheets using matlab
If you want to create a plot in the excel sheet directly you need to use the ActXServer capability. Here is a brief layout of w...

6 years 前 | 4

| 已接受

已回答
How can I extract data from a structure? I keep getting "The class struct has no Constant property or Static method named 'strains'." error
ans.strains The 'struct with fields' is the standard output line that tells you the class of the variable you just viewed, 'ans...

6 years 前 | 0

| 已接受

已回答
How can I save structures from a cellarray into individual .mat files with a loop?
It is saving all of the data because you are not indexing your save selection. save(c_string,'datacut'); You will need to crea...

6 years 前 | 0

| 已接受

已回答
problem regarding limits of y and x-axis
It seems like all you need to do is change the axis range. This can be done manually in the figure window. Open the 'Edit' men...

6 years 前 | 0

已解决


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

6 years 前

已回答
How to optimize this for loop?
v0(v0<=2) = 0; v0(v0>=26) = 0; v0(v0>=120) = 12; Should work for all three, because they're apparently the same with differen...

6 years 前 | 0

已回答
How to solve "Subscripted assignment dimension mismatch" error?
That is almost guaranteed to mean that 'i' is not a positive integer, or, more likely, that CL(i).id is not a positive integer. ...

6 years 前 | 0

已解决


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

6 years 前

已解决


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

6 years 前

已解决


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

6 years 前

已回答
Multiple lines in single cell
If I am understanding you correctly, you want to use to combine your strings into a single string, but maintain the individual r...

6 years 前 | 0

已回答
Import files into Matlab and compare values
The dates and times of the spreadsheet are in separate columns, and I can't import the times as times (they are imported as numb...

6 years 前 | 0

提问


Can anybody explain the interaction of Wilkinson and unique?
I was working on one of the Cody questions, and encountered the wilkinson function. In working to solve the problem I was utiliz...

6 years 前 | 1 个回答 | 0

1

个回答

已回答
How can I plot a certain range of data?
You said you have two scripts. How are you running your two scripts? Are you running them separately, or are you running them in...

6 years 前 | 0

已回答
Help sorting out for loop/if statement code to create a figure
fig2=figure (2) c=0 for i=8:1:38 for t=1:1:numel(SpikesAll(i)) if isnan(SpikesAll(t,i)) break ...

6 years 前 | 0

已解决


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

6 years 前

已解决


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

6 years 前

已解决


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

6 years 前

加载更多