Community Profile

photo

dpb


Last seen: Today 2012 年からアクティブ

Statistics

All
  • Revival Level 2
  • First Review
  • Master
  • Thankful Level 3
  • 36 Month Streak
  • Knowledgeable Level 5
  • First Answer
  • Solver

バッジを表示

Content Feed

表示方法

回答済み
How to change the Xtick direction of ONLY one of the two (top or bottom) X-axis lines ?
% my plot figure plot(1:9) % properties hAx1 = gca; hAx1.XAxis.TickDirection='out'; hold on hAx2=axes('Position',hAx1.P...

6日 前 | 1

| 採用済み

回答済み
For Loop Starting at Zero
H = 0.1; I = 200; Y = 0; BI = zeros(I,1); b = pi; for i = 1:I b = fzero(@(b)(b*tan(b)-H),b); BI(i,1) =...

15日 前 | 0

回答済み
Make changes to multiple files simultaneously?
Notepad++ has a feature that may work if you can make the replacement with a [regexp] expression as a substitution. Alternative...

15日 前 | 0

回答済み
Reading a file and loading variables using function
A = 10; B = 30; C =15; A_Threshold = 70; B_Threshold = 80; C_Threshold = 85; save sample.mat A B C A_Threshold B_Threshold...

16日 前 | 0

回答済み
Scatter Plotting With Custom Markers?
There's no way I'm aware of to use an image as a marker in a line or scatter object, There's a <FEX submission> that will let y...

20日 前 | 0

回答済み
Addition of two plots (Coordinates)
You have to add the starting location of your subsection to the returned location if you subset the overall signal, The loop yo...

23日 前 | 0

回答済み
FOR loop count to the end but the length of the array is different
Observe the following... y(7,1)=10 Note that MATLAB created the array of seven values and filled the last entry. In your orig...

25日 前 | 0

回答済み
How to put non repeated elements of a symmetric matrix in a row vector?
"... the matrices are symmetric with names of z1,z2,...z571;" First, do NOT create sequentially-named variables such as that; f...

25日 前 | 1

回答済み
What is the purpose of zero function?
function CoherentState=CoherentStatefunc(alpha,DIM) CoherentState=zeros(DIM,1); for n=0:(DIM-1) Coh...

27日 前 | 1

回答済み
How to write function for two variables
I'd approach writing the functional something more like-- function y=Y(C,x1,x2) % Magic function Y=fn(C, x1, x2) from unknow...

27日 前 | 0

| 採用済み

回答済み
Combine text files with continues time stamp
Can you clean up the malformatted file format first? It uses "," for both the field delimiter as well as the decimal place indi...

28日 前 | 0

回答済み
Can I run all cases of switch ? if not, is there another way ?
That's just putting the switch block inside another loop... ... M=5; % outer loop counter N=3; ...

28日 前 | 1

| 採用済み

回答済み
use two indexes at the same time in a for loop
for i = 4:5 for j = 1:2 M(i,j) = 0; end end If it weren't a contstant on the RHS and the array was only the...

28日 前 | 0

| 採用済み

回答済み
Error with the matlab curve fitter app
The CurveFitter App is simply not designed to be used in this manner. To do this, you would create a fit object directly with t...

28日 前 | 0

回答済み
How to cut out part of x axis in scatter plot ?
Unfortunately, MATLAB doesn't have the facility to create either split axes to show such a gap or to condense a section of an ax...

29日 前 | 0

| 採用済み

回答済み
Extracting rows form a matrix with indices.
M=[[1:24].' randi(100,24,5)]; % a sample array b=[1,4,7,8,10,12]; % the indexing vector N=M(b,:) ...

29日 前 | 0

| 採用済み

回答済み
how can i define legend for bar3
Z=randi(6000,4,5); X=["EVA"+[1:4].'; "DNO"]; Y=[125:-25:50]; hB3=bar3(Z); hAx=gca; hAx.XAxis.TickLabels=X; hAx.YAxis.TickL...

30日 前 | 0

回答済み
two x-axis plot
Without all the niceties, but to illustrate putting the three points on two axes and set ticks such that grid lines will match u...

約1ヶ月 前 | 0

回答済み
Save matrix from "writematrix" to clipboard
You've got to create the entire text as a string or char() variable. It would be more efficient to avoid the intermediary disk ...

約1ヶ月 前 | 0

| 採用済み

回答済み
How can I put an array containg multiple numbers into a matlab table?
Just use <table> directly to insert variables to a table... files={'filename01.ext';'filename02.ext'}; coords=[randi(1000,1,4)...

約1ヶ月 前 | 0

回答済み
How do you remove the exponent from all y-axes on a stackploted figure?
Actually, the above isn't true; it turns out you CAN get to the underlying axes objects and they are still "plain, ordinary axes...

約1ヶ月 前 | 0

回答済み
How do you remove the exponent from all y-axes on a stackploted figure?
Some things aren't possible; that's one....see the discussion about what a stackedplot object is in the doc -- s=StackedLineCha...

約1ヶ月 前 | 2

| 採用済み

回答済み
Find common 4-letter substrings in a list of strings
May be something more clever, but the "deadahead" way for the one string looks something like -- tAMP=readtable('AMPdb_short.cs...

約1ヶ月 前 | 0

| 採用済み

回答済み
How can I extract a specific time for a "datetime" table?
Convert to datetime and use <isbetween> result.HourSeries=duration(result.HourSeries,'InputFormat','hh:mm'); ix=isbetween(resu...

約1ヶ月 前 | 1

回答済み
How to extract eye tracking data by trial ID
Easiest would be to read the file line-by-line, looking for the magic value and then save data until the next, adding the trial ...

約1ヶ月 前 | 0

| 採用済み

回答済み
Replace Nan with empty cell in table
No can do unless convert the table variables to cell arrays; a double array cannot have anything other than numeric values. A M...

約1ヶ月 前 | 0

| 採用済み

回答済み
Arguments accept char, string or "cellstr" (cell array of char or string)
You write a custom validation function that your code in the arguments block calls for special cases if you're using the supplie...

約1ヶ月 前 | 1

回答済み
What is missing from MATLAB #2 - the next decade edition
I wish clearvars had an optional "do-nothing" flag a la the /L switch in CMD XCOPY to display the variable that would be cleared...

約1ヶ月 前 | 1

回答済み
How to extract the time differences between two events into a table?
" is attached through google drive because of the file size" It would have only taken a 100 lines or less to have sufficient to...

約1ヶ月 前 | 0

| 採用済み

回答済み
signal processing of vibration signal
Have gone through this innumerable times -- and the fft doc gives an example of normalizing the one-sided PSD to match the time ...

約2ヶ月 前 | 0

さらに読み込む