Community Profile

photo

Voss


Last seen: 1 day ago Active since 2013

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Treasure Hunt Participant
  • Most Accepted 2022
  • 12 Month Streak
  • Commenter
  • Leader
  • Thankful Level 4
  • Ace
  • Revival Level 4
  • Knowledgeable Level 5
  • Promoter
  • Scholar

View badges

Content Feed

View by

Answered
is there any one line code for writing in this way? if it's please give me a way to write this.
T = [0 0.0018 0 0.0012; 0.0018 0 0.0025 0; 0 0.0025 0 0.0015; 0.0012 0 0.0015 0]

19 hours ago | 0

Answered
Please help me to spot the error.
The error I get is "Unrecognized function or variable 'C12_22'." The cause of the error is that "C12_22" has been misspelled ...

2 days ago | 0

Answered
Exceeds the number of array elements (0).
Either img or bounds (or both) is empty. Check img and bounds and figure out why one or both is not what you expect.

2 days ago | 0

Answered
Warning message when creating surface plot.
You probably mean to use element-wise multiplication and division, in order to get a matrix Z the same size as X and Y: Z =...

4 days ago | 0

| accepted

Answered
a = b<0
a = b<0; checks if b is less than 0 and stores the result in a. If b is a scalar: if b is less than 0, then a will be true; ot...

4 days ago | 2

| accepted

Answered
Sprintf warning message on a function file
The warning is saying that, if all you do with the result from sprintf is to display it with disp, then you can display it with ...

4 days ago | 1

| accepted

Answered
How to iterate a structure name and save directory in a for loop?
saveDir = 'my/path/name'; cnt = 50; for j=1:10 cnt = cnt+50; S = struct('minTime',tmin,'maxTime',tmax); ...

5 days ago | 1

Answered
How to find out how many participants are in each group of my combined matrix (31230x5)
% some data like yours with participant IDs in column 1 % and group ID in column 2: data = [randi(40,31230,1) randi(8,31230,1...

5 days ago | 0

Answered
Plot clear using MATLAB app designer.
cla(app.UIAxes, 'reset') https://www.mathworks.com/help/matlab/ref/cla.html

6 days ago | 1

| accepted

Answered
Next value in alphabet
nextLetter('d') nextLetter('s') nextLetter('z') % no next letter after 'z' -> error function next = nextLetter(letter) Alp...

8 days ago | 0

Answered
Hiding exponent labels without scientific notation
Set the xticklabels when you set the xticks.

9 days ago | 0

| accepted

Answered
how to plot two graphs using a matlab?
semilog should be semilogx, and holf should be hold % semilog(x1, wattdis) %% I cannot plot this one. semilogx(x1, wattdis) ...

10 days ago | 0

Answered
How to extract number of matrices with all elements zero and the indexes of those matrices in a struct
% making up some data like yours: gridcell_meancov = struct('grid',struct('mean',num2cell(rand(12,6)),'cov',squeeze(num2cell(ra...

10 days ago | 0

| accepted

Answered
How to split dataset into 2/3 for training and 1/3 for testing include plot the graph?
This: Ptest=idx(round(PD*N)+1:end,:);Ttest=idx(round(PD*N)+1:end,:) should be this: Ptest=idx(round(PD*N)+1:end);...

12 days ago | 0

Answered
How to Plot an Exponential Process given equation
t= 0:0.1:10; %This is the interval I need concentration= 1.* exp(-1.*t); %This is the equation C(t)= C0* e^-kt plot(t,conce...

12 days ago | 0

| accepted

Answered
Array indices must be positive integers or logical values
You probably mean B.*(L - x) instead of B(L-x) in two places.

12 days ago | 0

| accepted

Answered
How do I plot multiple vectors in a graph
Like this? A = 1:6; B = 1:6; [Ap,Bp] = ndgrid(A,B); plot(Ap,Bp)

12 days ago | 0

Answered
Getting Error while using Transparency to object (alpha)
You have a variable called "alpha" in your workspace, which is preventing you from running the "alpha" function. You should rem...

13 days ago | 0

| accepted

Answered
Can someone find why I get the error: Index in position 2 exceeds array bounds. Index must not exceed 1.
1. Consider the following. Start with x_new as you have it initially: X= [46,52,55,71,32,5,6,11,14;47,56,47,58,59,66,70,72,71];...

13 days ago | 1

Answered
Array indexing in matlab
z = reshape(1:30,6,5).' % [] not necessary; 1:1:30 is the same as 1:30; .' is transpose, ' is complex conjugate transpose [z([1...

13 days ago | 1

| accepted

Answered
Unable to find file , load file to xl file .
Two things: 1) You're using y1 = xlsread('F:\matlab\bin_my_excel_file'); % ^ underscore but 'bin' i...

13 days ago | 0

Answered
how do I change the position where a gabor patch is displayed (Psychtoolbox)?
According to the documentation: http://psychtoolbox.org/docs/Screen-DrawTextures you can specify the location(s) to draw to as...

13 days ago | 0

Answered
How to collect and show answers captured by using key press function (keypressfnc)?
The main problem here is that the KeyPressFcn is executed every time the user hits a key while the figure has focus. That is, Ke...

13 days ago | 0

| accepted

Answered
How can I mark the vertex of a hexahedron with dots?
Use the 'Marker' (and possibly 'MarkerSize', 'MarkerFaceColor', 'MarkerEdgeColor') properties. <https://www.mathworks.com/hel...

14 days ago | 0

| accepted

Answered
I need help with this app designer code
Do you mean to use im2gray?

14 days ago | 0

Answered
General indexing into structure
One way to do that is: structure.field2(strcmp(structure.field1,'string')) because you want to index into field2, not index in...

14 days ago | 0

| accepted

Answered
How do i make matlab diferentiate words in cell array
C = {'12100213.csv' '12100214.csv' '12100215.csv' '12100216.csv' '12113013.txt' '12120423.txt' '12120516.txt'}; [~,~,ext] = f...

15 days ago | 0

| accepted

Answered
Split numbers in a cell into a few columns in V2011
You can try str2num: str = ' 2 5 0.866000 2 1'; val = str2num(str)

15 days ago | 0

| accepted

Answered
for loop 2x2 matrix, do not overwrite each iteration
Depends on what you want the 10x2 matrix to be, but maybe this: a = zeros(10,2); for i = 1:5 a(2*i-[1 0],:) = [i i+1;i i-...

15 days ago | 0

| accepted

Load more