Skip to main content

All Questions

Tagged with
2 votes
2 answers
1k views

How can I convert a cell array into a numeric array in MATLAB?

I'm stuck with a supposedly simple problem in MATLAB. I have a 1x43 cell array that looks like this (note the space before each value): labels = {' 1', ' 2', ' 3', ... , ' 43'}; And I simply want to ...
Notna's user avatar
  • 525
-1 votes
1 answer
415 views

how to calculate a summation in matlab

I have an equation to get the summation of ∑ X + 4 ∑ X 26 Y + ∑ Y I just started using matlab and I want to use it to calculate the result what I have is an array with values of X, array with the ...
user3597742's user avatar
0 votes
1 answer
252 views

input array of strings in matlab

Problem: Solve linear equations I have a 3×3 matrix and I wanted to take 3 expressions as inputs which contain matrix cells like 2*b(1,1)+3*b(1,2)+3*b(1,3) 3*b(2,1)+4*b(2,3)+3*b(2,3) and evaluate ...
Saiteja Parsi's user avatar
0 votes
4 answers
362 views

logic for adjusting max number in array to min number in second array

Greetings all logic for adjusting max number in array to min number in second array I have an array "A" A=[0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1 .9 .8 .7 .6 .5 .4 .3 .2 .1 0 -.1 -.2 -.3 -.4 -.5 -.6 -.7 -...
Rick T's user avatar
  • 3,409