Community Profile

photo

Voss


Last seen: Today Actif depuis 2013

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Treasure Hunt Participant
  • 12 Month Streak
  • Thankful Level 4
  • Commenter
  • Leader
  • Ace
  • Revival Level 4
  • Knowledgeable Level 5
  • Promoter
  • Scholar
  • CUP Challenge Master

Afficher les badges

Content Feed

Afficher par

A répondu
Extracting numbers including 0 at the start of the number
x = '02290234567'; x = x - '0'

2 jours il y a | 0

A répondu
How can I select a part of a matrix ?
B = [1 0.3 2 0.6 3 0.5 4 0.7 5 0.2 6 0.5 7 0.4 8 0.5]; idx ...

3 jours il y a | 1

| A accepté

A répondu
How to store data without deleting previous one
mask is a variable that only exists in the workspace of the DRAW function. In other words, each time DRAW is executed, a new mas...

3 jours il y a | 0

| A accepté

A répondu
The size of X must match the size of Z or the number of columns of Z.
The error happens because T is a 102-by-102 matrix but X and Y only have 101 elements: % % geometry of domain Nx = 102; Ny = ...

3 jours il y a | 0

A répondu
How i can convert binary elements of cell into decimal elements and store the results in array?
MB = { '0101' '0011' '0111' '0100' '0110' '0101' '0110' '0111' '0110' '1111'}; D = bin2dec(MB)

3 jours il y a | 1

| A accepté

A répondu
Reshaping a cell array
C = {{[1 2 3]} {[4 5 6 7]} {[8 9]}} C = [C{:}]

3 jours il y a | 0

| A accepté

A répondu
How can I find numeric values (stored as strings) in table of strings and convert them to double?
"Is there a possibility to find numeric values that are stored as string/char within a cell array and to convert only them?" Ye...

3 jours il y a | 0

| A accepté

A répondu
How to plot a smooth curve while data point order is messed up
Some random data: data = randn(10,2) Sort on the first column: [~,idx] = sort(data(:,1)); data = data(idx,:) Then plot with...

4 jours il y a | 1

| A accepté

A répondu
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-2
The error message will tell you which line the error occurred on, but I think it's this one: meansData_1(i,:)=mean(storeall...

4 jours il y a | 1

| A accepté

A répondu
Did I draw this circuit correctly ?
The z^-2 should be z^-1 (all delay elements are unit delays), and the 0.48 should be -0.48 (coefficients from the denominator ar...

4 jours il y a | 0

A répondu
Is there a one line implementation for this?
t = sym('t',[1,10]); A = {}; A {1,1} = sin(t); A {1,2} = cos(t); A {2,1} = tan(t); A {2,2} = t; result = {}; % For the be...

4 jours il y a | 1

A répondu
Output, input, function
You have to pass mixedsig to the fastica function as an input argument, e.g., from within demosig: function [sig,mixedsig]=demo...

4 jours il y a | 0

| A accepté

A répondu
Values of selected item in list box moved into a struct
The code above creates and initializes a couple of components (a uilistbox and a uitab). Those components are stored in the app ...

4 jours il y a | 0

A répondu
Cant use more than one class, strcmp issue?
This error happens because the inputs to strcmp are incompatible sizes. Example 1: both inputs the same size (works): a = {'ba...

4 jours il y a | 0

A répondu
last xtick label is not showing up!
I think it's because surf doesn't render the last row or column of the matrix (so that the surface doesn't actually go all the w...

4 jours il y a | 0

| A accepté

A répondu
Axis label getting cutoff in plot with multiple axis
You can set the Position of both axes at the end: clear; clc; clf; close all x1 = [1 2 3 4 5]; x2 = [2 4 8 10 12]; y1 = [3...

4 jours il y a | 1

| A accepté

A répondu
List box Value Changed
NEXTButton_2 has no Callback (i.e., no ButtonPushedFcn) assigned to it.

4 jours il y a | 0

| A accepté

A répondu
I want find mean of out.txt file such that this file is replaces at every iteration and hence values changed.
Let's say you have 100 iterations, and data is a vector containing the numbers written to file on each iteration. Then to calcul...

4 jours il y a | 0

A répondu
Using a quiver function draw a plot
u = @(x,y) y ./ (x.^2 + y.^2); % use ./ instead of / v = @(x,y) -x ./ (x.^2 + y.^2); [x,y] = meshgrid(-1:1, -1:1); quiver...

5 jours il y a | 0

| A accepté

A répondu
Plot matrix numerical results as image or table
If I understand correctly, maybe use a uitable or two. z = magic(4); surf(z); set(gca(),'Position',[0.05 0.1 0.4 0.8]); t = ...

5 jours il y a | 0

| A accepté

A répondu
How can I change the size of a circle patch?
In the function y_update there is a mistake: you have cos when it should be sin. (This makes a line since x == y, rather than a ...

6 jours il y a | 1

| A accepté

A répondu
i have (y) with size of 784*1000 and i mapped this y to get gex, gin , but the result shown only 1 dimension and i want that mapping for the two dimension (784*1000),
Initialize gex and gin to be matrices the same size as y. Then loop over all elements of y: gex = zeros(size(y)); gin = zeros...

6 jours il y a | 0

| A accepté

A répondu
Why am I getting a error 'Dimensions of arrays being concatenated are not consistent'
This line has only 11 elements: 6*Le(i)*E*Izz/Le(i)^3, 0, 0, 0, 4*Le(i)^2*E*Izz/Le(i)^3, 0, -6*Le(i)*E*Izz/Le(i)^3, 0, 0, 0, 2*...

6 jours il y a | 0

A répondu
GENERATE CONDITIONS BETWEEN TWO ARRAYS AND RESULT IN A VALUE
Something like this? load('AA.mat') load('BB.mat') disp([AA BB]) % check the data AABB = zeros(size(AA)); AABB(AA >= 0 & ...

7 jours il y a | 0

| A accepté

A répondu
How do I delete the first X number of rows in a matrix for each participant, where each participant's ID number is specified in one of the columns?
Here is one way: data = [ ... 1 2 5 3; ... 1 4 5 2; ... 1 5 2 3; ... 1 5 2 4; ... 2 6 7 9; ... 2 ...

7 jours il y a | 0

| A accepté

A répondu
Error gui_mainfcn(gui_State, varargin{:});
The GUI opens ok, but the error I get when clicking the plot button is: Reference to non-existent field 'edInterval'. Error in...

8 jours il y a | 1

| A accepté

A répondu
2D Plot changing in a for loop - Want to plot in 3D
Something like this? N = 512; % Number of Fourier modes dt = .001; % Time step tfinal = 10; % Final time M = round(tfinal./d...

8 jours il y a | 0

A répondu
Smoothing 3D Matrix
x=0:21; y=0:17; [x,y]=meshgrid(x,y); z=[-5 -5 0 0 0 0 0 0 0 -5 -5 -5 -5 -5 -5 -5 -5 -5 -5 -5 -5;0 0 5 0 1 0 2 0 0 1 0 -5 -5 -...

8 jours il y a | 0

| A accepté

A répondu
Create a loop that add data from different datasets into a plot
Maybe something along these lines will get you started: datapath = '.'; files = dir(fullfile(datapath,'*.xlsx')); figure(...

8 jours il y a | 0

| A accepté

A répondu
A problem with inputting a function from the user
If you run this line on its own: Z0 =@(t) input ('Inter the first bais z0 in terms of t : '); you will notice that no user-inp...

8 jours il y a | 2

| A accepté

Charger plus